Class ItemACLCacheKey
- java.lang.Object
-
- de.hybris.platform.persistence.ItemCacheKey
-
- de.hybris.platform.persistence.security.ItemACLCacheKey
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
GlobalACLCacheKey
public class ItemACLCacheKey extends ItemCacheKey
item cache key for keeping an item's acl inside a cache object.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_QUALIFIERprotected booleanclonedprotected PKitemPK
-
Constructor Summary
Constructors Modifier Constructor Description ItemACLCacheKey()protectedItemACLCacheKey(PK itemPK)clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()protected java.lang.ObjectcloneValue(java.lang.Object value)this method should clone a cached value object.protected java.lang.ObjectcomputeValue(ItemEJB item)initially creates the cached data object for a specified item.protected java.lang.ObjectcreateUnmodifiableViewOfValue(java.lang.Object value)it's ok to return the result ofgetValuein this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValueprotected voiddispose(boolean inRemove)called when this cache key object is remove from cache.protected java.lang.StringgetQualifier()protected booleanisValid(ItemEJB item)-
Methods inherited from class de.hybris.platform.persistence.ItemCacheKey
getCopy, getValueForModification, getValueForReading, getValueForReadingIfAvailable, getValueInternal
-
-
-
-
Field Detail
-
BASE_QUALIFIER
public static final java.lang.String BASE_QUALIFIER
- See Also:
- Constant Field Values
-
cloned
protected final boolean cloned
-
itemPK
protected PK itemPK
-
-
Constructor Detail
-
ItemACLCacheKey
public ItemACLCacheKey()
-
ItemACLCacheKey
protected ItemACLCacheKey(PK itemPK)
clone constructor
-
-
Method Detail
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
getQualifier
protected java.lang.String getQualifier()
- Specified by:
getQualifierin classItemCacheKey- Returns:
- an key for the CachedValue that is unique within the Item instance
-
isValid
protected boolean isValid(ItemEJB item)
- Specified by:
isValidin classItemCacheKey- Returns:
- true if the cache key object is still valid for the given item. this is called each time when the cache key is retrieved.
-
dispose
protected void dispose(boolean inRemove)
Description copied from class:ItemCacheKeycalled when this cache key object is remove from cache.- Overrides:
disposein classItemCacheKey
-
computeValue
protected java.lang.Object computeValue(ItemEJB item)
Description copied from class:ItemCacheKeyinitially creates the cached data object for a specified item. this method is only called once for one ItemCacheKey instance.- Specified by:
computeValuein classItemCacheKey
-
cloneValue
protected java.lang.Object cloneValue(java.lang.Object value)
Description copied from class:ItemCacheKeythis method should clone a cached value object. it will be called duringItemCacheKey.getCopy()only if this ItemCacheKey object already holds a cached value object.- Specified by:
cloneValuein classItemCacheKey
-
createUnmodifiableViewOfValue
protected java.lang.Object createUnmodifiableViewOfValue(java.lang.Object value)
Description copied from class:ItemCacheKeyit's ok to return the result ofgetValuein this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValue- Specified by:
createUnmodifiableViewOfValuein classItemCacheKey
-
-