com.metamatrix.admin.util
Class AdminMethodRoleResolver

java.lang.Object
  extended by com.metamatrix.admin.util.AdminMethodRoleResolver

public class AdminMethodRoleResolver
extends java.lang.Object

Allows access to required role(s) for admin methods.

Since:
4.3

Field Summary
static java.lang.String ANONYMOUS_ROLE
           
 
Constructor Summary
AdminMethodRoleResolver()
           
 
Method Summary
 java.lang.String getRoleNameForMethod(java.lang.String methodName)
          Determines the admin role required to call the given method.
 void init()
          Could hard-code as they are now - all over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANONYMOUS_ROLE

public static final java.lang.String ANONYMOUS_ROLE
See Also:
Constant Field Values
Constructor Detail

AdminMethodRoleResolver

public AdminMethodRoleResolver()
Since:
4.3
Method Detail

getRoleNameForMethod

public java.lang.String getRoleNameForMethod(java.lang.String methodName)
                                      throws AdminException
Determines the admin role required to call the given method.

Parameters:
methodName - the name of the method for which the required admin role is sought.
Returns:
The admin role required to call the admin method.
Throws:
AdminException
Since:
4.3

init

public void init()
          throws AdminException
Could hard-code as they are now - all over. Could look up in repos.

Throws:
AdminException
Since:
4.3


Copyright © 2009. All Rights Reserved.