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
|
void |
setGroupId(int groupId)
Set the group ID
|
void |
setPerm(String perm)
Set the permission bits and roles
|
void |
setRoleIds(Set<Integer> roleIds)
Set set of role IDs to be set
|
void |
setSubGroups(boolean subGroups)
Set whether to set permissions on the subgroups
|
void |
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 void setPerm(String perm)
perm
- permission bits and rolespublic int getGroupId()
public void setGroupId(int groupId)
groupId
- group IDpublic boolean isSubGroups()
public void setSubGroups(boolean subGroups)
subGroups
- true for subgroups, false if notpublic boolean isSubObjects()
public void setSubObjects(boolean subObjects)
subObjects
- true for subobjects, false if notpublic Set<Integer> getRoleIds()
Copyright © 2015 Gentics Software. All rights reserved.