org.camunda.bpm.engine.authorization
Interface AuthorizationQuery

All Superinterfaces:
Query<AuthorizationQuery,Authorization>
All Known Implementing Classes:
AuthorizationQueryImpl

public interface AuthorizationQuery
extends Query<AuthorizationQuery,Authorization>

Author:
Daniel Meyer

Method Summary
 AuthorizationQuery authorizationId(String id)
          only selects authorizations for the given id
 AuthorizationQuery authorizationType(Integer type)
          only selects authorizations for the given type.
 AuthorizationQuery groupIdIn(String... groupIds)
          only selects authorizations for the given group ids
 AuthorizationQuery hasPermission(Permission permission)
          only selects authorizations which grant the permissions represented by the parameter.
 AuthorizationQuery orderByResourceId()
          Order by resource id (needs to be followed by Query.asc() or Query.desc()).
 AuthorizationQuery orderByResourceType()
          Order by resource type (needs to be followed by Query.asc() or Query.desc()).
 AuthorizationQuery resourceId(String resourceId)
          only selects authorizations for the given resource id
 AuthorizationQuery resourceType(int resourceType)
          only selects authorizations for the given resource type
 AuthorizationQuery resourceType(Resource resource)
          only selects authorizations for the given resource type
 AuthorizationQuery userIdIn(String... userIds)
          only selects authorizations for the given user ids
 
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Method Detail

authorizationId

AuthorizationQuery authorizationId(String id)
only selects authorizations for the given id


authorizationType

AuthorizationQuery authorizationType(Integer type)
only selects authorizations for the given type. Legal values: Authorization.AUTH_TYPE_GLOBAL, Authorization.AUTH_TYPE_GRANT Authorization.AUTH_TYPE_REVOKE


userIdIn

AuthorizationQuery userIdIn(String... userIds)
only selects authorizations for the given user ids


groupIdIn

AuthorizationQuery groupIdIn(String... groupIds)
only selects authorizations for the given group ids


resourceType

AuthorizationQuery resourceType(Resource resource)
only selects authorizations for the given resource type


resourceType

AuthorizationQuery resourceType(int resourceType)
only selects authorizations for the given resource type


resourceId

AuthorizationQuery resourceId(String resourceId)
only selects authorizations for the given resource id


hasPermission

AuthorizationQuery hasPermission(Permission permission)
only selects authorizations which grant the permissions represented by the parameter. If this method is called multiple times, all passed-in permissions will be checked with AND semantics. Example:
 authorizationQuery.userId("user1")
   .resourceType("processDefinition")
   .resourceId("2313")
   .hasPermission(Permissions.READ)
   .hasPermission(Permissions.WRITE)
   .hasPermission(Permissions.DELETE)
   .list();
 
Selects all Authorization objects which provide READ,WRITE,DELETE Permissions for the given user.


orderByResourceType

AuthorizationQuery orderByResourceType()
Order by resource type (needs to be followed by Query.asc() or Query.desc()).


orderByResourceId

AuthorizationQuery orderByResourceId()
Order by resource id (needs to be followed by Query.asc() or Query.desc()).



Copyright © 2017 camunda services GmbH. All rights reserved.