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 AuthorizationQuery
authorizationId(java.lang.String id)
only selects authorizations for the given idAuthorizationQuery
authorizationType(java.lang.Integer type)
only selects authorizations for the given type.AuthorizationQuery
groupIdIn(java.lang.String... groupIds)
only selects authorizations for the given group idsAuthorizationQuery
hasPermission(Permission permission)
only selects authorizations which grant the permissions represented by the parameter.AuthorizationQuery
orderByResourceId()
Order by resource id (needs to be followed byQuery.asc()
orQuery.desc()
).AuthorizationQuery
orderByResourceType()
Order by resource type (needs to be followed byQuery.asc()
orQuery.desc()
).AuthorizationQuery
resourceId(java.lang.String resourceId)
only selects authorizations for the given resource idAuthorizationQuery
resourceType(int resourceType)
only selects authorizations for the given resource typeAuthorizationQuery
resourceType(Resource resource)
only selects authorizations for the given resource typeAuthorizationQuery
userIdIn(java.lang.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(java.lang.String id)
only selects authorizations for the given id
-
authorizationType
AuthorizationQuery authorizationType(java.lang.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(java.lang.String... userIds)
only selects authorizations for the given user ids
-
groupIdIn
AuthorizationQuery groupIdIn(java.lang.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(java.lang.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()
).
-
-