com.bea.ales.management
Class AdminRoleMembershipRule

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

public class AdminRoleMembershipRule
extends java.lang.Object

This class represents an membership Rule for Admin Role. It is managed by AdminRole. Changes to objects of this class will be saved to store automatically.


Method Summary
 java.lang.String getConstraint()
          Get the constraint of the policy. if the policy has no constraint, null will be return.
 java.util.List getSubjects()
          Get all subjects of the policy.
 void setConstraint(java.lang.String constraint)
          Set the constrain to the policy.
 void setSubjects(java.util.List subjects)
          Set subjects of the policy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSubjects

public void setSubjects(java.util.List subjects)
                 throws java.lang.IllegalArgumentException,
                        ManagementException
Set subjects of the policy. All existing subjects will be removed.

Parameters:
subjects - list of subjects. The type of elements can be User or Group
Throws:
java.lang.IllegalArgumentException - if subjects is null or empty list or the element type is invalid.
ManagementException - if failed to set the new subjects.

setConstraint

public void setConstraint(java.lang.String constraint)
                   throws ManagementException
Set the constrain to the policy.

Parameters:
constraint - the constraint to be set. If it is null or empty string, the existing constraint will be removed.
Throws:
ManagementException - if failed to set the new effect.

getConstraint

public java.lang.String getConstraint()
Get the constraint of the policy. if the policy has no constraint, null will be return.

Returns:
the constraint of the policy.

getSubjects

public java.util.List getSubjects()
Get all subjects of the policy.

Returns:
list of subjects. The type of elements in the returned list can be User or Group


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