org.kie.api.task

## Interface UserGroupCallback

-     public interface UserGroupCallback

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `existsGroup(String groupId)` Resolves existence of group id.
    `boolean` | `existsUser(String userId)` Resolves existence of user id.
    `List<String>` | `getGroupsForUser(String userId, List<String> groupIds, List<String> allExistingGroupIds)` Returns list of group ids for specified user id.

- - ### Method Detail

    - #### existsUser

          boolean existsUser(String userId)

      Resolves existence of user id.
      Parameters:
        `userId` - the user id assigned to the task
      Returns:
        true if userId exists, false otherwise.

    - #### existsGroup

          boolean existsGroup(String groupId)

      Resolves existence of group id.
      Parameters:
        `groupId` - the group id assigned to the task
      Returns:
        true if groupId exists, false otherwise.

    - #### getGroupsForUser

          List<String> getGroupsForUser(String userId,
                                        List<String> groupIds,
                                        List<String> allExistingGroupIds)

      Returns list of group ids for specified user id.
      Parameters:
        `userId` - the user id assigned to the task
        `groupIds` - list of group ids assigned to the task
        `allExistingGroupIds` - list of all currently known group ids
      Returns:
        List of group ids.

Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.