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 UiTypechooseUiType(java.util.List<UiType> posibleTypes, CsticModel model)protected UiValidationTypechooseUiValidationType(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 booleaneditableWithAdditionalValue(CsticModel model, boolean isDebugEnabled)protected booleaneditableWithoutAdditionalValue(CsticModel model, boolean isDebugEnabled)UiTypefindUiTypeForCstic(CsticModel model)UiTypefindUiTypeForCstic(CsticModel model, CsticData data)UiValidationTypefindUiValidationTypeForCstic(CsticModel model)protected booleanhasCsticValueImages(CsticData data)Checks cstic DTO whether it has at least one image on value level.protected booleanhasValueImage(CsticValueData valueData)Checks value DTO whether it has at least one image.protected booleanisAdditionalValueWithoutDomian(CsticModel model)protected booleanisCheckbox(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisCheckboxList(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisConstrainedOrHasAssignableValues(CsticModel model, boolean isDebugEnabled)protected booleanisDDLB(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisDDLBAdditionalValue(CsticModel model, boolean isDebugEnabled)protected booleanisInput(CsticModel model, boolean isDebugEnabled)protected booleanisInputTypeSupported(CsticModel model, boolean isDebugEnabled)protected booleanisIntervallBasedInput(CsticModel model)protected booleanisMultiSelection(CsticModel model, boolean isDebugEnabled)protected booleanisMultiSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisNumericInput(CsticModel model, boolean isDebugEnabled)protected booleanisRadioButton(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisRadioButtonAdditionalValue(CsticModel model, boolean isDebugEnabled)protected booleanisReadonly(CsticModel model, boolean isDebugEnabled)protected booleanisSelection(CsticModel model, boolean isDebugEnabled)protected booleanisSimpleInput(CsticModel model)protected booleanisSimpleNumber(CsticModel model, boolean isDebugEnabled)protected booleanisSimpleString(CsticModel model, boolean isDebugEnabled)protected booleanisSingleSelection(CsticModel model, boolean isDebugEnabled)protected booleanisSingleSelectionImage(CsticModel model, boolean isDebugEnabled, boolean hasValueImages)protected booleanisStringInput(CsticModel model, boolean isDebugEnabled)protected booleanisValueTypeSupported(CsticModel model, boolean isDebugEnabled)protected java.util.List<UiType>mergeUiTypeListLowMem(java.util.List<UiType> list1, java.util.List<UiType> list2)voidsetDropDownListThreshold(int dropDownListThreshold)
-
-
-
Method Detail
-
findUiTypeForCstic
public UiType findUiTypeForCstic(CsticModel model)
- Specified by:
findUiTypeForCsticin interfaceUiTypeFinder- Returns:
- UIType that decides how the characteristic is rendered on the UI
-
findUiTypeForCstic
public UiType findUiTypeForCstic(CsticModel model, CsticData data)
- Specified by:
findUiTypeForCsticin 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:
findUiValidationTypeForCsticin 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:
-
-