|
XCC/J 4.1-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.marklogic.xcc.ContentPermission
public class ContentPermission
An individual Content (document) permission, a capability/role pair. Instances of
ContentPermission are immutable and may be shared.
ContentCapability| Field Summary | |
|---|---|
static ContentCapability |
EXECUTE
Convenience reference to ContentCapability.EXECUTE |
static ContentCapability |
INSERT
Convenience reference to ContentCapability.INSERT |
static ContentCapability |
READ
Convenience reference to ContentCapability.READ |
static ContentCapability |
UPDATE
Convenience reference to ContentCapability.UPDATE |
| Constructor Summary | |
|---|---|
ContentPermission(ContentCapability capability,
String role)
Instantiate a new permission object with the given capability and role. |
|
| Method Summary | |
|---|---|
ContentCapability |
getCapability()
Get this permission's capability. |
String |
getRole()
Get the name of the role associated with this permission. |
static ContentPermission |
newExecutePermission(String role)
Convenience factory method to create a permission object with execute capability and the given role. |
static ContentPermission |
newInsertPermission(String role)
Convenience factory method to create a permission object with insert capability and the given role. |
static ContentPermission |
newReadPermission(String role)
Convenience factory method to create a permission object with read capability and the given role. |
static ContentPermission |
newUpdatePermission(String role)
Convenience factory method to create a permission object with update capability and the given role. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ContentCapability READ
ContentCapability.READ
public static final ContentCapability INSERT
ContentCapability.INSERT
public static final ContentCapability UPDATE
ContentCapability.UPDATE
public static final ContentCapability EXECUTE
ContentCapability.EXECUTE
| Constructor Detail |
|---|
public ContentPermission(ContentCapability capability,
String role)
capability - One of the capabilities defined in the typesafe enumeration class
ContentCapabilityrole - A Role name.| Method Detail |
|---|
public static ContentPermission newReadPermission(String role)
role - A Role name
public static ContentPermission newInsertPermission(String role)
role - A Role name
public static ContentPermission newUpdatePermission(String role)
role - A Role name
public static ContentPermission newExecutePermission(String role)
role - A Role name
public ContentCapability getCapability()
ContentCapability enumeration.public String getRole()
public String toString()
toString in class Object
|
XCC/J 4.1-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com