public class CMAPolicy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOW |
static java.lang.String |
DENY |
Constructor and Description |
---|
CMAPolicy() |
Modifier and Type | Method and Description |
---|---|
CMAPolicy |
allow()
This policy describes action _allowed_ by the assigned role.
|
CMAPolicy |
archive()
Add archiving to the allowed actions.
|
CMAPolicy |
create()
Add creating to the allowed actions.
|
CMAPolicy |
delete()
Add deleting to the allowed actions.
|
CMAPolicy |
deny()
This policy should describe actions which are _denied_ by the assigned role.
|
java.lang.Object |
getActions()
This can method can return a string, 'all', a list of strings identifying the actions, or null.
|
CMAConstraint |
getConstraint() |
java.lang.String |
getEffect() |
CMAPolicy |
publish()
Add publishing to the allowed actions.
|
CMAPolicy |
read()
Add reading to the allowed actions.
|
CMAPolicy |
setActions(java.util.List<java.lang.String> actions)
Replace the current actions with new ones.
|
CMAPolicy |
setConstraint(CMAConstraint constraint)
Set the constraint to be used.
|
CMAPolicy |
setEffect(java.lang.String effect)
Set a general effect of this policy.
|
java.lang.String |
toString() |
CMAPolicy |
unarchive()
Add unarchiving to the allowed actions.
|
CMAPolicy |
unpublish()
Add unpublishing to the allowed actions.
|
CMAPolicy |
update()
Add updating to the allowed actions.
|
public static final java.lang.String ALLOW
public static final java.lang.String DENY
public CMAPolicy setEffect(java.lang.String effect)
public CMAConstraint getConstraint()
public CMAPolicy setConstraint(CMAConstraint constraint)
constraint
- to be set.public java.lang.Object getActions()
public CMAPolicy setActions(java.util.List<java.lang.String> actions)
actions
- the actions replacing the current ones.public CMAPolicy allow()
public CMAPolicy deny()
public CMAPolicy read()
public CMAPolicy create()
public CMAPolicy update()
public CMAPolicy delete()
public CMAPolicy publish()
public CMAPolicy unpublish()
public CMAPolicy archive()
public CMAPolicy unarchive()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.