Package dev.getelements.elements.sdk.dao
Interface UserUidDao
- All Known Implementing Classes:
MongoUserUidDao
public interface UserUidDao
This is the UserUidDao which is used to manage associated unique user ids. These will represent different
methods of authentication and associate them with a singular User object. All user id schemes that begin with
'dev.getelements' are reserved.
Created by keithhudnall on 1/29/25.
-
Field Summary
Fields -
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 idgetUserUid
(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
This will scrub all scheme ids for all UserUids referencing the user with the given id.
-
Field Details
-
SCHEME_NAME
- See Also:
-
SCHEME_EMAIL
- See Also:
-
SCHEME_PHONE_NUMBER
- See Also:
-
-
Method Details
-
getUserUids
Attempts to get a certain number of user uids- 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
Gets the user uid with the given name or id- Parameters:
id
- - the id associated with the schemescheme
- - the scheme name- Returns:
- the user uid object
-
findUserUid
Gets the user uid with the given name or id- Parameters:
id
- - the id associated with the schemescheme
- - the scheme name- Returns:
- the user uid object
-
createUserUidStrict
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
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
This will scrub all scheme ids for all UserUids referencing the user with the given id.- Parameters:
user
- - the id of the user to search for
-