public class CreateInProjectVoter extends AbstractBambooAclEntryVoter
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)
Copied and improved voting logic from the parent class.
|
getAclService, getInnerDomainObject, getObjectIdentityRetrievalStrategy, getRequirePermission, getSidRetrievalStrategy, setObjectIdentityRetrievalStrategy, setSidRetrievalStrategy, toString, vote
getInternalMethod, getProcessConfigAttribute, setInternalMethod, supports
public CreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute)
public int vote(org.acegisecurity.Authentication authentication, Object object, org.acegisecurity.ConfigAttributeDefinition config)
AbstractBambooAclEntryVoter
vote
in interface org.acegisecurity.vote.AccessDecisionVoter
vote
in class AbstractBambooAclEntryVoter
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.