|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnbi.xmlsec.xacml.profile.rbac.RBACPolicyElement
Abstract base class for the RBACPolicyElements Assignment,
RoleAssignmentPolicyand
RoleAssignmentPolicySet.
| Field Summary | |
private Identifier |
identifier
Identifier of this element. |
private RBACTarget |
target
Target of this element. |
| Constructor Summary | |
protected |
RBACPolicyElement()
|
|
RBACPolicyElement(Identifier id)
Create an RBACPolicyElement. |
|
RBACPolicyElement(PolicyTreeElement element)
Create an RBACPolicyElement from its PolicyTreeElement representation. |
|
RBACPolicyElement(URI id)
Create an RBACPolicyElement. |
| Method Summary | |
abstract boolean |
add(RBACPolicyElement element)
Adds another policy element to this element. |
boolean |
equals(Object obj)
Compares the specified object with this assignment. |
Identifier |
getIdentifier()
Gets the identifier of this element. |
RBACTarget |
getTarget()
Gets the target of this element. |
int |
hashCode()
The hash code corresponds to the hash code of the assigment's identifier. |
abstract void |
parse(PolicyTreeElement element)
|
void |
parse(Target target)
Allows subclass specific parsing of the policy element's Targetto an RBACTarget. |
abstract boolean |
remove(RBACPolicyElement element)
Removes another policy element from this element. |
void |
setIdentifier(Identifier id)
Sets the identifier of this element. |
void |
setIdentifier(URI id)
Sets the identifier of this element. |
void |
setTarget(RBACTarget target)
Sets target of this element. |
abstract PolicyTreeElement |
toPolicyTreeElement()
Returns the PolicyTreeElement representation of this policy element.
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Identifier identifier
private RBACTarget target
| Constructor Detail |
protected RBACPolicyElement()
public RBACPolicyElement(URI id)
throws ParsingException
id - Identifier of this element (domain:assignment:label).
ParsingException - Indicates a malformed identifier representation.public RBACPolicyElement(Identifier id)
id - Identifier of this element (domain:assignment:label).
public RBACPolicyElement(PolicyTreeElement element)
throws ParsingException
element - The element's PolicyTreeElement representation.
ParsingException| Method Detail |
public abstract void parse(PolicyTreeElement element)
throws ParsingException
ParsingException
public void parse(Target target)
throws ParsingException
Targetto an RBACTarget. For that, it
must be overwritten by subclasses.
The default implementation simply parses the target using the RBACTarget.parse(Target) method. if the target is not null.
target - The target to parse.
ParsingException - Signals errors during the parsing process.public abstract PolicyTreeElement toPolicyTreeElement()
PolicyTreeElement representation of this policy element.
Should be one of RulePolicyPolicySet
PolicyTreeElement representation.public abstract boolean add(RBACPolicyElement element)
element - The element to add.
true if the element has been added succesfully,
false otherwise.public abstract boolean remove(RBACPolicyElement element)
element - The element to remove.
true if the element has been added succesfully,
false otherwise.
public void setIdentifier(URI id)
throws ParsingException
id - The element's identifier.
ParsingException - Indicates a malformed identifier representation.public void setIdentifier(Identifier id)
id - The element's identifier.public Identifier getIdentifier()
public RBACTarget getTarget()
public void setTarget(RBACTarget target)
target - The target to set.public int hashCode()
Object.hashCode()public boolean equals(Object obj)
obj - Object to be compared for equality with this element.
true if the specified Object is equal to this
element.public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||