public abstract class ExtensibleItem extends Item
See our Jalo extension tutorial for more informations.
The following state chart presents a the life cycle of a stageable property. Please not that only stageable items have stageable properties. Non-stagable properties have only the states does not exist and unchanged.
Note: If you are using Serializable objects as property values, be sure that the declaring class is in the serverside's classpath. This is a restriction in the current release of hybris platform.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtensibleItem.ExtensibleItemImpl
internal use only!
|
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException_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 |
|---|
ExtensibleItem() |
| Modifier and Type | Method and Description |
|---|---|
protected AttributeAccess |
createNonClassAccessor(AttributeDescriptor fieldDescriptor) |
Map |
getAllProperties()
Returns all properties as as Map of key/value mappings.
|
Map |
getAllProperties(SessionContext ctx)
Returns all properties as as Map of key/value mappings.
|
Object |
getProperty(SessionContext ctx,
String name)
Gets a Property.
|
Object |
getProperty(String name)
Gets a Property.
|
Set |
getPropertyNames()
Returns all used property names (keys) of this item.
|
Set |
getPropertyNames(SessionContext ctx)
Returns all used property names (keys) of this item.
|
Object |
removeProperty(SessionContext ctx,
String name)
Removes a Property.
|
Object |
removeProperty(String name)
Removes a Property.
|
void |
setAllProperties(JaloPropertyContainer propertyContainer)
Set all properties in the property container, using the staging method set in the current session context.
|
void |
setAllProperties(SessionContext ctx,
JaloPropertyContainer propertyContainer)
Set all properties of the given property container.
|
Object |
setProperty(SessionContext ctx,
String name,
Object value)
Sets a Property.
|
Object |
setProperty(String name,
Object value)
Sets a Property.
|
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, createItem, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getNonInitialAttributes, 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, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, 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, toString, useTA, writeReplacegetImplementation, setTenantprotected AttributeAccess createNonClassAccessor(AttributeDescriptor fieldDescriptor)
createNonClassAccessor in class Itempublic Map getAllProperties()
This method calls getAllProperties(SessionContext) with the current session's SessionContext object. See
this method for more details.
public Map getAllProperties(SessionContext ctx)
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| yes | no | yes if used with staged items, no otherwise |
ctx - a SessionContext object.public Set getPropertyNames()
This method calls getPropertyNames(SessionContext) with the current session's SessionContext object. See
this method for more details.
public Set getPropertyNames(SessionContext ctx)
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| yes | no | yes if used with staged items, no otherwise |
ctx - A SessionContext objectpublic Object setProperty(String name, Object value)
This method calls setProperty(SessionContext, String, Object) with the current session's SessionContext
object. See this method for more details.
name - the name (key) of the propertyvalue - the valuenull if there was no property.public Object setProperty(SessionContext ctx, String name, Object value)
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| no, this is a setter method. | no | yes if used with staged items, no otherwise |
ctx - A SessionContext objectname - the name (key) of the propertyvalue - the valuenull if there was no property.public Object getProperty(String name)
This method calls getProperty(SessionContext,String) with the current session's SessionContext object.
See this method for more details.
name - the name (key) of the propertypublic Object getProperty(SessionContext ctx, String name)
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| yes | no | yes if used with staged items, no otherwise |
ctx - A SessionContext objectname - the name (key) of the propertypublic Object removeProperty(String name)
This method calls removeProperty(SessionContext,String) with the current session's SessionContext object.
See this method for more details.
name - the name (key) of the property you want to removenull if there was no property.public Object removeProperty(SessionContext ctx, String name)
A call to this method is the same like setting a property to null.
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| no, this is a setter method. | no | yes if used with staged items, no otherwise |
ctx - A SessionContext objectname - the name (key) of the property you want to removenull if there was no property.public void setAllProperties(JaloPropertyContainer propertyContainer) throws ConsistencyCheckException
propertyContainer - the property containerConsistencyCheckException - if the property container contains localized properties and the called item is not localizablepublic void setAllProperties(SessionContext ctx, JaloPropertyContainer propertyContainer) throws ConsistencyCheckException
ctx - determines the staging method, but not the localization of propertiespropertyContainer - the property containerConsistencyCheckException - if the property container contains localized properties and the called item is not localizableCopyright © 2017 SAP SE. All Rights Reserved.