public interface PermResource extends AuthenticatedResource
Modifier and Type | Method and Description |
---|---|
PermResponse |
getObjectPermission(Permission perm,
int objType,
int objId,
int nodeId)
Check whether the user has permission perm on the object defined by type and id
|
PermBitsResponse |
getPermissions(int objType,
int objId,
int nodeId,
int checkType,
int languageId)
Get the permission bits valid for the current user on the given object (and optionally for the given node)
|
GroupsPermBitsResponse |
list(int objType,
int objId)
List all groups with with their permission bits for the given object
This only lists groups that the current user actually
has permission to view (his own groups and their sub groups)
|
GenericResponse |
setPermissions(int objType,
int objId,
SetPermsRequest req)
Set the permissions on the identified object according to the posted request
|
setSessionId
PermBitsResponse getPermissions(int objType, int objId, int nodeId, int checkType, int languageId)
objType
- object typeobjId
- object idnodeId
- optional node idcheckType
- optional type for which the check shall be donelanguageId
- optional language idPermResponse getObjectPermission(Permission perm, int objType, int objId, int nodeId)
perm
- permissionobjType
- object typeobjId
- object idnodeId
- node idGenericResponse setPermissions(int objType, int objId, SetPermsRequest req)
objType
- object typeobjId
- object idreq
- requestGroupsPermBitsResponse list(int objType, int objId)
objType
- Type of the objectobjId
- ID of the objectCopyright © 2014 Gentics Software GmbH. All rights reserved.