org.ikasan.framework.security
Class ModuleAdminVoter
java.lang.Object
org.ikasan.framework.security.ModuleAdminVoter
- All Implemented Interfaces:
- org.springframework.security.vote.AccessDecisionVoter
public class ModuleAdminVoter
- extends Object
- implements org.springframework.security.vote.AccessDecisionVoter
Votes if any ConfigAttribute.getAttribute() matches MODULE_ADMIN
If it is called to vote, this voter will only vote yes, if the user has
the admin role for the specified module.
Note that the moduleName must be the first argument to the called method
| Fields inherited from interface org.springframework.security.vote.AccessDecisionVoter |
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED |
|
Method Summary |
boolean |
supports(Class clazz)
|
boolean |
supports(org.springframework.security.ConfigAttribute attribute)
|
int |
vote(org.springframework.security.Authentication authentication,
Object object,
org.springframework.security.ConfigAttributeDefinition config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE_ADMIN_ATTRIBUTE
public static final String MODULE_ADMIN_ATTRIBUTE
- See Also:
- Constant Field Values
ModuleAdminVoter
public ModuleAdminVoter()
supports
public boolean supports(org.springframework.security.ConfigAttribute attribute)
- Specified by:
supports in interface org.springframework.security.vote.AccessDecisionVoter
supports
public boolean supports(Class clazz)
- Specified by:
supports in interface org.springframework.security.vote.AccessDecisionVoter
vote
public int vote(org.springframework.security.Authentication authentication,
Object object,
org.springframework.security.ConfigAttributeDefinition config)
- Specified by:
vote in interface org.springframework.security.vote.AccessDecisionVoter
Copyright © 2007-2011 Ikasan. All Rights Reserved.