com.metamatrix.admin.api.server
Class AdminRoles

java.lang.Object
  extended by com.metamatrix.admin.api.server.AdminRoles

public class AdminRoles
extends java.lang.Object

Static class that lists the roles allowable in the MetaMatrix system.

This class can be used to get a list of all allowable administrative role names or the name of one role to assign to a principal.

Since:
4.3

Nested Class Summary
static class AdminRoles.RoleName
          Static class that defines defines the allowed administrative roles for the MetaMatrix system.
 
Constructor Summary
AdminRoles()
           
 
Method Summary
static boolean containsRole(java.lang.String roleName)
          Determine whether an admin role exists by the given roleName.
static java.util.Set getAllRoleNames()
          Get the set of static MetaMatrix administrative roles known to the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminRoles

public AdminRoles()
Method Detail

getAllRoleNames

public static java.util.Set getAllRoleNames()
Get the set of static MetaMatrix administrative roles known to the system.

Returns:
the Set of String role names.
Since:
4.3

containsRole

public static boolean containsRole(java.lang.String roleName)
Determine whether an admin role exists by the given roleName.

Parameters:
roleName - the name for which to validate.
Returns:
true iff an admin role exists with the given role name.
Since:
4.3


Copyright © 2009. All Rights Reserved.