Interface AuthorizationQuery
- All Superinterfaces:
Query<AuthorizationQuery,Authorization>
- All Known Implementing Classes:
AuthorizationQueryImpl
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptiononly selects authorizations for the given idauthorizationType(Integer type) only selects authorizations for the given type.only selects authorizations for the given group idshasPermission(Permission permission) only selects authorizations which grant the permissions represented by the parameter.Order by resource id (needs to be followed byQuery.asc()orQuery.desc()).Order by resource type (needs to be followed byQuery.asc()orQuery.desc()).resourceId(String resourceId) only selects authorizations for the given resource idresourceType(int resourceType) only selects authorizations for the given resource typeresourceType(Resource resource) only selects authorizations for the given resource typeonly selects authorizations for the given user idsMethods inherited from interface org.operaton.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Method Details
-
authorizationId
only selects authorizations for the given id -
authorizationType
only selects authorizations for the given type. Legal values:Authorization.AUTH_TYPE_GLOBAL,Authorization.AUTH_TYPE_GRANTAuthorization.AUTH_TYPE_REVOKE -
userIdIn
only selects authorizations for the given user ids -
groupIdIn
only selects authorizations for the given group ids -
resourceType
only selects authorizations for the given resource type -
resourceType
only selects authorizations for the given resource type -
resourceId
only selects authorizations for the given resource id -
hasPermission
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()).
-