|
|||||||||
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.DomainPolicyNode
public class XMLPolicyParser.DomainPolicyNode
This class represents the object that can store many Subject or Target Domain specifications. As part of its operation it also constructs a collective domain of all Subjects or all Targets, so that it will be easy to determine whether an arbitrary entity is part of any domain declared in the policy.
Field Summary | |
---|---|
protected Subtree |
coverageDomain
|
protected java.util.Map |
domains
|
static java.lang.String |
NODE_NAME
This is the end of the name of a Policy XML node. |
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.DomainPolicyNode(java.lang.String prefix,
org.xml.sax.Attributes attrs)
This constructor builds a DomainPolicyNode given the prefix of nodes to look for ("Subject" or "Target") and the set of attributes. |
Method Summary | |
---|---|
void |
construct()
This method constructs a table of domains indexed by their ID and an aggregated domain that is a union of all domains. |
Subtree |
getCoverageDomain()
Returns the domain covering all domains declared in this policy. |
Subtree |
getDomain(java.lang.String id)
Returns the given domain; can be null, if no such domain has been specified. |
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 |
---|
public static final java.lang.String NODE_NAME
protected java.util.Map domains
protected Subtree coverageDomain
Constructor Detail |
---|
public XMLPolicyParser.DomainPolicyNode(java.lang.String prefix, org.xml.sax.Attributes attrs)
prefix
- - the prefix to use before "Policy"; meaningful values
are "Subject" and "Target"attrs
- - the attributes of the XML elementMethod Detail |
---|
public void construct()
construct
in class PolicyXMLNode
public Subtree getDomain(java.lang.String id)
id
- is the domain id
public Subtree getCoverageDomain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |