|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.ales.management.AbstractPolicy | +--com.bea.ales.management.AuthorizationPolicy
This class represents an authorization policy.
It is managed by PoliciesManager
. Changes to objects of
this class will be saved to store automatically.
Fields inherited from class com.bea.ales.management.AbstractPolicy |
builtinDecls |
Method Summary | |
void |
addAction(Action action)
Add an action to the authorization policy. |
void |
addActions(java.util.List actions)
Add actions to the policy. |
java.util.List |
getActions()
Get all actions of the policy. |
java.lang.String |
getDelegatorString()
|
java.lang.String |
getHtmlSourceOfActions()
|
void |
removeAction(Action action)
Remove an action from the authorization policy. |
void |
removeActions(java.util.List actions)
Remove all actions in the actions from the policy. |
void |
setActions(java.util.List actions)
Set actions of the authorization policy. |
java.lang.String |
toScopedString()
|
java.lang.String |
toString()
Convert the authorization policy to a string representation. |
static AuthorizationPolicy |
valueOf(PoliciesManager policiesManager,
java.lang.String ruleText)
Construct an authorization policy from a string representation. |
Methods inherited from class com.bea.ales.management.AbstractPolicy |
addResource,
addResources,
addSubject,
addSubjects,
getConstraint,
getDelegator,
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 |
public java.util.List getActions()
Action
.public void setActions(java.util.List actions) throws java.lang.IllegalArgumentException, ManagementException
actions
- list of actions as Action
.actions
is null or empty.public void addActions(java.util.List actions) throws java.lang.IllegalArgumentException, ManagementException
actions
- actions to be added as Action
.actions
is null or empty,
or its element type is not Action
.public void removeActions(java.util.List actions) throws java.lang.IllegalArgumentException, ManagementException
actions
from the policy.
actions
- actions to be removed as Action
.actions
is null or empty,
or its element type is not Action
.public void addAction(Action action) throws java.lang.IllegalArgumentException, ManagementException
action
- the action to be added.public void removeAction(Action action) throws java.lang.IllegalArgumentException, ManagementException
action
- the action to be removed.action
is null,
or the policy does not contain the action,
or it's the only action in the policy.public java.lang.String toString() throws java.lang.IllegalStateException
public java.lang.String toScopedString() throws java.lang.IllegalStateException
public static AuthorizationPolicy valueOf(PoliciesManager policiesManager, java.lang.String ruleText) throws ManagementException
policiesManager
- the policies manager.ruleText
- string representation of the policy.AuthorizatinPolicy
instance.public java.lang.String getDelegatorString()
public java.lang.String getHtmlSourceOfActions()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |