Interface AuthorizationQuery

    • Method Detail

      • authorizationId

        AuthorizationQuery authorizationId​(java.lang.String id)
        only selects authorizations for the given id
      • 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​(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.