Class HybrisEnumValueConverter

    • Constructor Detail

      • HybrisEnumValueConverter

        public HybrisEnumValueConverter()
    • Method Detail

      • canHandle

        public boolean canHandle​(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
      • convertValue

        public java.lang.Object convertValue​(SavedQueryValue savedQueryValue,
                                             com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
        Description copied from interface: BackofficeSavedQueryValueConverter
        Converts savedQueryValue into object value.
        Parameters:
        savedQueryValue - an object which holds value string representation and value metadata.
        dataAttribute - attribute descriptor.
        Returns:
        converted value or null if the conversion fails.
      • convertValue

        public SavedQueryValue convertValue​(java.lang.Object value,
                                            com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
        Description copied from interface: BackofficeSavedQueryValueConverter
        Converts object into savedQueryValue - an object which holds value string representation and value metadata.
        Parameters:
        value - value to convert.
        dataAttribute - attribute descriptor.
        Returns:
        string value representation with metadata or null if the conversion fails.
      • setEnumerationService

        public void setEnumerationService​(EnumerationService enumerationService)