Interface IdAClientAdminsType
- All Known Subinterfaces:
IdAClientProtocolHandlerType,IdAClientType
- All Known Implementing Classes:
IdAClient,IdAClientProtocolHandler1,IdAClientProtocolHandlerAbstract,IdAClientProtocolHandlerDisconnected
public interface IdAClientAdminsType
Commands related to admins.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadminBanCreate(IdBan ban) Create a ban on the given admin account.voidadminBanDelete(IdBan ban) Delete the given ban.adminBanGet(UUID id) Get the ban for the given admin, if one exists.adminCreate(Optional<UUID> id, IdName idName, IdRealName realName, IdEmail email, IdPassword password, IdAdminPermissionSet permissions) Create a admin.voidadminDelete(UUID id) Delete the given admin.adminEmailAdd(UUID id, IdEmail email) Add an email to the given admin.adminEmailRemove(UUID id, IdEmail email) Remove an email from the given admin.Fetch the given admin.adminGetByEmail(IdEmail email) Fetch the given admin.adminPermissionGrant(UUID id, IdAdminPermission permission) Grant a permission to the given admin.adminPermissionRevoke(UUID id, IdAdminPermission permission) Revoke a permission from the given admin.adminSearchBegin(IdAdminSearchParameters parameters) Start searching/listing admins.Start searching/listing admins.Continue searching/listing admins.Continue searching/listing admins.Continue searching/listing admins.Continue searching/listing admins.Retrieve the current admin profile.adminUpdate(UUID admin, Optional<IdName> idName, Optional<IdRealName> realName, Optional<IdPassword> password) Update the given admin.
-
Method Details
-
adminSelf
Retrieve the current admin profile.- Returns:
- The current user
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminSearchBegin
IdPage<IdAdminSummary> adminSearchBegin(IdAdminSearchParameters parameters) throws IdAClientException, InterruptedException Start searching/listing admins. 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
-
adminSearchNext
Continue searching/listing admins. This will return the next page of results.- Returns:
- The next page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminSearchPrevious
Continue searching/listing admins. This will return the previous page of results.- Returns:
- The previous page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminSearchByEmailBegin
IdPage<IdAdminSummary> adminSearchByEmailBegin(IdAdminSearchByEmailParameters parameters) throws IdAClientException, InterruptedException Start searching/listing admins. 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
-
adminSearchByEmailNext
Continue searching/listing admins. This will return the next page of results.- Returns:
- The next page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminSearchByEmailPrevious
Continue searching/listing admins. This will return the previous page of results.- Returns:
- The previous page of results
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminGet
Fetch the given admin.- Parameters:
id- The admin ID- Returns:
- The admin, if one exists
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminGetByEmail
Fetch the given admin.- Parameters:
email- The admin email- Returns:
- The admin, if one exists
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminUpdate
IdAdmin adminUpdate(UUID admin, Optional<IdName> idName, Optional<IdRealName> realName, Optional<IdPassword> password) throws IdAClientException, InterruptedException Update the given admin.- Parameters:
admin- The adminidName- The new idnamerealName- The new realnamepassword- The new password- Returns:
- The updated admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminCreate
IdAdmin adminCreate(Optional<UUID> id, IdName idName, IdRealName realName, IdEmail email, IdPassword password, IdAdminPermissionSet permissions) throws IdAClientException, InterruptedException Create a admin.- Parameters:
id- The IDpassword- The passwordrealName- The real nameemail- The emailidName- The ID namepermissions- The permissions- Returns:
- The created admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminDelete
Delete the given admin.- Parameters:
id- The admin ID- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminEmailAdd
Add an email to the given admin.- Parameters:
id- The admin IDemail- The email address- Returns:
- The updated admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminEmailRemove
Remove an email from the given admin.- Parameters:
id- The admin IDemail- The email address- Returns:
- The updated admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminPermissionGrant
IdAdmin adminPermissionGrant(UUID id, IdAdminPermission permission) throws IdAClientException, InterruptedException Grant a permission to the given admin.- Parameters:
id- The admin IDpermission- The permission- Returns:
- The updated admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminPermissionRevoke
IdAdmin adminPermissionRevoke(UUID id, IdAdminPermission permission) throws IdAClientException, InterruptedException Revoke a permission from the given admin.- Parameters:
id- The admin IDpermission- The permission- Returns:
- The updated admin
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminBanCreate
Create a ban on the given admin account.- Parameters:
ban- The ban- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminBanGet
Get the ban for the given admin, if one exists.- Parameters:
id- The admin ID- Returns:
- The ban, if any
- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-
adminBanDelete
Delete the given ban.- Parameters:
ban- The ban- Throws:
IdAClientException- On errorsInterruptedException- On interruption
-