Class DefaultUniqueItemIdentifierService

    • Constructor Detail

      • DefaultUniqueItemIdentifierService

        public DefaultUniqueItemIdentifierService()
    • Method Detail

      • getItemData

        public java.util.Optional<ItemData> getItemData​(ItemModel itemModel)
        Description copied from interface: UniqueItemIdentifierService
        Method to get the unique identifier and other information (not the PK) about an Item Model. For CMS Items, that means getting the CMSItemModel.getUid() and name, but for other Items, this could be different.
        Specified by:
        getItemData in interface UniqueItemIdentifierService
        Parameters:
        itemModel - the item model used to get the unique identifier.
        Returns:
        an item data object that contains the item's unique identifier and any other information
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • setUniqueIdentifierConverters

        public void setUniqueIdentifierConverters​(java.util.Set<UniqueIdentifierConverter> uniqueIdentifierConverters)
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getCmsItemDataDataFactory

        protected org.springframework.beans.factory.ObjectFactory<ItemData> getCmsItemDataDataFactory()
      • setCmsItemDataDataFactory

        public void setCmsItemDataDataFactory​(org.springframework.beans.factory.ObjectFactory<ItemData> cmsItemDataDataFactory)