Package de.hybris.platform.catalog.jalo
Interface CatalogItem<T extends Item>
-
- All Known Implementing Classes:
ClassificationKeyword,GeneratedClassificationKeyword,Keyword
public interface CatalogItem<T extends Item>Implementations of this class represents an catalog item (@see de.hybris.platform.catalog.jalo.Keyword).During synchronization these items are treated specially in the following cases:
- references
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCatalogItemID()Returns the unique id of this item.CatalogVersiongetCatalogVersion(SessionContext ctx)Returns the enclosing catalog version of this item.java.lang.StringgetCatalogVersionAttributeQualifier()Must provide the attribute qualifier of the attribute holding the catalog version which this item belongs to.TgetCounterpartItem(CatalogVersion targetVersion)Optionally finds potential copies of this item within a synchronization target version.java.lang.StringgetIDAttributeQualifier()Must provide the attribute qualifier of the attribute holding the unique id of this item.
-
-
-
Method Detail
-
getIDAttributeQualifier
java.lang.String getIDAttributeQualifier()
Must provide the attribute qualifier of the attribute holding the unique id of this item.
-
getCatalogVersionAttributeQualifier
java.lang.String getCatalogVersionAttributeQualifier()
Must provide the attribute qualifier of the attribute holding the catalog version which this item belongs to.
-
getCatalogItemID
java.lang.String getCatalogItemID()
Returns the unique id of this item. This id is unique within its enclosing catalog version only - other catalog versions may own items with the same id ( usually copies of this one ).
-
getCatalogVersion
CatalogVersion getCatalogVersion(SessionContext ctx)
Returns the enclosing catalog version of this item.
-
getCounterpartItem
T getCounterpartItem(CatalogVersion targetVersion)
Optionally finds potential copies of this item within a synchronization target version. This applies to catalog items which have not been synchronized before but nevertheless already exist in both version and must be matched to avoid duplicates.Hint: Usually this can be easily implemented by searching for a item with he same id within the target version.
-
-