Class AccountManagerAccessDecisionVoter
- java.lang.Object
-
- org.duracloud.account.security.vote.BaseAccessDecisionVoter
-
- org.duracloud.account.security.vote.AccountManagerAccessDecisionVoter
-
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<org.aopalliance.intercept.MethodInvocation>
- Direct Known Subclasses:
RootAccountManagerAccessDecisionVoter
public class AccountManagerAccessDecisionVoter extends BaseAccessDecisionVoter
This class votes on calls to the AccountManagerService.- Author:
- Andrew Woods Date: 3/31/11
-
-
Constructor Summary
Constructors Constructor Description AccountManagerAccessDecisionVoter(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<?>getTargetService()This abstract method returns the class for which this voter has interest.protected intvoteImpl(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation, Collection<org.springframework.security.access.ConfigAttribute> attributes, Object[] methodArgs, org.duracloud.account.db.model.DuracloudUser user, SecuredRule securedRule, String role, SecuredRule.Scope scope)-
Methods inherited from class org.duracloud.account.security.vote.BaseAccessDecisionVoter
asString, castVote, getAllUserRightsForAcct, getCurrentUser, getRule, getUserRightsForAcct, getUserRoles, hasVote, numUsersForAccount, supports, supports, supportsTarget, vote, voteHasRole, voteMyUserId, voteMyUsername, voteRolesAreSufficientToUpdateOther, voteUserHasRoleOnAccount, voteUserHasRoleOnAcctToUpdateOthersRoles
-
-
-
-
Method Detail
-
getTargetService
protected Class<?> getTargetService()
Description copied from class:BaseAccessDecisionVoterThis abstract method returns the class for which this voter has interest.- Specified by:
getTargetServicein classBaseAccessDecisionVoter- Returns:
- class of target service interface
-
voteImpl
protected int voteImpl(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation, Collection<org.springframework.security.access.ConfigAttribute> attributes, Object[] methodArgs, org.duracloud.account.db.model.DuracloudUser user, SecuredRule securedRule, String role, SecuredRule.Scope scope)- Specified by:
voteImplin classBaseAccessDecisionVoter
-
-