|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PermResource
Resource for reading and writing permissions
Method Summary | |
---|---|
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 |
Methods inherited from interface com.gentics.contentnode.rest.resource.AuthenticatedResource |
---|
setSessionId |
Method Detail |
---|
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 id
PermResponse getObjectPermission(Permission perm, int objType, int objId, int nodeId)
perm
- permissionobjType
- object typeobjId
- object idnodeId
- node id
GenericResponse setPermissions(int objType, int objId, SetPermsRequest req)
objType
- object typeobjId
- object idreq
- request
GroupsPermBitsResponse list(int objType, int objId)
objType
- Type of the objectobjId
- ID of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |