|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.xmlpolicy.PolicyXMLNode issrg.pba.rbac.xmlpolicy.XMLPolicyParser.RoleSpecNode
public class XMLPolicyParser.RoleSpecNode
This class is the implementation of the RoleSpec XML node. It encapsulates one directed graph, which is a hierarchy of roles of the same type.
It knows the RoleType it represents and the OID of the Role it represents. It also knows all the roles that are defined in the SupRole nodes embedded.
Field Summary | |
---|---|
protected java.lang.String |
oid
|
protected java.util.Map |
roles
This is where the roles are mapped. |
protected java.lang.String |
type
The following two characterise this Role Hierarchy. |
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.RoleSpecNode(org.xml.sax.Attributes attrs)
This constructor builds a RoleSpecNode given a set of attributes of the XML element. |
Method Summary | |
---|---|
void |
construct()
This method creates the map of roles, derived from the collection of children of this node; it assumes all of them are RoleHierarchyNodes. |
java.lang.String |
getOID()
Apparently, this method returns the Role OID value. |
XMLPolicyParser.RoleHierarchyNode |
getRole(java.lang.String value)
This method returns a RoleHierarchy node of the needed Value. |
java.lang.String |
getType()
This method returns the RoleType value. |
Methods inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
addChild, addString, getAttributes, getChildren, getName, getString, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String type
protected java.lang.String oid
protected java.util.Map roles
Constructor Detail |
---|
public XMLPolicyParser.RoleSpecNode(org.xml.sax.Attributes attrs)
Method Detail |
---|
public void construct() throws PolicyParsingException
This method also triggers the hierarchy optimisation algorithm, which will detect loops in the role hierarchy and assign levels to the Role Hierarchy nodes so that in some cases it will be easy to tell if two roles are hierarchically related.
construct
in class PolicyXMLNode
PolicyParsingException,
- if a semantics error has been
encountered;
for example, two roles with the same ID have been defined
PolicyParsingException
- if any syntax or semantics error occurredpublic XMLPolicyParser.RoleHierarchyNode getRole(java.lang.String value)
value
- - the value of the role, as defined in the policy
public java.lang.String getType()
public java.lang.String getOID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |