|
|||||||||
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.RoleHierarchyPolicyNode
public class XMLPolicyParser.RoleHierarchyPolicyNode
This is the class that represents the RoleHierarchyPolicy node. It knows all the types and OIDs of all Role hierarchies declared in the policy.
Field Summary | |
---|---|
protected java.util.Map |
byOID
This is a Map of Role hierarchies, indexed by their OID. |
protected java.util.Map |
byType
This is a Map of Role hierarchies, indexed by their type. |
protected java.util.Map |
typeOid
|
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.RoleHierarchyPolicyNode(org.xml.sax.Attributes attrs)
This is the only constructor, and it simply creates a PolicyXMLNode of this type. |
Method Summary | |
---|---|
void |
construct()
This method looks through its children and rearranges them into maps of role hierarchies by type and by OID. |
XMLPolicyParser.RoleSpecNode |
getByOID(java.lang.String roleOID)
This method returns a RoleSpecNode (a role hierarchy) of the given OID. |
XMLPolicyParser.RoleSpecNode |
getByType(java.lang.String roleType)
This method returns a RoleSpecNode (a role hierarchy) of the given type. |
RoleHierarchyNode |
getRole(java.lang.String type,
java.lang.String value)
This method returns a reference to a hierarchy node for the role of the given type and value. |
java.lang.String |
getTypeByOID(java.lang.String roleOID)
This method returns the role type defined for a specific OID. |
java.util.Map |
getTypeOid()
This method returns a Map of types into OIDs. |
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.util.Map byType
protected java.util.Map byOID
protected java.util.Map typeOid
Constructor Detail |
---|
public XMLPolicyParser.RoleHierarchyPolicyNode(org.xml.sax.Attributes attrs)
Method Detail |
---|
public void construct() throws PolicyParsingException
construct
in class PolicyXMLNode
PolicyParsingException
- if a semantic error is encountered
(for
example, two role hierarchies of the same type)public XMLPolicyParser.RoleSpecNode getByType(java.lang.String roleType)
roleType
- is the String name of the role type to return
public XMLPolicyParser.RoleSpecNode getByOID(java.lang.String roleOID)
roleOID
- is the dotted representation of the OID of the role
hierarchy to return
public java.lang.String getTypeByOID(java.lang.String roleOID)
getTypeByOID
in interface RoleHierarchyPolicy
roleOID
- - the OID in dotted form of the role type
public RoleHierarchyNode getRole(java.lang.String type, java.lang.String value)
getRole
in interface RoleHierarchyPolicy
type
- - the type of the role, as declared in the policyvalue
- - the value of the role, as declared in the policy
public java.util.Map getTypeOid()
getTypeOid
in interface RoleHierarchyPolicy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |