|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.appRegistry.XMLAccessPolicy
XMLAccessPolicy.java AccessPolicy API. This is used to change the access rights to a Document. It dissallows changing access to elements that we do not know. Created: Thu Jul 26 13:16:37 2001
Field Summary |
Fields inherited from interface edu.UCL.xmiddle.framework.appRegistry.AccessPolicy |
DENY, FULL, READ, READ_SHARE, WRITE |
Constructor Summary | |
XMLAccessPolicy(org.w3c.dom.Document document,
java.lang.Object appID)
Creates a new XMLAccessPolicy instance. |
Method Summary | |
short |
getPolicy(org.w3c.dom.Element element,
java.lang.Object primaryID)
Returns the policy set for the given element and the given host |
static void |
setLinkTable(LinkTable links)
Gives a reference to the local LinkTable This is used to find out if an element is local or not |
boolean |
setPolicy(org.w3c.dom.Element element,
short policy,
java.lang.Object primaryID)
Sets the policy for the given element, for the given host. |
java.lang.String |
toString()
Returns the access policy data as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XMLAccessPolicy(org.w3c.dom.Document document, java.lang.Object appID)
XMLAccessPolicy
instance.
document
- The initial policy documentappID
- The id of the application that owns this policyMethod Detail |
public java.lang.String toString()
toString
in interface AccessPolicy
toString
in class java.lang.Object
public short getPolicy(org.w3c.dom.Element element, java.lang.Object primaryID)
getPolicy
in interface AccessPolicy
element
- The element for which we're searching the policyprimaryID
- The primary ID of the host for which the policy is requested. This is expected to be a string.
public boolean setPolicy(org.w3c.dom.Element element, short policy, java.lang.Object primaryID)
setPolicy
in interface AccessPolicy
element
- The element for which we wish to set a policypolicy
- The actual policyprimaryID
- The primaryID of the host for which we wish to set this policy. This is expected to be a String
public static void setLinkTable(LinkTable links)
LinkTable
This is used to find out if an element is local or not
links
- a LinkTable
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |