com.bea.ales.management
Class MembershipRule

java.lang.Object
  |
  +--com.bea.ales.management.AbstractPolicy
        |
        +--com.bea.ales.management.MembershipRule

public class MembershipRule
extends AbstractPolicy

This class represents a membership rule.


Fields inherited from class com.bea.ales.management.AbstractPolicy
builtinDecls
 
Method Summary
 void addRole(Role role)
          Adds the role to the membership rule.
 void addRoles(java.util.List roles)
          Add the list of roles to the membership rule.
 java.lang.String getHtmlSourceOfRoles()
           
 java.util.List getRoles()
          Get all roles of this membership rule.
 void removeRole(Role role)
          Remove the role from the membership rule.
 void removeRoles(java.util.List roles)
          Remove all specified roles in the list.
 void setRoles(java.util.List roles)
          Set the list of roles to the membership rule.
 java.lang.String toScopedString()
           
 
Methods inherited from class com.bea.ales.management.AbstractPolicy
addResource, addResources, addSubject, addSubjects, getConstraint, getDelegator, getDelegatorString, getDescription, getDisplayName, getEffect, getHtmlSourceOfResources, getHtmlSourceOfSubjects, getResources, getSubjects, removeResource, removeResources, removeSubject, removeSubjects, setConstraint, setDelegator, setDescription, setDisplayName, setEffect, setResources, setSubjects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRoles

public java.util.List getRoles()
Get all roles of this membership rule.

Returns:
list of roles as Role.

setRoles

public void setRoles(java.util.List roles)
              throws java.lang.IllegalArgumentException,
                     ManagementException
Set the list of roles to the membership rule.

Parameters:
roles - list of roles as com.bea.ales.management.RBAC_Role. It can not be null or empty list.
Throws:
java.lang.IllegalArgumentException - if roles is null, empty list or its element type is not Role.
ManagementException - if the operation fails.

addRoles

public void addRoles(java.util.List roles)
              throws java.lang.IllegalArgumentException,
                     ManagementException
Add the list of roles to the membership rule.

Parameters:
roles - list of roles as Role. It can not be null or empty.
Throws:
java.lang.IllegalArgumentException - if roles is null, empty list or its element type is not Role.
ManagementException - if the operation fails.

removeRoles

public void removeRoles(java.util.List roles)
                 throws java.lang.IllegalArgumentException,
                        ManagementException
Remove all specified roles in the list.

Parameters:
roles - list of roles as Role. It can not be null or empty.
Throws:
java.lang.IllegalArgumentException - if roles is null, empty list or its element type is not Role.
ManagementException - if the operation fails.

addRole

public void addRole(Role role)
             throws java.lang.IllegalArgumentException,
                    ManagementException
Adds the role to the membership rule.

Parameters:
role - the role to be added. It can not be null.
Throws:
java.lang.IllegalArgumentException - if role is null.
ManagementException - if operation fails.

removeRole

public void removeRole(Role role)
                throws java.lang.IllegalArgumentException,
                       ManagementException
Remove the role from the membership rule.

Parameters:
role - the role to be removed. It can not be the null.
Throws:
java.lang.IllegalArgumentException - if the role is null, the membership rule does not contain this role or the role is the only role in the membership rule.
ManagementException - if the operation fails.

toScopedString

public java.lang.String toScopedString()

Overrides:
toScopedString in class AbstractPolicy

getHtmlSourceOfRoles

public java.lang.String getHtmlSourceOfRoles()


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