public class ClassAttributeAssignment extends GeneratedClassAttributeAssignment
ClassificationClass and
ClassificationAttribute. Since this relation carries a lot of
additional information no real relation but a whole new item type was introduced.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionATTRIBUTETYPE, ATTRIBUTEVALUEDISPLAYSTRING, ATTRIBUTEVALUES, CLASSIFICATIONATTRIBUTE, CLASSIFICATIONCLASS, COMPARABLE, DEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, EXTERNALID, FORMATDEFINITION, LISTABLE, LOCALIZED, MANDATORY, MULTIVALUED, POSITION, RANGE, REFERENCEINCLUDESSUBTYPES, REFERENCETYPE, SEARCHABLE, SYSTEMVERSION, UNIT, VISIBILITYLANGUAGE_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 |
|---|
ClassAttributeAssignment() |
| Modifier and Type | Method and Description |
|---|---|
protected AttributeValueAssignment |
assignToMe(ClassificationAttributeValue classificationAttributeValue,
int position) |
void |
assignValue(ClassificationAttributeValue classificationAttributeValue) |
void |
assignValue(ClassificationAttributeValue classificationAttributeValue,
int position) |
protected void |
checkCreationConstrains(ClassificationClass classificationClass,
ClassificationAttribute attr) |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Superclass method overridden to ensure that classification class and attribute is always specified.
|
java.util.Map<Language,java.lang.String> |
getAllAttributeValueDisplayString(SessionContext ctx)
All-languages getter for HMC helper attribute
attributeValueDisplayString. |
protected java.util.Collection<AttributeValueAssignment> |
getAllValueAssignments() |
java.lang.String |
getAttributeValueDisplayString(SessionContext ctx)
Getter for HMC helper attribute
attributeValueDisplayString. |
java.util.List<ClassificationAttributeValue> |
getAttributeValues(SessionContext ctx)
Generated method - Getter of the
ClassAttributeAssignment.attributeValues attribute. |
java.text.DateFormat |
getDateFormat(SessionContext ctx) |
protected java.util.Collection<ProductFeature> |
getFeaturesValues(int start,
int count) |
protected int |
getMaxValuePosition() |
java.text.NumberFormat |
getNumberFormat(SessionContext ctx) |
void |
remove(SessionContext ctx)
Removes this item.
|
void |
setAttributeValues(SessionContext ctx,
java.util.List<ClassificationAttributeValue> values)
Generated method - Setter of the
ClassAttributeAssignment.attributeValues attribute. |
void |
setClassificationClass(ClassificationClass value)
Generated method - Setter of the
ClassAttributeAssignment.classificationClass attribute. |
void |
setFormatDefinition(SessionContext ctx,
java.lang.String format)
Generated method - Setter of the
ClassAttributeAssignment.formatDefinition attribute. |
void |
setUnit(SessionContext ctx,
ClassificationAttributeUnit classificationAttributeUnit)
Generated method - Setter of the
ClassAttributeAssignment.unit attribute. |
java.lang.String |
toString()
Returns the
String representation of this item. |
getAllAttributeValueDisplayString, getAllDescription, getAllDescription, getAttributeType, getAttributeType, getAttributeValueDisplayString, getAttributeValues, getClassificationAttribute, getClassificationAttribute, getClassificationClass, getClassificationClass, getDefaultAttributeModes, getDescription, getDescription, getExternalID, getExternalID, getFormatDefinition, getFormatDefinition, getPosition, getPosition, getPositionAsPrimitive, getPositionAsPrimitive, getReferenceType, getReferenceType, getSystemVersion, getSystemVersion, getUnit, getUnit, getVisibility, getVisibility, isComparable, isComparable, isComparableAsPrimitive, isComparableAsPrimitive, isListable, isListable, isListableAsPrimitive, isListableAsPrimitive, isLocalized, isLocalized, isLocalizedAsPrimitive, isLocalizedAsPrimitive, isMandatory, isMandatory, isMandatoryAsPrimitive, isMandatoryAsPrimitive, isMultiValued, isMultiValued, isMultiValuedAsPrimitive, isMultiValuedAsPrimitive, isRange, isRange, isRangeAsPrimitive, isRangeAsPrimitive, isReferenceIncludesSubTypes, isReferenceIncludesSubTypes, isReferenceIncludesSubTypesAsPrimitive, isReferenceIncludesSubTypesAsPrimitive, isSearchable, isSearchable, isSearchableAsPrimitive, isSearchableAsPrimitive, setAllDescription, setAllDescription, setAttributeType, setAttributeType, setAttributeValues, setClassificationAttribute, setClassificationAttribute, setClassificationClass, setComparable, setComparable, setComparable, setComparable, setDescription, setDescription, setExternalID, setExternalID, setFormatDefinition, setListable, setListable, setListable, setListable, setLocalized, setLocalized, setLocalized, setLocalized, setMandatory, setMandatory, setMandatory, setMandatory, setMultiValued, setMultiValued, setMultiValued, setMultiValued, setPosition, setPosition, setPosition, setPosition, setRange, setRange, setRange, setRange, setReferenceIncludesSubTypes, setReferenceIncludesSubTypes, setReferenceIncludesSubTypes, setReferenceIncludesSubTypes, setReferenceType, setReferenceType, setSearchable, setSearchable, setSearchable, setSearchable, setSystemVersion, setSystemVersion, setUnit, setVisibility, setVisibilitygetInitialProperties, 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, checkRemovable, 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, isMarkModifiedDisabled, 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, writeReplacesetTenantprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic void remove(SessionContext ctx) throws ConsistencyCheckException
Item
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| n/a (this is a setter method) | no, language doesn't matter for removal | yes if called on a StageableItem, no otherwise |
remove in class Itemctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonprotected void checkCreationConstrains(ClassificationClass classificationClass, ClassificationAttribute attr) throws ConsistencyCheckException
ConsistencyCheckExceptionpublic java.lang.String toString()
ItemString representation of this item. This is by default the representation of the primary
key of this item.protected java.util.Collection<ProductFeature> getFeaturesValues(int start, int count)
public void setUnit(SessionContext ctx, ClassificationAttributeUnit classificationAttributeUnit)
GeneratedClassAttributeAssignmentClassAttributeAssignment.unit attribute.setUnit in class GeneratedClassAttributeAssignmentclassificationAttributeUnit - the unitJaloInvalidParameterException - if the classification unit doenst belon to the same system as the referenced class and attributeprotected java.util.Collection<AttributeValueAssignment> getAllValueAssignments()
public java.util.List<ClassificationAttributeValue> getAttributeValues(SessionContext ctx)
GeneratedClassAttributeAssignmentClassAttributeAssignment.attributeValues attribute.getAttributeValues in class GeneratedClassAttributeAssignmentpublic void setAttributeValues(SessionContext ctx, java.util.List<ClassificationAttributeValue> values)
GeneratedClassAttributeAssignmentClassAttributeAssignment.attributeValues attribute.setAttributeValues in class GeneratedClassAttributeAssignmentvalues - the attributeValuesprotected int getMaxValuePosition()
public void assignValue(ClassificationAttributeValue classificationAttributeValue)
public void assignValue(ClassificationAttributeValue classificationAttributeValue, int position)
protected AttributeValueAssignment assignToMe(ClassificationAttributeValue classificationAttributeValue, int position)
public java.lang.String getAttributeValueDisplayString(SessionContext ctx)
attributeValueDisplayString. Its shows all usable values for the
assigned attribute within the assigned classification class.getAttributeValueDisplayString in class GeneratedClassAttributeAssignmentpublic java.util.Map<Language,java.lang.String> getAllAttributeValueDisplayString(SessionContext ctx)
attributeValueDisplayString. Its shows all usable
values for the assigned attribute within the assigned classification class.getAllAttributeValueDisplayString in class GeneratedClassAttributeAssignmentpublic void setFormatDefinition(SessionContext ctx, java.lang.String format)
GeneratedClassAttributeAssignmentClassAttributeAssignment.formatDefinition attribute.setFormatDefinition in class GeneratedClassAttributeAssignmentformat - the formatDefinition - Format definition string: optionally used e.g. as number formatpublic java.text.NumberFormat getNumberFormat(SessionContext ctx)
public java.text.DateFormat getDateFormat(SessionContext ctx)
public void setClassificationClass(ClassificationClass value)
GeneratedClassAttributeAssignmentClassAttributeAssignment.classificationClass attribute.setClassificationClass in class GeneratedClassAttributeAssignmentvalue - the classificationClassCopyright © 2018 SAP SE. All Rights Reserved.