public class ACLEntryVoter extends Object implements net.sf.acegisecurity.vote.AccessDecisionVoter, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
ACLEntryVoter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.alfresco.service.namespace.NamespacePrefixResolver |
getNamespacePrefixResolver()
Get the name space prefix resolver
|
org.alfresco.service.cmr.repository.NodeService |
getNodeService()
Get the node service
|
OwnableService |
getOwnableService()
Get the ownable service
|
org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
Get the permission service
|
void |
setAbstainFor(Set<String> abstainFor)
Types and aspects for which we will abstain on voting if they are present.
|
void |
setAuthenticationService(AuthenticationService authenticationService)
Set the authentication service
|
void |
setAuthorityService(AuthorityService authorityService)
Set the authority service
|
void |
setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver nspr)
Set the name space prefix resolver
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setOwnableService(OwnableService ownableService)
Set the ownable service
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Set the permission service
|
boolean |
supports(Class clazz)
This implementation supports only
MethodSecurityInterceptor , because it queries the presented MethodInvocation . |
boolean |
supports(net.sf.acegisecurity.ConfigAttribute attribute) |
int |
vote(net.sf.acegisecurity.Authentication authentication,
Object object,
net.sf.acegisecurity.ConfigAttributeDefinition config) |
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- PermissionServicepublic org.alfresco.service.cmr.security.PermissionService getPermissionService()
public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver nspr)
nspr
- NamespacePrefixResolverpublic org.alfresco.service.cmr.repository.NodeService getNodeService()
public OwnableService getOwnableService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- NodeServicepublic void setOwnableService(OwnableService ownableService)
ownableService
- OwnableServicepublic void setAuthenticationService(AuthenticationService authenticationService)
authenticationService
- AuthenticationServicepublic void setAuthorityService(AuthorityService authorityService)
authorityService
- AuthorityServicepublic void setAbstainFor(Set<String> abstainFor)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean supports(net.sf.acegisecurity.ConfigAttribute attribute)
supports
in interface net.sf.acegisecurity.vote.AccessDecisionVoter
public boolean supports(Class clazz)
MethodSecurityInterceptor
, because it queries the presented MethodInvocation
.supports
in interface net.sf.acegisecurity.vote.AccessDecisionVoter
clazz
- the secure objecttrue
if the secure object is MethodInvocation
, false
otherwisepublic int vote(net.sf.acegisecurity.Authentication authentication, Object object, net.sf.acegisecurity.ConfigAttributeDefinition config)
vote
in interface net.sf.acegisecurity.vote.AccessDecisionVoter
Copyright © 2005–2017 Alfresco Software. All rights reserved.