public interface AuthorizationQuery extends Query<AuthorizationQuery,Authorization>
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
AuthorizationQuery authorizationId(String id)
AuthorizationQuery authorizationType(Integer type)
Authorization.AUTH_TYPE_GLOBAL, Authorization.AUTH_TYPE_GRANT
 Authorization.AUTH_TYPE_REVOKEAuthorizationQuery userIdIn(String... userIds)
AuthorizationQuery groupIdIn(String... groupIds)
AuthorizationQuery resourceType(Resource resource)
AuthorizationQuery resourceType(int resourceType)
AuthorizationQuery resourceId(String resourceId)
AuthorizationQuery hasPermission(Permission permission)
 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.AuthorizationQuery orderByResourceType()
Query.asc() or Query.desc()).AuthorizationQuery orderByResourceId()
Query.asc() or Query.desc()).Copyright © 2017. All rights reserved.