public class ClassificationSystemVersion extends GeneratedClassificationSystemVersion
classes,
attributes,
values and
units.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionCATALOGHANDLER, DEFAULT_INITIAL_ATTRIBUTESERRORACTIVE, 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, WRITEPRINCIPALSLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
ClassificationSystemVersion() |
| Modifier and Type | Method and Description |
|---|---|
ClassificationAttributeUnit |
createAttributeUnit(java.lang.String code,
java.lang.String symbol)
Creates a new attribute unit within this system.
|
ClassificationAttributeUnit |
createAttributeUnit(java.lang.String code,
java.lang.String symbol,
java.lang.String unitType,
double conversion)
Creates a new attribute unit within this system.
|
ClassificationClass |
createClass(ClassificationClass superClass,
java.lang.String code)
Creates a new class within this system version.
|
ClassificationClass |
createClass(java.lang.String code)
Creates a new class within this system version.
|
ClassificationAttribute |
createClassificationAttribute(java.lang.String code)
Creates a new classification attribute.
|
ClassificationAttributeValue |
createClassificationAttributeValue(java.lang.String code)
Creates a new attribute value within this system version.
|
ClassificationAttributeUnit |
getAttributeUnit(java.lang.String code)
Deprecated.
since ages - use classificationSystemService.getAttributeUnitForCode(systemVersion, code)
|
ClassificationAttributeUnit |
getAttributeUnitBySymbol(java.lang.String unitSymbol) |
java.util.Collection<ClassificationAttributeUnit> |
getAttributeUnits()
Deprecated.
since ages - use classificationSystemService.getAttributeUnitsForSystemVersion(systemVersion)
|
ClassificationAttribute |
getClassificationAttribute(java.lang.String code)
Deprecated.
since ages - use classificationSystemService.getAttributeForCode(systemVersion, code)
|
ClassificationAttributeValue |
getClassificationAttributeValue(java.lang.String code)
Deprecated.
since ages - use classificationSystemService.getAttributeValueForCode(systemVersion, code)
|
ClassificationClass |
getClassificationClass(Product product)
Returns the classification class within this system version which is used to classify the given product, or
null if the product is not beeing classified by this system version. |
ClassificationClass |
getClassificationClass(java.lang.String code)
Deprecated.
since ages - use classificationSystemService.getClassForCode(systemVersion, code)
|
java.util.Collection<ClassificationClass> |
getClassificationClasses(Product product) |
ClassificationSystem |
getClassificationSystem() |
java.lang.String |
getFullVersionName() |
java.util.Collection<ClassificationClass> |
getRootClasses()
Deprecated.
since ages - use classificationSystemService.getRootClassesForSystemVersion(systemVersion);
|
protected void |
setCatalog(SessionContext ctx,
Catalog param)
Generated method - Setter of the
CatalogVersion.catalog attribute. |
void |
setClassificationClass(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.
|
java.lang.String |
toString()
Returns the
String representation of this item. |
createItem, getDefaultAttributeModesaddLanguage, 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, setWritePrincipalsaddToAgreements, 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, setWritePrincipalsgetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, 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, useTA, writeReplacesetTenantpublic java.lang.String toString()
ItemString representation of this item. This is by default the representation of the primary
key of this item.toString in class CatalogVersionString representation of this item.Object.toString()public ClassificationSystem getClassificationSystem()
protected void setCatalog(SessionContext ctx, Catalog param)
GeneratedCatalogVersionCatalogVersion.catalog attribute.setCatalog in class CatalogVersionparam - the catalogpublic java.lang.String getFullVersionName()
public ClassificationClass createClass(java.lang.String code) throws ConsistencyCheckException
code - the code of the new classConsistencyCheckException - in case a class with the same code already existspublic ClassificationClass createClass(ClassificationClass superClass, java.lang.String code) throws ConsistencyCheckException
code - the code of the new classConsistencyCheckException - in case a class with the same code already existspublic ClassificationAttribute createClassificationAttribute(java.lang.String code) throws ConsistencyCheckException
code - the code of the new attributeConsistencyCheckException - in case an attribute exists holding the same code@Deprecated public ClassificationAttribute getClassificationAttribute(java.lang.String code) throws JaloItemNotFoundException
code - the attribute codeJaloItemNotFoundException - if no such attribute exists@Deprecated public ClassificationClass getClassificationClass(java.lang.String code) throws JaloItemNotFoundException
code - the class codeJaloItemNotFoundException - in case there is no such classpublic ClassificationClass getClassificationClass(Product product) throws JaloInvalidParameterException
null if 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.
JaloInvalidParameterException - if the product is assigned to more than one class of this system versionpublic java.util.Collection<ClassificationClass> getClassificationClasses(Product product)
public void setClassificationClass(Product product, ClassificationClass classificationClass)
product - the product to change classification forclassificationClass - the new classification class to assign@Deprecated public java.util.Collection<ClassificationClass> getRootClasses()
CatalogVersion.getRootCategories() except that only
ClassificationClass instances are returned.public ClassificationAttributeValue createClassificationAttributeValue(java.lang.String code) throws ConsistencyCheckException
code - the code of the new valueConsistencyCheckException - in case a value holding the same code already exists@Deprecated public ClassificationAttributeValue getClassificationAttributeValue(java.lang.String code) throws JaloItemNotFoundException
code - the value codeJaloItemNotFoundException - if no such value existspublic ClassificationAttributeUnit createAttributeUnit(java.lang.String code, java.lang.String symbol) throws ConsistencyCheckException
code - the unit codesymbol - the unit symbolConsistencyCheckException - if a unit with the same code already existspublic ClassificationAttributeUnit createAttributeUnit(java.lang.String code, java.lang.String symbol, java.lang.String unitType, double conversion) throws ConsistencyCheckException, JaloInvalidParameterException
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 !ConsistencyCheckException - if a unit with the same code already existsJaloInvalidParameterException - if the conversion factor is <= 0public ClassificationAttributeUnit getAttributeUnitBySymbol(java.lang.String unitSymbol) throws JaloItemNotFoundException
JaloItemNotFoundException@Deprecated public ClassificationAttributeUnit getAttributeUnit(java.lang.String code) throws JaloItemNotFoundException
code - the unit codeJaloItemNotFoundException - in case there is no such unit@Deprecated public java.util.Collection<ClassificationAttributeUnit> getAttributeUnits()
Copyright © 2018 SAP SE. All Rights Reserved.