Class UniqueIdentifierAttributeToDataContentConverter<T extends ItemModel>

  • Type Parameters:
    T - the type parameter which extends the ItemModel type
    All Implemented Interfaces:
    Converter<T,​java.lang.String>

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

      • UniqueIdentifierAttributeToDataContentConverter

        public UniqueIdentifierAttributeToDataContentConverter()
    • Method Detail

      • convert

        public java.lang.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,​java.lang.String>
        Parameters:
        source - the input to be converted.
        Returns:
        an instance of T, converted from the input source.
      • setUniqueItemIdentifierService

        public void setUniqueItemIdentifierService​(UniqueItemIdentifierService uniqueItemIdentifierService)