Class ACLEntryVoter
- java.lang.Object
-
- org.alfresco.repo.security.permissions.impl.acegi.ACLEntryVoter
-
- All Implemented Interfaces:
net.sf.acegisecurity.vote.AccessDecisionVoter,org.springframework.beans.factory.InitializingBean
public class ACLEntryVoter extends Object implements net.sf.acegisecurity.vote.AccessDecisionVoter, org.springframework.beans.factory.InitializingBean
- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description ACLEntryVoter()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()NamespacePrefixResolvergetNamespacePrefixResolver()Get the name space prefix resolverNodeServicegetNodeService()Get the node serviceOwnableServicegetOwnableService()Get the ownable servicePermissionServicegetPermissionService()Get the permission servicevoidsetAbstainFor(Set<String> abstainFor)Types and aspects for which we will abstain on voting if they are present.voidsetAuthenticationService(AuthenticationService authenticationService)Set the authentication servicevoidsetAuthorityService(AuthorityService authorityService)Set the authority servicevoidsetNamespacePrefixResolver(NamespacePrefixResolver nspr)Set the name space prefix resolvervoidsetNodeService(NodeService nodeService)Set the node servicevoidsetOwnableService(OwnableService ownableService)Set the ownable servicevoidsetPermissionService(PermissionService permissionService)Set the permission servicebooleansupports(Class clazz)This implementation supports onlyMethodSecurityInterceptor, because it queries the presentedMethodInvocation.booleansupports(net.sf.acegisecurity.ConfigAttribute attribute)intvote(net.sf.acegisecurity.Authentication authentication, Object object, net.sf.acegisecurity.ConfigAttributeDefinition config)
-
-
-
Method Detail
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
Set the permission service- Parameters:
permissionService- PermissionService
-
getPermissionService
public PermissionService getPermissionService()
Get the permission service- Returns:
- the permission service
-
getNamespacePrefixResolver
public NamespacePrefixResolver getNamespacePrefixResolver()
Get the name space prefix resolver- Returns:
- the name space prefix resolver
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(NamespacePrefixResolver nspr)
Set the name space prefix resolver- Parameters:
nspr- NamespacePrefixResolver
-
getNodeService
public NodeService getNodeService()
Get the node service- Returns:
- the node service
-
getOwnableService
public OwnableService getOwnableService()
Get the ownable service- Returns:
- the ownable service
-
setNodeService
public void setNodeService(NodeService nodeService)
Set the node service- Parameters:
nodeService- NodeService
-
setOwnableService
public void setOwnableService(OwnableService ownableService)
Set the ownable service- Parameters:
ownableService- OwnableService
-
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
Set the authentication service- Parameters:
authenticationService- AuthenticationService
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
Set the authority service- Parameters:
authorityService- AuthorityService
-
setAbstainFor
public void setAbstainFor(Set<String> abstainFor)
Types and aspects for which we will abstain on voting if they are present.
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
supports
public boolean supports(net.sf.acegisecurity.ConfigAttribute attribute)
- Specified by:
supportsin interfacenet.sf.acegisecurity.vote.AccessDecisionVoter
-
supports
public boolean supports(Class clazz)
This implementation supports onlyMethodSecurityInterceptor, because it queries the presentedMethodInvocation.- Specified by:
supportsin interfacenet.sf.acegisecurity.vote.AccessDecisionVoter- Parameters:
clazz- the secure object- Returns:
trueif the secure object isMethodInvocation,falseotherwise
-
vote
public int vote(net.sf.acegisecurity.Authentication authentication, Object object, net.sf.acegisecurity.ConfigAttributeDefinition config)- Specified by:
votein interfacenet.sf.acegisecurity.vote.AccessDecisionVoter
-
-