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
-
Field Summary
Fields inherited from interface net.sf.acegisecurity.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the name space prefix resolverGet the node serviceGet the ownable serviceGet 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 servicevoidSet the name space prefix resolvervoidsetNodeService(NodeService nodeService) Set the node servicevoidsetOwnableService(OwnableService ownableService) Set the ownable servicevoidsetPermissionService(PermissionService permissionService) Set the permission servicebooleanThis 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)
-
Constructor Details
-
ACLEntryVoter
public ACLEntryVoter()Default constructor
-
-
Method Details
-
setPermissionService
Set the permission service- Parameters:
permissionService- PermissionService
-
getPermissionService
Get the permission service- Returns:
- the permission service
-
getNamespacePrefixResolver
Get the name space prefix resolver- Returns:
- the name space prefix resolver
-
setNamespacePrefixResolver
Set the name space prefix resolver- Parameters:
nspr- NamespacePrefixResolver
-
getNodeService
Get the node service- Returns:
- the node service
-
getOwnableService
Get the ownable service- Returns:
- the ownable service
-
setNodeService
Set the node service- Parameters:
nodeService- NodeService
-
setOwnableService
Set the ownable service- Parameters:
ownableService- OwnableService
-
setAuthenticationService
Set the authentication service- Parameters:
authenticationService- AuthenticationService
-
setAuthorityService
Set the authority service- Parameters:
authorityService- AuthorityService
-
setAbstainFor
Types and aspects for which we will abstain on voting if they are present. -
afterPropertiesSet
- 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
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
-