Class UiTypeFinderImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.impl.UiTypeFinderImpl
-
- All Implemented Interfaces:
UiTypeFinder
public class UiTypeFinderImpl extends java.lang.Object implements UiTypeFinder
Default implementation of theUiTypeFinder
.
-
-
Constructor Summary
Constructors Constructor Description UiTypeFinderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<UiType>
addUiTypeToListLowMem(java.util.List<UiType> list, UiType uiType)
protected java.util.List<UiType>
checkForMultiSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
protected java.util.List<UiType>
checkForSingelValueTypes(CsticModel model, boolean isDebugEnabled)
protected java.util.List<UiType>
checkForSingleSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
protected UiType
chooseUiType(java.util.List<UiType> posibleTypes, CsticModel model)
protected UiValidationType
chooseUiValidationType(java.util.List<UiValidationType> posibleTypes, CsticModel model)
protected java.util.List<UiType>
collectPossibleTypes(CsticModel model, CsticData data, boolean isDebugEnabled)
protected java.util.List<UiValidationType>
collectPossibleValidationTypes(CsticModel model, boolean isDebugEnabled)
protected boolean
editableWithAdditionalValue(CsticModel model, boolean isDebugEnabled)
protected boolean
editableWithoutAdditionalValue(CsticModel model, boolean isDebugEnabled)
UiType
findUiTypeForCstic(CsticModel model)
UiType
findUiTypeForCstic(CsticModel model, CsticData data)
UiValidationType
findUiValidationTypeForCstic(CsticModel model)
protected boolean
hasCsticValueImages(CsticData data)
Checks cstic DTO whether it has at least one image on value level.protected boolean
hasValueImage(CsticValueData valueData)
Checks value DTO whether it has at least one image.protected boolean
isAdditionalValueWithoutDomian(CsticModel model)
protected boolean
isCheckbox(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isCheckboxList(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isConstrainedOrHasAssignableValues(CsticModel model, boolean isDebugEnabled)
protected boolean
isDDLB(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isDDLBAdditionalValue(CsticModel model, boolean isDebugEnabled)
protected boolean
isInput(CsticModel model, boolean isDebugEnabled)
protected boolean
isInputTypeSupported(CsticModel model, boolean isDebugEnabled)
protected boolean
isIntervallBasedInput(CsticModel model)
protected boolean
isMultiSelection(CsticModel model, boolean isDebugEnabled)
protected boolean
isMultiSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isNumericInput(CsticModel model, boolean isDebugEnabled)
protected boolean
isRadioButton(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isRadioButtonAdditionalValue(CsticModel model, boolean isDebugEnabled)
protected boolean
isReadonly(CsticModel model, boolean isDebugEnabled)
protected boolean
isSelection(CsticModel model, boolean isDebugEnabled)
protected boolean
isSimpleInput(CsticModel model)
protected boolean
isSimpleNumber(CsticModel model, boolean isDebugEnabled)
protected boolean
isSimpleString(CsticModel model, boolean isDebugEnabled)
protected boolean
isSingleSelection(CsticModel model, boolean isDebugEnabled)
protected boolean
isSingleSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
protected boolean
isStringInput(CsticModel model, boolean isDebugEnabled)
protected boolean
isValueTypeSupported(CsticModel model, boolean isDebugEnabled)
protected java.util.List<UiType>
mergeUiTypeListLowMem(java.util.List<UiType> list1, java.util.List<UiType> list2)
void
setDropDownListThreshold(int dropDownListThreshold)
-
-
-
Method Detail
-
findUiTypeForCstic
public UiType findUiTypeForCstic(CsticModel model)
- Specified by:
findUiTypeForCstic
in interfaceUiTypeFinder
- Returns:
- UIType that decides how the characteristic is rendered on the UI
-
findUiTypeForCstic
public UiType findUiTypeForCstic(CsticModel model, CsticData data)
- Specified by:
findUiTypeForCstic
in interfaceUiTypeFinder
- Returns:
- UIType that decides how the characteristic is rendered on the UI
-
addUiTypeToListLowMem
protected java.util.List<UiType> addUiTypeToListLowMem(java.util.List<UiType> list, UiType uiType)
-
mergeUiTypeListLowMem
protected java.util.List<UiType> mergeUiTypeListLowMem(java.util.List<UiType> list1, java.util.List<UiType> list2)
-
collectPossibleTypes
protected java.util.List<UiType> collectPossibleTypes(CsticModel model, CsticData data, boolean isDebugEnabled)
-
checkForSingleSelectionTypes
protected java.util.List<UiType> checkForSingleSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
-
checkForMultiSelectionTypes
protected java.util.List<UiType> checkForMultiSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
-
checkForSingelValueTypes
protected java.util.List<UiType> checkForSingelValueTypes(CsticModel model, boolean isDebugEnabled)
-
chooseUiType
protected UiType chooseUiType(java.util.List<UiType> posibleTypes, CsticModel model)
-
collectPossibleValidationTypes
protected java.util.List<UiValidationType> collectPossibleValidationTypes(CsticModel model, boolean isDebugEnabled)
-
chooseUiValidationType
protected UiValidationType chooseUiValidationType(java.util.List<UiValidationType> posibleTypes, CsticModel model)
-
isReadonly
protected boolean isReadonly(CsticModel model, boolean isDebugEnabled)
-
isDDLB
protected boolean isDDLB(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isDDLBAdditionalValue
protected boolean isDDLBAdditionalValue(CsticModel model, boolean isDebugEnabled)
-
isSingleSelectionImage
protected boolean isSingleSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isRadioButton
protected boolean isRadioButton(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isRadioButtonAdditionalValue
protected boolean isRadioButtonAdditionalValue(CsticModel model, boolean isDebugEnabled)
-
isCheckbox
protected boolean isCheckbox(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isCheckboxList
protected boolean isCheckboxList(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isMultiSelectionImage
protected boolean isMultiSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)
-
isStringInput
protected boolean isStringInput(CsticModel model, boolean isDebugEnabled)
-
isNumericInput
protected boolean isNumericInput(CsticModel model, boolean isDebugEnabled)
-
isSelection
protected boolean isSelection(CsticModel model, boolean isDebugEnabled)
-
isConstrainedOrHasAssignableValues
protected boolean isConstrainedOrHasAssignableValues(CsticModel model, boolean isDebugEnabled)
-
isMultiSelection
protected boolean isMultiSelection(CsticModel model, boolean isDebugEnabled)
-
isSingleSelection
protected boolean isSingleSelection(CsticModel model, boolean isDebugEnabled)
-
isInput
protected boolean isInput(CsticModel model, boolean isDebugEnabled)
-
isInputTypeSupported
protected boolean isInputTypeSupported(CsticModel model, boolean isDebugEnabled)
-
isIntervallBasedInput
protected boolean isIntervallBasedInput(CsticModel model)
-
isSimpleInput
protected boolean isSimpleInput(CsticModel model)
-
isAdditionalValueWithoutDomian
protected boolean isAdditionalValueWithoutDomian(CsticModel model)
-
editableWithoutAdditionalValue
protected boolean editableWithoutAdditionalValue(CsticModel model, boolean isDebugEnabled)
-
editableWithAdditionalValue
protected boolean editableWithAdditionalValue(CsticModel model, boolean isDebugEnabled)
-
isValueTypeSupported
protected boolean isValueTypeSupported(CsticModel model, boolean isDebugEnabled)
-
isSimpleString
protected boolean isSimpleString(CsticModel model, boolean isDebugEnabled)
-
isSimpleNumber
protected boolean isSimpleNumber(CsticModel model, boolean isDebugEnabled)
-
setDropDownListThreshold
public void setDropDownListThreshold(int dropDownListThreshold)
- Parameters:
dropDownListThreshold
- the dropDownListThreshold to set
-
findUiValidationTypeForCstic
public UiValidationType findUiValidationTypeForCstic(CsticModel model)
- Specified by:
findUiValidationTypeForCstic
in interfaceUiTypeFinder
- Returns:
- UIValidatioType that decides how the user input for this characteristic is validated
-
hasCsticValueImages
protected boolean hasCsticValueImages(CsticData data)
Checks cstic DTO whether it has at least one image on value level.- Parameters:
data
-- Returns:
-
hasValueImage
protected boolean hasValueImage(CsticValueData valueData)
Checks value DTO whether it has at least one image.- Parameters:
valueData
-- Returns:
-
-