Interface UserUidService

All Known Implementing Classes:
AnonUserUidService, UserUserUidService

public interface UserUidService
  • Method Details

    • getUserUids

      Pagination<UserUid> getUserUids(int offset, int count, String search)
      Attempts to get a certain number of user uids
      Parameters:
      offset - - the page offset
      count - - total results per page
      search - - search query - valid search properties are scheme, uid, and user id
      Returns:
      the user uid pagination object
    • getUserUid

      UserUid getUserUid(String id, String scheme)
      Gets the user uid with the given name or id
      Parameters:
      id - - the id associated with the scheme
      scheme - - the scheme name
      Returns:
      the user uid object
    • findUserUid

      default Optional<UserUid> findUserUid(String id, String scheme)
      Gets the user uid with the given name or id
      Parameters:
      id - - the id associated with the scheme
      scheme - - the scheme name
      Returns:
      the user uid object
    • createUserUidStrict

      UserUid createUserUidStrict(UserUid userUid)
      Attempts to create a new UserUid with the given userUid object. Using "Strict" semantics, if the user exists then this will throw an exception.
      Parameters:
      userUid - - the object to create in the db
      Returns:
      - the resultant userUid with any modifications made as a result of the creation
    • createOrUpdateUserUid

      UserUid createOrUpdateUserUid(UserUid userUid)
      Attempts to create or update a new UserUid with the given userUid object.
      Parameters:
      userUid - - the object to create or update in the db
      Returns:
      - the resultant userUid with any modifications made as a result of the creation or update
    • softDeleteUserUidsForUserId

      void softDeleteUserUidsForUserId(String userId)
      This will scrub all scheme ids for all UserUids referencing the user with the given id.
      Parameters:
      userId - - the id of the user to search for