public class AclCacheKeyPartGenerator extends Object implements CacheKeyPartGenerator, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ACLS_PATH_PATTERN |
static Pattern |
DEP_ACLS_PATTERN |
static String |
GROUPS_SIGNATURE |
static String |
LOGGED_USER |
static String |
MR_ACL |
static Pattern |
P_PATTERN |
static String |
PER_USER |
static String |
PER_USER_MR_ACL |
| Constructor and Description |
|---|
AclCacheKeyPartGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
void |
flushPermissionCacheEntry(String path,
boolean propagateToOtherClusterNodes) |
void |
flushUsersGroupsKey() |
void |
flushUsersGroupsKey(boolean propageToOtherClusterNodes) |
void |
flushUsersGroupsKey(String key,
boolean propagateToOtherClusterNodes) |
void |
flushUsersGroupsKeys(Collection<String> keys,
Collection<String> keysRelevantForGroupSignature,
boolean propagateToOtherClusterNodes) |
Set<String> |
getAllPrincipalsWithAcl() |
String |
getKey() |
String |
getValue(Resource resource,
RenderContext renderContext,
Properties properties)
Get value of this given key part.
|
boolean |
isRelevantForAllPrincipalsCacheEntry(String path)
Checks if the specified path is relevant for the calculation of the all principals with ACLs cache entry, based on configured
groupsSignatureAclPathsToQuery value. |
String |
replacePlaceholders(RenderContext renderContext,
String keyPart)
Replace placeholders in the keyPart to construct the final key used to store the fragment in the cache.
|
void |
setCacheProvider(EhCacheProvider cacheProvider) |
void |
setGroupManagerService(JahiaGroupManagerService groupManagerService) |
void |
setGroupsSignatureAclPathsToQuery(String paths) |
void |
setTemplate(JCRTemplate template) |
void |
setUseGroupsSignature(boolean useGroupsSignature) |
void |
setUsePerUser(boolean usePerUser) |
public static final String PER_USER
public static final String MR_ACL
public static final String PER_USER_MR_ACL
public static final String LOGGED_USER
public static final String GROUPS_SIGNATURE
public static final Pattern P_PATTERN
public static final Pattern DEP_ACLS_PATTERN
public static final Pattern ACLS_PATH_PATTERN
public void setGroupManagerService(JahiaGroupManagerService groupManagerService)
public void setCacheProvider(EhCacheProvider cacheProvider)
public void setTemplate(JCRTemplate template)
public void setUsePerUser(boolean usePerUser)
public void setUseGroupsSignature(boolean useGroupsSignature)
public void afterPropertiesSet()
throws Exception
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.public String getKey()
getKey in interface CacheKeyPartGeneratorpublic String getValue(Resource resource, RenderContext renderContext, Properties properties)
CacheKeyPartGeneratorgetValue in interface CacheKeyPartGeneratorresource - the current rendered resourcerenderContext - the current renderContextproperties - the current fragment propertiespublic String replacePlaceholders(RenderContext renderContext, String keyPart)
CacheKeyPartGeneratorreplacePlaceholders in interface CacheKeyPartGeneratorrenderContext - the current render contextkeyPart - the key part, a value returned by the getValue(...) functionpublic Set<String> getAllPrincipalsWithAcl() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isRelevantForAllPrincipalsCacheEntry(String path)
groupsSignatureAclPathsToQuery value.path - the node path to checktrue if the path is relevant for the calculation of the all principals with ACLs cache entry; false
otherwise.public void flushUsersGroupsKey()
public void flushUsersGroupsKey(boolean propageToOtherClusterNodes)
public void flushUsersGroupsKey(String key, boolean propagateToOtherClusterNodes)
public void flushUsersGroupsKeys(Collection<String> keys, Collection<String> keysRelevantForGroupSignature, boolean propagateToOtherClusterNodes)
public void flushPermissionCacheEntry(String path, boolean propagateToOtherClusterNodes)
public void setGroupsSignatureAclPathsToQuery(String paths)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.