public static class Rights
extends java.lang.Object
A right is represented by the Rights.Right
inner class.
A set of standard rights are predefined (see RFC 2086). Most folder implementations are expected to support these rights. Some implementations may also support site-defined rights.
The following code sample illustrates how to examine your rights for a folder.
Rights rights = folder.myRights();
// Check if I can write this folder
if (rights.contains(Rights.Right.WRITE))
System.out.println("Can write folder");
// Now give Joe all my rights, except the ability to write the folder
rights.remove(Rights.Right.WRITE);
ACL acl = new ACL("joe", rights);
folder.setACL(acl);