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
The GroupCacheKey
CacheKey that differentiates on user group authentication.
- See Also:
-
Field Summary
Fields inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
authenticationRequirement, customExpiryTime, expiryForAccessTime, expiryForUpdateTime, hierarchyResourcePath, resourcePath, uri -
Constructor Summary
ConstructorsConstructorDescriptionGroupCacheKey(String uri, HttpCacheConfig cacheConfig, List<String> userGroups) GroupCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig, List<String> userGroups) -
Method Summary
Methods inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
getAuthenticationRequirement, getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getResourcePath, getUri, isInvalidatedBy, makeHierarchyResourcePath, parentReadObject, parentWriteObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.adobe.acs.commons.httpcache.keys.CacheKey
getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getUri, isInvalidatedBy
-
Constructor Details
-
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 Details
-
equals
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.
-
toString
Description copied from interface:CacheKeyThe useful string representation of this cache key. This should be generally unique as it drives display in the mbean.
-