Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management.relation
Class RoleValidator  view RoleValidator download RoleValidator.java

java.lang.Object
  extended byjavax.management.relation.RoleValidator

class RoleValidator
extends java.lang.Object

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:

Version:
$Revision: 1.3.6.1 $

Constructor Summary
(package private) RoleValidator()
           
 
Method Summary
static int checkRole(javax.management.ObjectName relationService, javax.management.MBeanServer server, java.lang.String relationTypeName, Role role, boolean write)
          Check a role for a relation type
static RoleResult checkRoles(javax.management.ObjectName relationService, javax.management.MBeanServer server, java.lang.String relationTypeName, RoleList roleList, boolean write)
          Check the Roles for a relation Type.
static void validateRole(javax.management.ObjectName relationService, javax.management.MBeanServer server, java.lang.String relationTypeName, Role role, boolean write)
          Validate a role for a relation Type.
static void validateRoles(javax.management.ObjectName relationService, javax.management.MBeanServer server, java.lang.String relationTypeName, RoleList roleList, boolean write)
          Validate the Roles for a relation Type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleValidator

RoleValidator()
Method Detail

checkRole

public static int checkRole(javax.management.ObjectName relationService,
                            javax.management.MBeanServer server,
                            java.lang.String relationTypeName,
                            Role role,
                            boolean write)
                     throws RelationTypeNotFoundException
Check a role for a relation type


checkRoles

public static RoleResult checkRoles(javax.management.ObjectName relationService,
                                    javax.management.MBeanServer server,
                                    java.lang.String relationTypeName,
                                    RoleList roleList,
                                    boolean write)
                             throws RelationTypeNotFoundException
Check the Roles for a relation Type.


validateRole

public static void validateRole(javax.management.ObjectName relationService,
                                javax.management.MBeanServer server,
                                java.lang.String relationTypeName,
                                Role role,
                                boolean write)
                         throws InvalidRoleValueException,
                                RelationTypeNotFoundException,
                                RoleNotFoundException
Validate a role for a relation Type.


validateRoles

public static void validateRoles(javax.management.ObjectName relationService,
                                 javax.management.MBeanServer server,
                                 java.lang.String relationTypeName,
                                 RoleList roleList,
                                 boolean write)
                          throws InvalidRoleValueException,
                                 RelationTypeNotFoundException,
                                 RoleNotFoundException
Validate the Roles for a relation Type.