Class SetPermsRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.SetPermsRequest
- All Implemented Interfaces:
Serializable
Request to set permission bits
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
ID of the group for which to set the permissionprotected String
Permission bits and rolesSet of roles that should be set.protected boolean
Set permissions also to the subgroupsprotected boolean
Set permissions also to the subobjects -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
ID of the groupgetPerm()
Permission bits and rolesThe role IDs of roles that should be set when the request is completed.boolean
True to set permissions also to subgroups, false for only the given groupboolean
True to set permissions also for subobjects, false for only the given objectsetGroupId
(int groupId) Set the group IDSet the permission bits and rolessetRoleIds
(Set<Integer> roleIds) Set set of role IDs to be setsetSubGroups
(boolean subGroups) Set whether to set permissions on the subgroupssetSubObjects
(boolean subObjects) Set whether to set permissions for the subobjects
-
Field Details
-
perm
Permission bits and roles -
groupId
protected int groupIdID of the group for which to set the permission -
subGroups
protected boolean subGroupsSet permissions also to the subgroups -
subObjects
protected boolean subObjectsSet permissions also to the subobjects -
roleIds
Set of roles that should be set. If null, no changes are made.
-
-
Constructor Details
-
SetPermsRequest
public SetPermsRequest()Create an empty instance
-
-
Method Details
-
getPerm
Permission bits and roles- Returns:
- permission bits and roles
-
setPerm
Set the permission bits and roles- Parameters:
perm
- permission bits and roles- Returns:
- fluent API
-
getGroupId
public int getGroupId()ID of the group- Returns:
- ID of the group
-
setGroupId
Set the group ID- Parameters:
groupId
- group ID- Returns:
- fluent API
-
isSubGroups
public boolean isSubGroups()True to set permissions also to subgroups, false for only the given group- Returns:
- true for subgroups, false if not
-
setSubGroups
Set whether to set permissions on the subgroups- Parameters:
subGroups
- true for subgroups, false if not- Returns:
- fluent API
-
isSubObjects
public boolean isSubObjects()True to set permissions also for subobjects, false for only the given object- Returns:
- true for subobjects, false if not
-
setSubObjects
Set whether to set permissions for the subobjects- Parameters:
subObjects
- true for subobjects, false if not- Returns:
- fluent API
-
getRoleIds
The role IDs of roles that should be set when the request is completed. All roles not mentioned are removed. If not set, no changes to the roles will be performed.- Returns:
- the role ids
-
setRoleIds
Set set of role IDs to be set- Parameters:
roleIds
- Role-IDs to set or null if no change required- Returns:
- fluent API
-