Interface AuthorizationQuery
-
- All Superinterfaces:
Query<AuthorizationQuery,Authorization>
- All Known Implementing Classes:
AuthorizationQueryImpl
public interface AuthorizationQuery extends Query<AuthorizationQuery,Authorization>
- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationQueryauthorizationId(String id)only selects authorizations for the given idAuthorizationQueryauthorizationType(Integer type)only selects authorizations for the given type.AuthorizationQuerygroupIdIn(String... groupIds)only selects authorizations for the given group idsAuthorizationQueryhasPermission(Permission permission)only selects authorizations which grant the permissions represented by the parameter.AuthorizationQueryorderByResourceId()Order by resource id (needs to be followed byQuery.asc()orQuery.desc()).AuthorizationQueryorderByResourceType()Order by resource type (needs to be followed byQuery.asc()orQuery.desc()).AuthorizationQueryresourceId(String resourceId)only selects authorizations for the given resource idAuthorizationQueryresourceType(int resourceType)only selects authorizations for the given resource typeAuthorizationQueryresourceType(Resource resource)only selects authorizations for the given resource typeAuthorizationQueryuserIdIn(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, unlimitedList
-
-
-
-
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_GRANTAuthorization.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.UPDATE) .hasPermission(Permissions.DELETE) .list();Selects all Authorization objects which provide READ,UPDATE,DELETE Permissions for the given user.
-
orderByResourceType
AuthorizationQuery orderByResourceType()
Order by resource type (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByResourceId
AuthorizationQuery orderByResourceId()
Order by resource id (needs to be followed byQuery.asc()orQuery.desc()).
-
-