Class UiTypeFinderImpl

java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.UiTypeFinderImpl
All Implemented Interfaces:
UiTypeFinder

public class UiTypeFinderImpl extends Object implements UiTypeFinder
Default implementation of the UiTypeFinder.
  • Field Details

    • DEFAULT_DROP_DOWN_LIST_THRESHOLD

      public static final int DEFAULT_DROP_DOWN_LIST_THRESHOLD
      See Also:
  • Constructor Details

    • UiTypeFinderImpl

      public UiTypeFinderImpl()
  • Method Details

    • findUiTypeForCstic

      public UiType findUiTypeForCstic(CsticModel model)
      Specified by:
      findUiTypeForCstic in interface UiTypeFinder
      Returns:
      UIType that decides how the characteristic is rendered on the UI
    • findUiTypeForCstic

      public UiType findUiTypeForCstic(CsticModel model, CsticData data)
      Specified by:
      findUiTypeForCstic in interface UiTypeFinder
      Returns:
      UIType that decides how the characteristic is rendered on the UI
    • addUiTypeToListLowMem

      protected List<UiType> addUiTypeToListLowMem(List<UiType> list, UiType uiType)
    • mergeUiTypeListLowMem

      protected List<UiType> mergeUiTypeListLowMem(List<UiType> list1, List<UiType> list2)
    • collectPossibleTypes

      protected List<UiType> collectPossibleTypes(CsticModel model, CsticData data, boolean isDebugEnabled)
    • checkForSingleSelectionTypes

      protected List<UiType> checkForSingleSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
    • checkForMultiSelectionTypes

      protected List<UiType> checkForMultiSelectionTypes(CsticModel model, boolean isDebugEnabled, boolean hasValueImages, boolean isReadOnly)
    • checkForSingelValueTypes

      protected List<UiType> checkForSingelValueTypes(CsticModel model, boolean isDebugEnabled)
    • chooseUiType

      protected UiType chooseUiType(List<UiType> posibleTypes, CsticModel model)
    • collectPossibleValidationTypes

      protected List<UiValidationType> collectPossibleValidationTypes(CsticModel model, boolean isDebugEnabled)
    • chooseUiValidationType

      protected UiValidationType chooseUiValidationType(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 interface UiTypeFinder
      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: