com.gentics.contentnode.rest.model.request
Class SetPermsRequest

java.lang.Object
  extended by com.gentics.contentnode.rest.model.request.SetPermsRequest
All Implemented Interfaces:
Serializable

public class SetPermsRequest
extends Object
implements Serializable

Request to set permission bits

See Also:
Serialized Form

Field Summary
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 Summary
SetPermsRequest()
          Create an empty instance
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

perm

protected String perm
Permission bits and roles


groupId

protected int groupId
ID of the group for which to set the permission


subGroups

protected boolean subGroups
Set permissions also to the subgroups


subObjects

protected boolean subObjects
Set permissions also to the subobjects


roleIds

protected Set<Integer> roleIds
Set of roles that should be set. If null, no changes are made.

Constructor Detail

SetPermsRequest

public SetPermsRequest()
Create an empty instance

Method Detail

getPerm

public String getPerm()
Permission bits and roles

Returns:
permission bits and roles

setPerm

public void setPerm(String perm)
Set the permission bits and roles

Parameters:
perm - permission bits and roles

getGroupId

public int getGroupId()
ID of the group

Returns:
ID of the group

setGroupId

public void setGroupId(int groupId)
Set the group ID

Parameters:
groupId - group ID

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

public void setSubGroups(boolean subGroups)
Set whether to set permissions on the subgroups

Parameters:
subGroups - true for subgroups, false if not

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

public void setSubObjects(boolean subObjects)
Set whether to set permissions for the subobjects

Parameters:
subObjects - true for subobjects, false if not

getRoleIds

public Set<Integer> 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

public void setRoleIds(Set<Integer> roleIds)
Set set of role IDs to be set

Parameters:
roleIds - Role-IDs to set or null if no change required


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.