|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.policies.UserAction issrg.pba.rbac.policies.UserActionTargetDomain
public class UserActionTargetDomain
Class representing a user action on a target represented as a domain.
Constructor Summary | |
---|---|
UserActionTargetDomain(java.lang.String actionName,
Subtree targetDomain)
Creates a UserActionTargetDomain given the action and
the target domain. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns a string representing the action name. |
java.lang.String |
getTarget()
Returns a string representing the target. |
boolean |
matches(java.lang.String action,
java.lang.String target)
Decides whether are not the given action and target match this object. |
Methods inherited from class issrg.pba.rbac.policies.UserAction |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserActionTargetDomain(java.lang.String actionName, Subtree targetDomain)
UserActionTargetDomain
given the action and
the target domain.
actionName
- the name of the actiontargetDomain
- the target domainMethod Detail |
---|
public java.lang.String getAction()
getAction
in class UserAction
public java.lang.String getTarget()
getTarget
in class UserAction
public boolean matches(java.lang.String action, java.lang.String target)
true
if the given action is equal
to the action stored in this object and when the given target is part
of the target domain stored in this object.
matches
in class UserAction
action
- a string representing the action nametarget
- a string representing the target
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |