Class UniqueIdentifierAttributeToDataContentConverter<T extends ItemModel>

java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.UniqueIdentifierAttributeToDataContentConverter<T>
Type Parameters:
T - the type parameter which extends the ItemModel type
All Implemented Interfaces:
Converter<T,String>

public class UniqueIdentifierAttributeToDataContentConverter<T extends ItemModel> extends Object implements Converter<T,String>
Abstract Unique Identifier Attribute Converter for ItemModel types. It converts the model using the UniqueItemIdentifierService
  • Constructor Details

    • UniqueIdentifierAttributeToDataContentConverter

      public UniqueIdentifierAttributeToDataContentConverter()
  • Method Details

    • convert

      public String convert(T source)
      Description copied from interface: Converter
      Uses the source S object and produces an new instance of T.
      Specified by:
      convert in interface Converter<T extends ItemModel,String>
      Parameters:
      source - the input to be converted.
      Returns:
      an instance of T, converted from the input source.
    • getUniqueItemIdentifierService

      protected UniqueItemIdentifierService getUniqueItemIdentifierService()
    • setUniqueItemIdentifierService

      public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)