public class CreateInProjectVoter
extends org.acegisecurity.vote.AclEntryVoter
If project level BambooPermission.CREATE
permission is granted to the current user, this voter will vote to
allow the operation. Otherwise, it will abstain from voting.
Global BambooPermission.CREATE
permission overrides project level BambooPermission.CREATE
, so to
correctly check permissions, make sure GlobalCreateVoter
is used subsequently.
Constructor and Description |
---|
CreateInProjectVoter(org.acegisecurity.acls.AclService aclService,
String processConfigAttribute) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getDomainObjectInstance(Object secureObject) |
int |
vote(org.acegisecurity.Authentication authentication,
Object object,
org.acegisecurity.ConfigAttributeDefinition config) |
getInternalMethod, getProcessConfigAttribute, setInternalMethod, setObjectIdentityRetrievalStrategy, setSidRetrievalStrategy, supports
public CreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute)
public int vote(org.acegisecurity.Authentication authentication, Object object, org.acegisecurity.ConfigAttributeDefinition config)
vote
in interface org.acegisecurity.vote.AccessDecisionVoter
vote
in class org.acegisecurity.vote.AclEntryVoter
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.