Interface CachedUserGroupResolver


@Internal public interface CachedUserGroupResolver
Allows lookups on users/groups stored in the database. Note that not all users/groups are necessarily stored in the database, the exact semantic depends on the directory implementation
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<Long,com.atlassian.crowd.model.group.Group>
    Bulk find groups with the specified database identifiers.
    Map<Long,com.atlassian.crowd.model.user.User>
    Bulk find users with the specified database identifiers.
  • Method Details

    • findUsersByIds

      Map<Long,com.atlassian.crowd.model.user.User> findUsersByIds(Collection<Long> userIds)
      Bulk find users with the specified database identifiers. The result collection may be smaller than the input if ids that did not match with any users were supplied
      Parameters:
      userIds - identifiers of users that will be found
      Returns:
      the matching users
    • findGroupsByIds

      Map<Long,com.atlassian.crowd.model.group.Group> findGroupsByIds(Collection<Long> groupIds)
      Bulk find groups with the specified database identifiers. The result collection may be smaller than the input if ids that did not match with any users were supplied
      Parameters:
      groupIds - identifiers of groups that will be found
      Returns:
      the matching groups