Class AnonUserUidService

java.lang.Object
dev.getelements.elements.service.auth.AnonUserUidService
All Implemented Interfaces:
UserUidService

public class AnonUserUidService extends Object implements UserUidService
  • Constructor Details

    • AnonUserUidService

      public AnonUserUidService()
  • Method Details

    • getUserUids

      public Pagination<UserUid> getUserUids(int offset, int count, String search)
      Description copied from interface: UserUidService
      Attempts to get a certain number of user uids
      Specified by:
      getUserUids in interface UserUidService
      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

      public UserUid getUserUid(String id, String scheme)
      Description copied from interface: UserUidService
      Gets the user uid with the given name or id
      Specified by:
      getUserUid in interface UserUidService
      Parameters:
      id - - the id associated with the scheme
      scheme - - the scheme name
      Returns:
      the user uid object
    • findUserUid

      public Optional<UserUid> findUserUid(String id, String scheme)
      Description copied from interface: UserUidService
      Gets the user uid with the given name or id
      Specified by:
      findUserUid in interface UserUidService
      Parameters:
      id - - the id associated with the scheme
      scheme - - the scheme name
      Returns:
      the user uid object
    • createUserUidStrict

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

      public UserUid createOrUpdateUserUid(UserUid userUid)
      Description copied from interface: UserUidService
      Attempts to create or update a new UserUid with the given userUid object.
      Specified by:
      createOrUpdateUserUid in interface UserUidService
      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

      public void softDeleteUserUidsForUserId(String userId)
      Description copied from interface: UserUidService
      This will scrub all scheme ids for all UserUids referencing the user with the given id.
      Specified by:
      softDeleteUserUidsForUserId in interface UserUidService
      Parameters:
      userId - - the id of the user to search for