|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjawiro.RoleChecker
public class RoleChecker
A simple constraint manager class. Such classes implement the
ConstraintStrategy interface and enforce the
domain-specific rules to prevent role binding anomalies.
| Constructor Summary | |
|---|---|
RoleChecker()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
addRuleForAddingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
Adds a rule for adding roles. |
void |
addRuleForResigningRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
Adds a rule for resigning roles. |
void |
addRuleForResumingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
Adds a rule for resuming roles. |
void |
addRuleForSuspendingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
Adds a rule for suspending roles. |
void |
allowUnlistedAdding(boolean allow)
Determines whether role adding operations uncovered by the available rules are allowed or not. |
void |
allowUnlistedResigning(boolean allow)
Determines whether role resigning operations uncovered by the available rules are allowed or not. |
void |
allowUnlistedResuming(boolean allow)
Determines whether role resuming operations uncovered by the available rules are allowed or not. |
void |
allowUnlistedRules(boolean allow)
Determines whether any kind of operation uncovered by the available rules are allowed or not. |
void |
allowUnlistedSuspending(boolean allow)
Determines whether role suspending operations uncovered by the available rules are allowed or not. |
boolean |
approveAddRole(java.lang.String parent,
java.lang.String child)
|
boolean |
approveResign(java.lang.String parent,
java.lang.String child)
|
boolean |
approveResume(java.lang.String parent,
java.lang.String child)
|
boolean |
approveSuspend(java.lang.String parent,
java.lang.String child)
|
void |
deleteRuleForAddingRoles(java.lang.String parent,
java.lang.String child)
Removes a rule for adding roles. |
void |
deleteRuleForResigningRoles(java.lang.String parent,
java.lang.String child)
Removes a rule for resigning roles. |
void |
deleteRuleForResumingRoles(java.lang.String parent,
java.lang.String child)
Removes a rule for resuming roles. |
void |
deleteRuleForSuspendingRoles(java.lang.String parent,
java.lang.String child)
Removes a rule for suspending roles. |
void |
setActor(jawiro.Actor anActor)
Obtain the root of the role hierarchy which is to be managed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoleChecker()
| Method Detail |
|---|
public void allowUnlistedRules(boolean allow)
allow - true if the operations are allowedpublic void allowUnlistedAdding(boolean allow)
allow - true if the operations are allowedpublic void allowUnlistedResigning(boolean allow)
allow - true if the operations are allowedpublic void allowUnlistedSuspending(boolean allow)
allow - true if the operations are allowedpublic void allowUnlistedResuming(boolean allow)
allow - true if the operations are allowed
public boolean approveAddRole(java.lang.String parent,
java.lang.String child)
approveAddRole in interface jawiro.ConstraintStrategyConstraintStrategy.approveAddRole(java.lang.String, java.lang.String)
public void addRuleForAddingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
parent - Type name of the object which will play the
role instance to be added.child - Type name of the role instance which is to be
played by an owner.allow -
public void deleteRuleForAddingRoles(java.lang.String parent,
java.lang.String child)
parent - Type name of the object which will play the
role instance to be added.child - Type name of the role instance which is to be
played by an owner.
public boolean approveResign(java.lang.String parent,
java.lang.String child)
approveResign in interface jawiro.ConstraintStrategyConstraintStrategy.approveResign(java.lang.String, java.lang.String)
public void addRuleForResigningRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
parent - Type name of the object which plays
the role to be resigned.child - Type name of the role instance which
is to be resigned.
public void deleteRuleForResigningRoles(java.lang.String parent,
java.lang.String child)
parent - Type name of the object which plays
the role to be resigned.child - Type name of the role instance which
is to be resigned.
public boolean approveSuspend(java.lang.String parent,
java.lang.String child)
approveSuspend in interface jawiro.ConstraintStrategyConstraintStrategy.approveSuspend(java.lang.String, java.lang.String)
public void addRuleForSuspendingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
parent - Type name of the object which plays
the role to be suspended.child - Type name of the role instance which
is to be suspended.
public void deleteRuleForSuspendingRoles(java.lang.String parent,
java.lang.String child)
parent - Type name of the object which plays
the role to be suspended.child - Type name of the role instance which
is to be suspended.
public boolean approveResume(java.lang.String parent,
java.lang.String child)
approveResume in interface jawiro.ConstraintStrategyConstraintStrategy.approveResume(java.lang.String, java.lang.String)
public void addRuleForResumingRoles(java.lang.String parent,
java.lang.String child,
boolean allow)
parent - Type name of the object which was playing
the role to be resumed.child - Type name of the role instance which
is to be resumed.
public void deleteRuleForResumingRoles(java.lang.String parent,
java.lang.String child)
parent - Type name of the object which was playing
the role to be resumed.child - Type name of the role instance which
is to be resumed.public void setActor(jawiro.Actor anActor)
setActor in interface jawiro.ConstraintStrategyanActor - The root of the hierarchy to be managed.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||