Class MongoUserUidDao

java.lang.Object
dev.getelements.elements.dao.mongo.MongoUserUidDao
All Implemented Interfaces:
UserUidDao

public class MongoUserUidDao extends Object implements UserUidDao
  • Constructor Details

    • MongoUserUidDao

      public MongoUserUidDao()
  • Method Details

    • getUserUids

      public Pagination<UserUid> getUserUids(int offset, int count, String search)
      Description copied from interface: UserUidDao
      Attempts to get a certain number of user uids
      Specified by:
      getUserUids in interface UserUidDao
      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: UserUidDao
      Gets the user uid with the given name or id
      Specified by:
      getUserUid in interface UserUidDao
      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: UserUidDao
      Gets the user uid with the given name or id
      Specified by:
      findUserUid in interface UserUidDao
      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: UserUidDao
      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 UserUidDao
      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: UserUidDao
      Attempts to create or update a new UserUid with the given userUid object.
      Specified by:
      createOrUpdateUserUid in interface UserUidDao
      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(User user)
      Description copied from interface: UserUidDao
      This will scrub all scheme ids for all UserUids referencing the user with the given id.
      Specified by:
      softDeleteUserUidsForUserId in interface UserUidDao
      Parameters:
      user - - the id of the user to search for
    • getDatastore

      public dev.morphia.Datastore getDatastore()
    • setDatastore

      @Inject public void setDatastore(dev.morphia.Datastore datastore)
    • getValidationHelper

      public ValidationHelper getValidationHelper()
    • setValidationHelper

      @Inject public void setValidationHelper(ValidationHelper validationHelper)
    • getMongoDBUtils

      public MongoDBUtils getMongoDBUtils()
    • setMongoDBUtils

      @Inject public void setMongoDBUtils(MongoDBUtils mongoDBUtils)
    • getDozerMapperRegistry

      public MapperRegistry getDozerMapperRegistry()
    • setDozerMapperRegistry

      @Inject public void setDozerMapperRegistry(MapperRegistry dozerMapperRegistry)
    • getMongoUserDao

      public MongoUserDao getMongoUserDao()
    • setMongoUserDao

      @Inject public void setMongoUserDao(MongoUserDao mongoUserDao)