|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.NamedResource.MetadataFacet
public abstract static class NamedResource.MetadataFacet
The metadata facet of a named resource. Allows access to and manipulation of various aspects of a resource's metadata, including its permissions and various timestamps. NOTE: The permissions part of the interface is at a bare minimum right now, until I gather more use cases and flesh it out.
Method Summary | |
---|---|
void |
changePermissions(String instructions)
Change the permissions of the underlying resource. |
abstract Date |
creationDate()
Return the time at which this resource was originally created. |
String |
group()
Return the group who has privileged access to this resource for purposes of permission management. |
void |
group(String group)
Set the group that will have privileged access to this resource for purposes of permission management. |
boolean |
hasPermission(char who,
char what)
Return whether the given subject has the given permission. |
String |
owner()
Return the user who owns this resource for purposes of permission management. |
void |
owner(String owner)
Set the owner of this resource for purposes of permission management. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public abstract Date creationDate()
public String owner()
public void owner(String owner)
owner
- the new owner of this resourcepublic String group()
public void group(String group)
group
- the new owning group of this resourcepublic boolean hasPermission(char who, char what)
who
- the subject to check for permissionwhat
- the access right to check for
true
if the given subject has the given permission, false
otherwisepublic void changePermissions(String instructions)
hasPermission(char, char)
, except that
the 'a' subject cannot be mixed with any of the other ones. If multiple subjects or permissions are
listed, they must be listed in the canonical order shown. The operation signs are:
instructions
- an instruction string encoding the desired changes to the permissionspublic String toString()
toString
in class Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |