Package com.contentful.java.cma.model
Class CMAPermissions
- java.lang.Object
-
- com.contentful.java.cma.model.CMAPermissions
-
public class CMAPermissions extends java.lang.ObjectWhat can the user change? The content structure? The content values? The space?
-
-
Constructor Summary
Constructors Constructor Description CMAPermissions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContentDelivery()java.lang.ObjectgetContentModel()Return what the user can do with the content model aka content type.java.lang.ObjectgetSettings()CMAPermissionssetContentDelivery(java.lang.Object contentDelivery)Set the permission of content delivery changes.CMAPermissionssetContentModel(java.lang.Object contentModel)Set the permission to change the content model.CMAPermissionssetSettings(java.lang.Object settings)Update the space settings changing ability of the current role.java.lang.StringtoString()
-
-
-
Method Detail
-
getContentModel
public java.lang.Object getContentModel()
Return what the user can do with the content model aka content type.- Returns:
- a string of 'all', null or an empty list if not set.
-
setContentModel
public CMAPermissions setContentModel(java.lang.Object contentModel)
Set the permission to change the content model.- Parameters:
contentModel- only a string of `"all"` or an array like `["manage"]` is allowed.- Returns:
- this instance for chaining.
-
getContentDelivery
public java.lang.Object getContentDelivery()
- Returns:
- a string of 'all' if this role is allowed to change the values of entries' fields.
-
setContentDelivery
public CMAPermissions setContentDelivery(java.lang.Object contentDelivery)
Set the permission of content delivery changes.- Parameters:
contentDelivery- of 'all' to affect all of the content delivery values.- Returns:
- this instance for chaining.
- See Also:
setContentModel(Object)
-
getSettings
public java.lang.Object getSettings()
- Returns:
- 'all' String if this role is allowed to change the space settings.
-
setSettings
public CMAPermissions setSettings(java.lang.Object settings)
Update the space settings changing ability of the current role.- Parameters:
settings- an object representing the permissions of changing the settings.- Returns:
- this instance for chaining.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a human readable string, representing the object.
-
-