|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AccessPolicy.java
AccessPolicy
represents the access policy that an
application's data tree has and it defines an interface for
allowing an application to get, set or change the access policy
that an element in its document has. The implementation must not
allow changing the policy for an element which does not belong to
the local application.
Created: Thu Jul 19 14:38:26 2001
Field Summary | |
static short |
DENY
No access at all to this element |
static short |
FULL
Full access: The host can read and write the data, and share it with other hosts (giving them any sort of access) |
static short |
READ
Only read access is allowed |
static short |
READ_SHARE
The given host can read the data and further share it with other hosts (giving them read access only) |
static short |
WRITE
Read and write access is allowed |
Method Summary | |
short |
getPolicy(org.w3c.dom.Element element,
java.lang.Object primaryID)
gets the policy for the given element and host |
boolean |
setPolicy(org.w3c.dom.Element element,
short access,
java.lang.Object hosts)
Sets a policy for the specific element |
java.lang.String |
toString()
Returns a String representation of the access policy for transfering over the network |
Field Detail |
public static final short DENY
public static final short READ
public static final short WRITE
public static final short READ_SHARE
public static final short FULL
Method Detail |
public boolean setPolicy(org.w3c.dom.Element element, short access, java.lang.Object hosts)
element
- the element for which the policy is setaccess
- The access that is given to this elementhosts
- the remote hosts for which this policy holds
TRUE
if the method succeeded (i.e. the
element is local) or FALSE
otherwisepublic short getPolicy(org.w3c.dom.Element element, java.lang.Object primaryID)
element
- The element for which the policy is requestedprimaryID
- The primaryID of the host for which the policy
requested is set
public java.lang.String toString()
toString
in class java.lang.Object
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |