public class CMARole extends CMAResource
| Constructor and Description |
|---|
CMARole()
Creates a new role.
|
| Modifier and Type | Method and Description |
|---|---|
CMARole |
addPolicy(CMAPolicy policy)
Add a new policy to the existing ones, creating a new list if needed.
|
java.lang.String |
getDescription()
Description of this role, human readable.
|
java.lang.String |
getName()
What is the name of this role?
|
CMAPermissions |
getPermissions() |
java.util.List<CMAPolicy> |
getPolicies() |
CMARole |
setDescription(java.lang.String description)
Update or set the description of this role.
|
CMARole |
setId(java.lang.String id)
Sets the id of this space membership.
|
CMARole |
setName(java.lang.String name)
Update the name of the role.
|
CMARole |
setPermissions(CMAPermissions permissions)
Replace the currently set permissions with a new one.
|
void |
setPolicies(java.util.List<CMAPolicy> policies)
Update the complete list of policies.
|
CMARole |
setSpaceId(java.lang.String id)
Sets the id of this space memberships space.
|
CMARole |
setVersion(java.lang.Integer version)
Set the version of this space membership.
|
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, isArchived, isPublished, setEnvironmentId, setSystempublic java.lang.String getName()
public CMARole setName(java.lang.String name)
name - human readable string representing the name.public java.lang.String getDescription()
public CMARole setDescription(java.lang.String description)
description - a non null string representing the descriptionpublic java.util.List<CMAPolicy> getPolicies()
public void setPolicies(java.util.List<CMAPolicy> policies)
policies - the new policies to be used.public CMARole addPolicy(CMAPolicy policy)
policy - the policy to be added.public CMAPermissions getPermissions()
public CMARole setPermissions(CMAPermissions permissions)
permissions - new permissions to be setpublic CMARole setId(java.lang.String id)
setId in class CMAResourceid - to be set.public CMARole setVersion(java.lang.Integer version)
setVersion in class CMAResourceversion - the version to be set.public CMARole setSpaceId(java.lang.String id)
setSpaceId in class CMAResourceid - the id to be set.setId(String)public java.lang.String toString()
toString in class CMAResourceCopyright © 2019 Contentful, GmbH.. All Rights Reserved.