|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.iges.anagram.Setting | +--org.iges.anagram.Privilege
An extension of Setting which represents a set of privileges that can be associated with a given request.
Field Summary | |
protected java.util.SortedSet |
allowTags
|
protected java.util.SortedSet |
denyTags
|
protected java.lang.String |
name
|
protected Privilege |
parent
|
Fields inherited from class org.iges.anagram.Setting |
xml |
Constructor Summary | |
Privilege(java.lang.String name,
org.w3c.dom.Element xml)
Creates a privilege set with the given name, based on the XML tag provided. |
Method Summary | |
protected boolean |
allowIsMostRecent(java.lang.String path)
|
boolean |
allows(java.lang.String path)
Returns true if this privilege set permits access to the catalog path given. |
protected boolean |
checkForAllowedSubPath(java.lang.String path)
|
boolean |
everAllows(java.lang.String path)
Returns true if there is any possibility that the privilege set will permit access to a sub-path of the path given. |
protected java.lang.String |
getAllowMatch(java.lang.String path)
|
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Returns the value of the named attribute of this tag. |
protected java.lang.String |
getClosestMatch(java.lang.String parentMatch,
java.util.SortedSet pathSet,
java.lang.String path)
|
protected java.lang.String |
getDenyMatch(java.lang.String path)
|
java.lang.String |
getName()
Returns the name of this privilege set. |
long |
getNumAttribute(java.lang.String name,
long defaultValue)
Returns the numerical value of the named attribute of this tag. |
protected Privilege |
getParent()
|
protected java.util.SortedSet |
sortPathTags(java.lang.String tagName)
|
java.lang.String |
toString()
|
Methods inherited from class org.iges.anagram.Setting |
getAttribute, getSubSettings, getSubSettings, getUniqueSubSetting, getXML, uniqueElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.SortedSet allowTags
protected java.util.SortedSet denyTags
protected java.lang.String name
protected Privilege parent
Constructor Detail |
public Privilege(java.lang.String name, org.w3c.dom.Element xml)
Method Detail |
protected Privilege getParent()
public java.lang.String getName()
getName
in class Setting
public java.lang.String toString()
toString
in class Setting
public java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
Setting
getAttribute
in class Setting
defaultValue
- Returned if the tag has no such attribute.public long getNumAttribute(java.lang.String name, long defaultValue)
Setting
getNumAttribute
in class Setting
defaultValue
- Returned if the tag has no such attribute,
or the attribute's value is non-numeric.public boolean allows(java.lang.String path)
public boolean everAllows(java.lang.String path)
protected boolean checkForAllowedSubPath(java.lang.String path)
protected boolean allowIsMostRecent(java.lang.String path)
protected java.util.SortedSet sortPathTags(java.lang.String tagName)
protected java.lang.String getAllowMatch(java.lang.String path)
protected java.lang.String getDenyMatch(java.lang.String path)
protected java.lang.String getClosestMatch(java.lang.String parentMatch, java.util.SortedSet pathSet, java.lang.String path)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |