Class ClassificationSystemVersion
java.lang.Object
de.hybris.platform.util.BridgeAbstraction
de.hybris.platform.jalo.Item
de.hybris.platform.jalo.ExtensibleItem
de.hybris.platform.jalo.c2l.LocalizableItem
de.hybris.platform.jalo.GenericItem
de.hybris.platform.catalog.jalo.GeneratedCatalogVersion
de.hybris.platform.catalog.jalo.CatalogVersion
de.hybris.platform.catalog.jalo.classification.GeneratedClassificationSystemVersion
de.hybris.platform.catalog.jalo.classification.ClassificationSystemVersion
- All Implemented Interfaces:
Serializable,Comparable
Represents a classification system version. This is the actual container for classification
classes,
attributes,
values and
units.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
Fields inherited from class de.hybris.platform.catalog.jalo.classification.GeneratedClassificationSystemVersion
CATALOGHANDLER, DEFAULT_INITIAL_ATTRIBUTESFields inherited from class de.hybris.platform.catalog.jalo.CatalogVersion
ERRORFields inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalogVersion
ACTIVE, AGREEMENTS, AGREEMENTSHANDLER, CATALOG, CATEGORYSYSTEMDESCRIPTION, CATEGORYSYSTEMID, CATEGORYSYSTEMNAME, DEFAULTCURRENCY, GENERATIONDATE, GENERATORINFO, INCLASSURANCE, INCLDUTY, INCLFREIGHT, INCLPACKING, INCOMINGSYNCHRONIZATIONS, INCOMINGSYNCHRONIZATIONSHANDLER, LANGUAGES, MIMEROOTDIRECTORY, PREVIOUSUPDATEVERSION, PRINCIPAL2READABLECATALOGVERSIONRELATION_MARKMODIFIED, PRINCIPAL2READABLECATALOGVERSIONRELATION_SRC_ORDERED, PRINCIPAL2READABLECATALOGVERSIONRELATION_TGT_ORDERED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_MARKMODIFIED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_SRC_ORDERED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_TGT_ORDERED, READPRINCIPALS, SYNCHRONIZATIONS, SYNCHRONIZATIONSHANDLER, TERRITORIES, VERSION, WRITEPRINCIPALSFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttributeUnit(String code, String symbol) Creates a new attribute unit within this system.createAttributeUnit(String code, String symbol, String unitType, double conversion) Creates a new attribute unit within this system.createClass(ClassificationClass superClass, String code) Creates a new class within this system version.createClass(String code) Creates a new class within this system version.Creates a new classification attribute.Creates a new attribute value within this system version.getAttributeUnit(String code) Deprecated.since ages - use classificationSystemService.getAttributeUnitForCode(systemVersion, code)getAttributeUnitBySymbol(String unitSymbol) Deprecated.since ages - use classificationSystemService.getAttributeUnitsForSystemVersion(systemVersion)Deprecated.since ages - use classificationSystemService.getAttributeForCode(systemVersion, code)Deprecated.since ages - use classificationSystemService.getAttributeValueForCode(systemVersion, code)getClassificationClass(Product product) Returns the classification class within this system version which is used to classify the given product, ornullif the product is not beeing classified by this system version.getClassificationClass(String code) Deprecated.since ages - use classificationSystemService.getClassForCode(systemVersion, code)getClassificationClasses(Product product) Deprecated.since ages - use classificationSystemService.getRootClassesForSystemVersion(systemVersion);protected voidsetCatalog(SessionContext ctx, Catalog param) Generated method - Setter of theCatalogVersion.catalogattribute.voidsetClassificationClass(Product product, ClassificationClass classificationClass) Changes the class assignment of the given product to the given classification class from this system version without changing its class assignments regarding other systems or system versions.toString()Returns theStringrepresentation of this item.Methods inherited from class de.hybris.platform.catalog.jalo.classification.GeneratedClassificationSystemVersion
createItem, getDefaultAttributeModesMethods inherited from class de.hybris.platform.catalog.jalo.CatalogVersion
addLanguage, checkRemovable, getAllCategories, getAllCategories, getAllCategoryCount, getAllCategoryCount, getAllKeywordCount, getAllKeywordCount, getAllKeywords, getAllKeywords, getAllMediaCount, getAllMedias, getAllMedias, getAllProductCount, getAllProductCount, getAllProducts, getAllProducts, getAllVisibleCategories, getAllVisibleCategoryCount, getAllVisibleProductCount, getAllVisibleProducts, getCatalogVersionItems, getCatalogVersionItems, getCategories, getCategories, getCategory, getCategory, getDuplicateCatalogItemIDs, getDuplicateCategoryIDs, getDuplicatedCatalogItemsCount, getDuplicateKeywords, getDuplicateMediaIDs, getDuplicateProductIDs, getKeywords, getMedia, getMedia, getMedias, getMedias, getProduct, getProduct, getProducts, getProducts, getRootCategories, getRootCategories, getRootCategoriesCount, getRootCategoriesCount, getSameCategories, getSameCategories, getSameKeywords, getSameMedias, getSameProducts, getSameProducts, getSyncJobs, getSyncJobs, hasAgreement, hasSynchronizations, isImportedLanguage, isRemovable, owns, owns, ownsCategories, remove, setActive, setActiveInternal, setLanguages, setReadPrincipals, setRootCategories, setRootCategories, setWritePrincipalsMethods inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalogVersion
addToAgreements, addToAgreements, addToReadPrincipals, addToReadPrincipals, addToSynchronizations, addToSynchronizations, addToWritePrincipals, addToWritePrincipals, getAgreements, getAgreements, getAllCategorySystemDescription, getAllCategorySystemDescription, getAllCategorySystemName, getAllCategorySystemName, getCatalog, getCatalog, getCategorySystemDescription, getCategorySystemDescription, getCategorySystemID, getCategorySystemID, getCategorySystemName, getCategorySystemName, getDefaultCurrency, getDefaultCurrency, getGenerationDate, getGenerationDate, getGeneratorInfo, getGeneratorInfo, getIncomingSynchronizations, getIncomingSynchronizations, getLanguages, getLanguages, getMimeRootDirectory, getMimeRootDirectory, getPreviousUpdateVersion, getPreviousUpdateVersion, getPreviousUpdateVersionAsPrimitive, getPreviousUpdateVersionAsPrimitive, getReadPrincipals, getReadPrincipals, getReadPrincipalsCount, getReadPrincipalsCount, getSynchronizations, getSynchronizations, getTerritories, getTerritories, getVersion, getVersion, getWritePrincipals, getWritePrincipals, getWritePrincipalsCount, getWritePrincipalsCount, isActive, isActive, isActiveAsPrimitive, isActiveAsPrimitive, isInclAssurance, isInclAssurance, isInclAssuranceAsPrimitive, isInclAssuranceAsPrimitive, isInclDuty, isInclDuty, isInclDutyAsPrimitive, isInclDutyAsPrimitive, isInclFreight, isInclFreight, isInclFreightAsPrimitive, isInclFreightAsPrimitive, isInclPacking, isInclPacking, isInclPackingAsPrimitive, isInclPackingAsPrimitive, isMarkModifiedDisabled, removeFromAgreements, removeFromAgreements, removeFromReadPrincipals, removeFromReadPrincipals, removeFromSynchronizations, removeFromSynchronizations, removeFromWritePrincipals, removeFromWritePrincipals, setActive, setActive, setActive, setAgreements, setAgreements, setAllCategorySystemDescription, setAllCategorySystemDescription, setAllCategorySystemName, setAllCategorySystemName, setCatalog, setCategorySystemDescription, setCategorySystemDescription, setCategorySystemID, setCategorySystemID, setCategorySystemName, setCategorySystemName, setDefaultCurrency, setDefaultCurrency, setGenerationDate, setGenerationDate, setGeneratorInfo, setGeneratorInfo, setInclAssurance, setInclAssurance, setInclAssurance, setInclAssurance, setInclDuty, setInclDuty, setInclDuty, setInclDuty, setInclFreight, setInclFreight, setInclFreight, setInclFreight, setInclPacking, setInclPacking, setInclPacking, setInclPacking, setLanguages, setMimeRootDirectory, setMimeRootDirectory, setPreviousUpdateVersion, setPreviousUpdateVersion, setPreviousUpdateVersion, setPreviousUpdateVersion, setReadPrincipals, setSynchronizations, setSynchronizations, setTerritories, setTerritories, setVersion, setVersion, setWritePrincipalsMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, suppressRelation, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
ClassificationSystemVersion
public ClassificationSystemVersion()
-
-
Method Details
-
toString
Description copied from class:ItemReturns theStringrepresentation of this item. This is by default the representation of the primary key of this item.- Overrides:
toStringin classCatalogVersion- Returns:
- the
Stringrepresentation of this item. - See Also:
-
getClassificationSystem
-
setCatalog
Description copied from class:GeneratedCatalogVersionGenerated method - Setter of theCatalogVersion.catalogattribute.- Overrides:
setCatalogin classCatalogVersionparam- the catalog
-
getFullVersionName
- Returns:
- the full classification system version name; that is systemId+"."+version
-
createClass
Creates a new class within this system version. Ensures that the class code is unique.- Parameters:
code- the code of the new class- Throws:
ConsistencyCheckException- in case a class with the same code already exists
-
createClass
public ClassificationClass createClass(ClassificationClass superClass, String code) throws ConsistencyCheckException Creates a new class within this system version. Ensures that the class code is unique.- Parameters:
code- the code of the new class- Throws:
ConsistencyCheckException- in case a class with the same code already exists
-
createClassificationAttribute
public ClassificationAttribute createClassificationAttribute(String code) throws ConsistencyCheckException Creates a new classification attribute. Ensures that the attribute code is unique within this system.- Parameters:
code- the code of the new attribute- Throws:
ConsistencyCheckException- in case an attribute exists holding the same code
-
getClassificationAttribute
@Deprecated(since="ages", forRemoval=false) public ClassificationAttribute getClassificationAttribute(String code) throws JaloItemNotFoundException Deprecated.since ages - use classificationSystemService.getAttributeForCode(systemVersion, code)Finds a classification attribute by its (unique) code.- Parameters:
code- the attribute code- Throws:
JaloItemNotFoundException- if no such attribute exists
-
getClassificationClass
@Deprecated(since="ages", forRemoval=false) public ClassificationClass getClassificationClass(String code) throws JaloItemNotFoundException Deprecated.since ages - use classificationSystemService.getClassForCode(systemVersion, code)Finds a classification class by its (unique) code.- Parameters:
code- the class code- Throws:
JaloItemNotFoundException- in case there is no such class
-
getClassificationClass
public ClassificationClass getClassificationClass(Product product) throws JaloInvalidParameterException Returns the classification class within this system version which is used to classify the given product, ornullif the product is not beeing classified by this system version.Please note that the product may be assigned to more than one classification class within this system though this should be rather an exception. In this case a exception is raised.
- Throws:
JaloInvalidParameterException- if the product is assigned to more than one class of this system version
-
getClassificationClasses
-
setClassificationClass
Changes the class assignment of the given product to the given classification class from this system version without changing its class assignments regarding other systems or system versions.- Parameters:
product- the product to change classification forclassificationClass- the new classification class to assign
-
getRootClasses
Deprecated.since ages - use classificationSystemService.getRootClassesForSystemVersion(systemVersion);Returns all root classes. This method does the same asCatalogVersion.getRootCategories()except that onlyClassificationClassinstances are returned. -
createClassificationAttributeValue
public ClassificationAttributeValue createClassificationAttributeValue(String code) throws ConsistencyCheckException Creates a new attribute value within this system version. Ensures uniqe value code.- Parameters:
code- the code of the new value- Throws:
ConsistencyCheckException- in case a value holding the same code already exists
-
getClassificationAttributeValue
@Deprecated(since="ages", forRemoval=false) public ClassificationAttributeValue getClassificationAttributeValue(String code) throws JaloItemNotFoundException Deprecated.since ages - use classificationSystemService.getAttributeValueForCode(systemVersion, code)Finds a attribute value by its (unique) code.- Parameters:
code- the value code- Throws:
JaloItemNotFoundException- if no such value exists
-
createAttributeUnit
public ClassificationAttributeUnit createAttributeUnit(String code, String symbol) throws ConsistencyCheckException Creates a new attribute unit within this system.- Parameters:
code- the unit codesymbol- the unit symbol- Throws:
ConsistencyCheckException- if a unit with the same code already exists
-
createAttributeUnit
public ClassificationAttributeUnit createAttributeUnit(String code, String symbol, String unitType, double conversion) throws ConsistencyCheckException, JaloInvalidParameterException Creates a new attribute unit within this system. By specifying a unit type and a conversion factor this unit may be convertible with other units.- Parameters:
code- the unit codesymbol- the unit symbolunitType- the unit type indetifier; all units with the same type are considered as beeing convertibleconversion- only valid if unitType is set: specifies how values of this unit are measured in comparison to values of other convertible units; must be > 0 !- Throws:
ConsistencyCheckException- if a unit with the same code already existsJaloInvalidParameterException- if the conversion factor is <= 0
-
getAttributeUnitBySymbol
public ClassificationAttributeUnit getAttributeUnitBySymbol(String unitSymbol) throws JaloItemNotFoundException - Throws:
JaloItemNotFoundException
-
getAttributeUnit
@Deprecated(since="ages", forRemoval=false) public ClassificationAttributeUnit getAttributeUnit(String code) throws JaloItemNotFoundException Deprecated.since ages - use classificationSystemService.getAttributeUnitForCode(systemVersion, code)Finds an attribute unit by its unique code.- Parameters:
code- the unit code- Throws:
JaloItemNotFoundException- in case there is no such unit
-
getAttributeUnits
@Deprecated(since="ages", forRemoval=false) public Collection<ClassificationAttributeUnit> getAttributeUnits()Deprecated.since ages - use classificationSystemService.getAttributeUnitsForSystemVersion(systemVersion)
-