org.ikasan.framework.security
Class ModuleAdminVoter

java.lang.Object
  extended by 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


Field Summary
static String MODULE_ADMIN_ATTRIBUTE
           
 
Fields inherited from interface org.springframework.security.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
ModuleAdminVoter()
           
 
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
 

Field Detail

MODULE_ADMIN_ATTRIBUTE

public static final String MODULE_ADMIN_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

ModuleAdminVoter

public ModuleAdminVoter()
Method Detail

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.