Class TypePermissionRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.TypePermissionRequest
- All Implemented Interfaces:
Serializable
Request to change permissions on a type
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Set permissions also to the subgroupsprotected boolean
Set permissions also to the subobjects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPerms()
List of permissions to changegetRoles()
List of role assignments to changeboolean
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 objectsetPerms
(List<TypePermissionItem> perms) Set permission listSet role listsetSubGroups
(boolean subGroups) Set whether to set permissions on the subgroupssetSubObjects
(boolean subObjects) Set whether to set permissions for the subobjects
-
Field Details
-
subGroups
protected boolean subGroupsSet permissions also to the subgroups -
subObjects
protected boolean subObjectsSet permissions also to the subobjects
-
-
Constructor Details
-
TypePermissionRequest
public TypePermissionRequest()
-
-
Method Details
-
getPerms
List of permissions to change- Returns:
- permission list
-
setPerms
Set permission list- Parameters:
perms
- list- Returns:
- fluent API
-
getRoles
List of role assignments to change- Returns:
- role list
-
setRoles
Set role list- Parameters:
roles
- list- 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
-