| java.lang.Object javax.management.relation.RoleValidator
RoleValidator | class RoleValidator (Code) | | This is a helper class for performing role validation. It is used by
both the RelationSupport and RelationService classes.
It is package private and NOT part of the specification.
Revisions:
20020311 Adrian Brock:
- ValidateRole always failed
- Throws wrong exception when not writable
author: Adrian Brock. version: $Revision: 57200 $ |
Method Summary | |
public static int | checkRole(ObjectName relationService, MBeanServer server, String relationTypeName, Role role, boolean write) | public static RoleResult | checkRoles(ObjectName relationService, MBeanServer server, String relationTypeName, RoleList roleList, boolean write) Check the Roles for a relation Type. | public static void | validateRole(ObjectName relationService, MBeanServer server, String relationTypeName, Role role, boolean write) Validate a role for a relation Type. | public static void | validateRoles(ObjectName relationService, MBeanServer server, String relationTypeName, RoleList roleList, boolean write) Validate the Roles for a relation Type. |
checkRole | public static int checkRole(ObjectName relationService, MBeanServer server, String relationTypeName, Role role, boolean write) throws RelationTypeNotFoundException(Code) | | Check a role for a relation type
Parameters: relationService - the relation service object name Parameters: server - the MBeanServer of the relation service Parameters: relationTypeName - the relation to validate against Parameters: role - the role to validate Parameters: write - pass to true to check for a writable role zero for success or a RoleStatus value for failure exception: RelationTypeNotFoundException - when the relation typedoes not exist in the relation service |
checkRoles | public static RoleResult checkRoles(ObjectName relationService, MBeanServer server, String relationTypeName, RoleList roleList, boolean write) throws RelationTypeNotFoundException(Code) | | Check the Roles for a relation Type.
Parameters: relationService - the relation service object name Parameters: server - the MBeanServer of the relation service Parameters: relationTypeName - the relation to validate against Parameters: roleList - the roles to validate Parameters: write - pass to true to check for a writable role a RoleResult containing resolved and unresolved roles exception: RelationTypeNotFoundException - when the relation typedoes not exist in the relation service |
|
|