Class MongoUserUidDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoUserUidDao
- All Implemented Interfaces:
UserUidDao
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.dao.UserUidDao
SCHEME_EMAIL, SCHEME_NAME, SCHEME_PHONE_NUMBER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateUserUid
(UserUid userUid) Attempts to create or update a new UserUid with the given userUid object.createUserUidStrict
(UserUid userUid) Attempts to create a new UserUid with the given userUid object.findUserUid
(String id, String scheme) Gets the user uid with the given name or iddev.morphia.Datastore
getUserUid
(String id, String scheme) Gets the user uid with the given name or idgetUserUids
(int offset, int count, String search) Attempts to get a certain number of user uidsvoid
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapperRegistry
(MapperRegistry dozerMapperRegistry) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setMongoUserDao
(MongoUserDao mongoUserDao) void
setValidationHelper
(ValidationHelper validationHelper) void
This will scrub all scheme ids for all UserUids referencing the user with the given id.
-
Constructor Details
-
MongoUserUidDao
public MongoUserUidDao()
-
-
Method Details
-
getUserUids
Description copied from interface:UserUidDao
Attempts to get a certain number of user uids- Specified by:
getUserUids
in interfaceUserUidDao
- Parameters:
offset
- - the page offsetcount
- - total results per pagesearch
- - search query - valid search properties are scheme, uid, and user id- Returns:
- the user uid pagination object
-
getUserUid
Description copied from interface:UserUidDao
Gets the user uid with the given name or id- Specified by:
getUserUid
in interfaceUserUidDao
- Parameters:
id
- - the id associated with the schemescheme
- - the scheme name- Returns:
- the user uid object
-
findUserUid
Description copied from interface:UserUidDao
Gets the user uid with the given name or id- Specified by:
findUserUid
in interfaceUserUidDao
- Parameters:
id
- - the id associated with the schemescheme
- - the scheme name- Returns:
- the user uid object
-
createUserUidStrict
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 interfaceUserUidDao
- Parameters:
userUid
- - the object to create in the db- Returns:
- - the resultant userUid with any modifications made as a result of the creation
-
createOrUpdateUserUid
Description copied from interface:UserUidDao
Attempts to create or update a new UserUid with the given userUid object.- Specified by:
createOrUpdateUserUid
in interfaceUserUidDao
- 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
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 interfaceUserUidDao
- 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
-
setValidationHelper
-
getMongoDBUtils
-
setMongoDBUtils
-
getDozerMapperRegistry
-
setDozerMapperRegistry
-
getMongoUserDao
-
setMongoUserDao
-