Class GroupCacheKey
- java.lang.Object
-
- com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
-
- com.adobe.acs.commons.httpcache.config.impl.keys.GroupCacheKey
-
- All Implemented Interfaces:
CacheKey,Serializable
public class GroupCacheKey extends AbstractCacheKey implements CacheKey, Serializable
The GroupCacheKey CacheKey that differentiates on user group authentication.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
authenticationRequirement, customExpiryTime, expiryForAccessTime, expiryForUpdateTime, hierarchyResourcePath, resourcePath, uri
-
-
Constructor Summary
Constructors Constructor Description GroupCacheKey(String uri, HttpCacheConfig cacheConfig, List<String> userGroups)GroupCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig, List<String> userGroups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)The equals method used to match up request-derived cache keys with keys in the httpcache.inthashCode()The hashCode for the cache key.StringtoString()The useful string representation of this cache key.-
Methods inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
getAuthenticationRequirement, getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getResourcePath, getUri, isInvalidatedBy, makeHierarchyResourcePath, parentReadObject, parentWriteObject
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.httpcache.keys.CacheKey
getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getUri, isInvalidatedBy
-
-
-
-
Constructor Detail
-
GroupCacheKey
public GroupCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig, List<String> userGroups) throws HttpCacheKeyCreationException- Throws:
HttpCacheKeyCreationException
-
GroupCacheKey
public GroupCacheKey(String uri, HttpCacheConfig cacheConfig, List<String> userGroups) throws HttpCacheKeyCreationException
- Throws:
HttpCacheKeyCreationException
-
-
Method Detail
-
equals
public boolean equals(Object o)
Description copied from interface:CacheKeyThe equals method used to match up request-derived cache keys with keys in the httpcache.- Specified by:
equalsin interfaceCacheKey- Overrides:
equalsin classAbstractCacheKey- Parameters:
o- the object to evaluate this against.- Returns:
- true if the objects represent the same cache item, false otherwise.
-
hashCode
public int hashCode()
Description copied from interface:CacheKeyThe hashCode for the cache key.- Specified by:
hashCodein interfaceCacheKey- Overrides:
hashCodein classAbstractCacheKey- Returns:
- the hash code.
-
-