Interface IdAClientUsersType
- All Known Subinterfaces:
IdAClientProtocolHandlerType,IdAClientType
- All Known Implementing Classes:
IdAClient,IdAClientProtocolHandler1,IdAClientProtocolHandlerAbstract,IdAClientProtocolHandlerDisconnected
public interface IdAClientUsersType
Commands related to users.
-
Method Summary
Modifier and TypeMethodDescriptionvoiduserBanCreate(IdBan ban) Create a ban on the given user account.voiduserBanDelete(IdBan ban) Delete the given ban.userBanGet(UUID id) Get the ban for the given user, if one exists.default IdUseruserCreate(IdUserCreate create) Create a user.userCreate(Optional<UUID> id, IdName idName, IdRealName realName, IdEmail email, IdPassword password) Create a user.voiduserDelete(UUID id) Delete the given user.userEmailAdd(UUID id, IdEmail email) Add an email to the given user.userEmailRemove(UUID id, IdEmail email) Remove an email from the given user.Fetch the given user.userGetByEmail(IdEmail email) Fetch the given user.userLoginHistory(UUID id) List the login history for the given user.userSearchBegin(IdUserSearchParameters parameters) Start searching/listing users.userSearchByEmailBegin(IdUserSearchByEmailParameters parameters) Start searching/listing users.Continue searching/listing users.Continue searching/listing users.Continue searching/listing users.Continue searching/listing users.userUpdate(UUID user, Optional<IdName> idName, Optional<IdRealName> realName, Optional<IdPassword> password) Update the given user.
-
Method Details
-
userSearchBegin
IdPage<IdUserSummary> userSearchBegin(IdUserSearchParameters parameters) throws IdAClientException, InterruptedException Start searching/listing users. Calling this method will set the search parameters and effectively reset searching back to page 1 of any results.- Parameters:
parameters- The search parameters- Returns:
- The first page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userSearchNext
Continue searching/listing users. This will return the next page of results.- Returns:
- The next page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userSearchPrevious
Continue searching/listing users. This will return the previous page of results.- Returns:
- The previous page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userSearchByEmailBegin
IdPage<IdUserSummary> userSearchByEmailBegin(IdUserSearchByEmailParameters parameters) throws IdAClientException, InterruptedException Start searching/listing users. Calling this method will set the search parameters and effectively reset searching back to page 1 of any results.- Parameters:
parameters- The search parameters- Returns:
- The first page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userSearchByEmailNext
Continue searching/listing users. This will return the next page of results.- Returns:
- The next page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userSearchByEmailPrevious
Continue searching/listing users. This will return the previous page of results.- Returns:
- The previous page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userGet
Fetch the given user.- Parameters:
id- The user ID- Returns:
- The user, if one exists
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userGetByEmail
Fetch the given user.- Parameters:
email- The user email- Returns:
- The user, if one exists
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userUpdate
IdUser userUpdate(UUID user, Optional<IdName> idName, Optional<IdRealName> realName, Optional<IdPassword> password) throws IdAClientException, InterruptedException Update the given user.- Parameters:
user- The useridName- The new idnamerealName- The new realnamepassword- The new password- Returns:
- The updated user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userEmailAdd
Add an email to the given user.- Parameters:
id- The user IDemail- The email address- Returns:
- The updated user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userEmailRemove
Remove an email from the given user.- Parameters:
id- The user IDemail- The email address- Returns:
- The updated user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userCreate
IdUser userCreate(Optional<UUID> id, IdName idName, IdRealName realName, IdEmail email, IdPassword password) throws IdAClientException, InterruptedException Create a user.- Parameters:
id- The IDpassword- The passwordrealName- The real nameemail- The emailidName- The ID name- Returns:
- The created user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userCreate
Create a user.- Parameters:
create- The creation info- Returns:
- The created user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userDelete
Delete the given user.- Parameters:
id- The user ID- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userBanCreate
Create a ban on the given user account.- Parameters:
ban- The ban- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userBanGet
Get the ban for the given user, if one exists.- Parameters:
id- The user ID- Returns:
- The ban, if any
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userBanDelete
Delete the given ban.- Parameters:
ban- The ban- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
userLoginHistory
List the login history for the given user.- Parameters:
id- The user ID- Returns:
- The login history
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-