Class ItemACLCacheKey

java.lang.Object
de.hybris.platform.persistence.ItemCacheKey
de.hybris.platform.persistence.security.ItemACLCacheKey
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GlobalACLCacheKey

public class ItemACLCacheKey extends ItemCacheKey
item cache key for keeping an item's acl inside a cache object.
  • Field Details

    • BASE_QUALIFIER

      public static final String BASE_QUALIFIER
      See Also:
    • cloned

      protected final boolean cloned
    • itemPK

      protected PK itemPK
  • Constructor Details

    • ItemACLCacheKey

      public ItemACLCacheKey()
    • ItemACLCacheKey

      protected ItemACLCacheKey(PK itemPK)
      clone constructor
  • Method Details

    • clone

      protected Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getQualifier

      protected String getQualifier()
      Specified by:
      getQualifier in class ItemCacheKey
      Returns:
      an key for the CachedValue that is unique within the Item instance
    • isValid

      protected boolean isValid(ItemEJB item)
      Specified by:
      isValid in class ItemCacheKey
      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: ItemCacheKey
      called when this cache key object is remove from cache.
      Overrides:
      dispose in class ItemCacheKey
    • computeValue

      protected Object computeValue(ItemEJB item)
      Description copied from class: ItemCacheKey
      initially creates the cached data object for a specified item. this method is only called once for one ItemCacheKey instance.
      Specified by:
      computeValue in class ItemCacheKey
    • cloneValue

      protected Object cloneValue(Object value)
      Description copied from class: ItemCacheKey
      this method should clone a cached value object. it will be called during ItemCacheKey.getCopy() only if this ItemCacheKey object already holds a cached value object.
      Specified by:
      cloneValue in class ItemCacheKey
    • createUnmodifiableViewOfValue

      protected Object createUnmodifiableViewOfValue(Object value)
      Description copied from class: ItemCacheKey
      it's ok to return the result of getValue in this method; otherwise, the returned object has to reflect subsequent changes of the object returned by getValue
      Specified by:
      createUnmodifiableViewOfValue in class ItemCacheKey