com.bea.ales.management
Class AdminRoleManager

java.lang.Object
  |
  +--com.bea.ales.management.AdminRoleManager

public class AdminRoleManager
extends java.lang.Object


Method Summary
 AdminRole create(java.lang.String name)
          Create admin role with the given name
 AdminRole getAdminRole(java.lang.String name)
          Get admin role with the given name
 AdminRole[] getAdminRoles(java.lang.String pattern)
          Get all admin role with the given pattern
 AdminRole getPrimaryAdminRole()
          Get primary Admin Role of current scope.
 void remove(AdminRole adminRole)
          Remove the admin role
 void remove(java.lang.String name)
          Remove admin role with the given name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public AdminRole create(java.lang.String name)
                 throws ManagementException
Create admin role with the given name

Parameters:
name - name of new admin role
Returns:
the admin role
Throws:
ManagementException - if the operation fails

remove

public void remove(java.lang.String name)
            throws ManagementException
Remove admin role with the given name

Parameters:
name - name of the admin role
Throws:
ManagementException - if the operation fails

remove

public void remove(AdminRole adminRole)
            throws ManagementException
Remove the admin role

Parameters:
adminRole - the admin role to be removed
Throws:
ManagementException - if the operation fails

getAdminRole

public AdminRole getAdminRole(java.lang.String name)
                       throws ManagementException
Get admin role with the given name

Parameters:
name - name of admin role
Returns:
the admin role
Throws:
ManagementException - if the operation fails

getAdminRoles

public AdminRole[] getAdminRoles(java.lang.String pattern)
                          throws ManagementException
Get all admin role with the given pattern

Parameters:
pattern - search pattern
Returns:
a list of admin role, null if no qualified admin role found
Throws:
ManagementException - if the operation fails

getPrimaryAdminRole

public AdminRole getPrimaryAdminRole()
                              throws ManagementException
Get primary Admin Role of current scope. A primary Admin Role is created by default when scope created, which could not be renamed or removed. Its rights could not be more than parent scope's primary Admin Role. Its rights could be modified only by user with parent scope's primary Admin Role. All other Admin Roles, called secondary Admin Role, could not have more rights than primary Admin Role of same Scope.

Returns:
 
Throws:
ManagementException -  


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.