public class SetPermsRequest extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
groupId
ID of the group for which to set the permission
|
protected String |
perm
Permission bits and roles
|
protected Set<Integer> |
roleIds
Set of roles that should be set.
|
protected boolean |
subGroups
Set permissions also to the subgroups
|
protected boolean |
subObjects
Set permissions also to the subobjects
|
Constructor and Description |
---|
SetPermsRequest()
Create an empty instance
|
Modifier and Type | Method and Description |
---|---|
int |
getGroupId()
ID of the group
|
String |
getPerm()
Permission bits and roles
|
Set<Integer> |
getRoleIds()
The role IDs of roles that should be set when the request is completed.
|
boolean |
isSubGroups()
True to set permissions also to subgroups, false for only the given group
|
boolean |
isSubObjects()
True to set permissions also for subobjects, false for only the given object
|
SetPermsRequest |
setGroupId(int groupId)
Set the group ID
|
SetPermsRequest |
setPerm(String perm)
Set the permission bits and roles
|
SetPermsRequest |
setRoleIds(Set<Integer> roleIds)
Set set of role IDs to be set
|
SetPermsRequest |
setSubGroups(boolean subGroups)
Set whether to set permissions on the subgroups
|
SetPermsRequest |
setSubObjects(boolean subObjects)
Set whether to set permissions for the subobjects
|
protected String perm
protected int groupId
protected boolean subGroups
protected boolean subObjects
public String getPerm()
public SetPermsRequest setPerm(String perm)
perm
- permission bits and rolespublic int getGroupId()
public SetPermsRequest setGroupId(int groupId)
groupId
- group IDpublic boolean isSubGroups()
public SetPermsRequest setSubGroups(boolean subGroups)
subGroups
- true for subgroups, false if notpublic boolean isSubObjects()
public SetPermsRequest setSubObjects(boolean subObjects)
subObjects
- true for subobjects, false if notpublic Set<Integer> getRoleIds()
public SetPermsRequest setRoleIds(Set<Integer> roleIds)
roleIds
- Role-IDs to set or null if no change requiredCopyright © 2024 Gentics Software. All rights reserved.