com.gentics.contentnode.rest.resource
Interface PermResource

All Superinterfaces:
AuthenticatedResource

public interface PermResource
extends AuthenticatedResource

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)
 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

getPermissions

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)

Parameters:
objType - object type
objId - object id
nodeId - optional node id
checkType - optional type for which the check shall be done
languageId - optional language id
Returns:
permission bits response

getObjectPermission

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

Parameters:
perm - permission
objType - object type
objId - object id
nodeId - node id
Returns:
response containing the result

setPermissions

GenericResponse setPermissions(int objType,
                               int objId,
                               SetPermsRequest req)
Set the permissions on the identified object according to the posted request

Parameters:
objType - object type
objId - object id
req - request
Returns:
generic response


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.