Class ExtensibleItem
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Link,LocalizableItem
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceinternal use only!Nested 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.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 TypeMethodDescriptionprotected AttributeAccesscreateNonClassAccessor(AttributeDescriptor fieldDescriptor) Returns all properties as as Map of key/value mappings.Returns all properties as as Map of key/value mappings.returns the implementation object of this jalo bridge abstractiongetProperty(SessionContext ctx, String name) Gets a Property.getProperty(String name) Gets a Property.Returns all used property names (keys) of this item.Returns all used property names (keys) of this item.removeProperty(SessionContext ctx, String name) Removes a Property.removeProperty(String name) Removes a Property.voidsetAllProperties(SessionContext ctx, JaloPropertyContainer propertyContainer) Set all properties of the given property container.voidsetAllProperties(JaloPropertyContainer propertyContainer) Set all properties in the property container, using the staging method set in the current session context.setProperty(SessionContext ctx, String name, Object value) Sets a Property.setProperty(String name, Object value) Sets a Property.Methods 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, 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, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRelatedItems, getRelatedItems, 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, 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, setRelatedItems, setTransientObject, setUseTA, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
ExtensibleItem
public ExtensibleItem()
-
-
Method Details
-
getImplementation
Description copied from class:BridgeAbstractionreturns the implementation object of this jalo bridge abstraction- Overrides:
getImplementationin classItem- Returns:
- the implementation object of this jalo bridge abstraction
-
createNonClassAccessor
- Overrides:
createNonClassAccessorin classItem
-
getAllProperties
Returns all properties as as Map of key/value mappings.
This method calls
getAllProperties(SessionContext)with the current session's SessionContext object. See this method for more details.- Returns:
- the key/value map of all non localized properties
-
getAllProperties
Returns all properties as as Map of key/value mappings.This method is using the following attributes of the given SessionContext:
CacheUsage Language StagingMethod yes no yes if used with staged items, no otherwise
- Parameters:
ctx- a SessionContext object.- Returns:
- the key/value map of all non localized properties
-
getPropertyNames
Returns all used property names (keys) of this item.This method calls
getPropertyNames(SessionContext)with the current session's SessionContext object. See this method for more details.- Returns:
- set of property names (Strings)
-
getPropertyNames
Returns all used property names (keys) of this item.This method is using the following attributes of the given SessionContext:
CacheUsage Language StagingMethod yes no yes if used with staged items, no otherwise
- Parameters:
ctx- A SessionContext object- Returns:
- set of property names (Strings)
-
setProperty
Sets a Property.This method calls
setProperty(SessionContext, String, Object)with the current session's SessionContext object. See this method for more details.- Parameters:
name- the name (key) of the propertyvalue- the value- Returns:
- the property that was bound to the name or
nullif there was no property.
-
setProperty
Sets a Property.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
- Parameters:
ctx- A SessionContext objectname- the name (key) of the propertyvalue- the value- Returns:
- the property that was bound to the name or
nullif there was no property.
-
getProperty
Gets a Property.This method calls
getProperty(SessionContext, String)with the current session's SessionContext object. See this method for more details.- Parameters:
name- the name (key) of the property- Returns:
- the value bound to the given name.
-
getProperty
Gets a Property.This method is using the following attributes of the given SessionContext:
CacheUsage Language StagingMethod yes no yes if used with staged items, no otherwise
- Parameters:
ctx- A SessionContext objectname- the name (key) of the property- Returns:
- the value bound to the given name.
-
removeProperty
Removes a Property.This method calls
removeProperty(SessionContext, String)with the current session's SessionContext object. See this method for more details.- Parameters:
name- the name (key) of the property you want to remove- Returns:
- the property that was bound to the name before removal or
nullif there was no property.
-
removeProperty
Removes a Property.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
- Parameters:
ctx- A SessionContext objectname- the name (key) of the property you want to remove- Returns:
- the property that was bound to the name before removal or
nullif there was no property.
-
setAllProperties
public void setAllProperties(JaloPropertyContainer propertyContainer) throws ConsistencyCheckException Set all properties in the property container, using the staging method set in the current session context.- Parameters:
propertyContainer- the property container- Throws:
ConsistencyCheckException- if the property container contains localized properties and the called item is not localizable
-
setAllProperties
public void setAllProperties(SessionContext ctx, JaloPropertyContainer propertyContainer) throws ConsistencyCheckException Set all properties of the given property container.- Parameters:
ctx- determines the staging method, but not the localization of propertiespropertyContainer- the property container- Throws:
ConsistencyCheckException- if the property container contains localized properties and the called item is not localizable
-