|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.contentnode.rest.model.request.SetPermsRequest
public class SetPermsRequest
Request to set permission bits
Field Summary | |
---|---|
protected int |
groupId
ID of the group for which to set the permission |
protected java.lang.String |
perm
Permission bits and roles |
protected java.util.Set<java.lang.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 Summary | |
---|---|
SetPermsRequest()
Create an empty instance |
Method Summary | |
---|---|
int |
getGroupId()
ID of the group |
java.lang.String |
getPerm()
Permission bits and roles |
java.util.Set<java.lang.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(java.lang.String perm)
Set the permission bits and roles |
void |
setRoleIds(java.util.Set<java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String perm
protected int groupId
protected boolean subGroups
protected boolean subObjects
protected java.util.Set<java.lang.Integer> roleIds
Constructor Detail |
---|
public SetPermsRequest()
Method Detail |
---|
public java.lang.String getPerm()
public void setPerm(java.lang.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 java.util.Set<java.lang.Integer> getRoleIds()
public void setRoleIds(java.util.Set<java.lang.Integer> roleIds)
roleIds
- Role-IDs to set or null if no change required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |