Interface PersonalIncaMailAccountActionService
- All Known Implementing Classes:
PersonalIncaMailAccountActionServiceImpl
public interface PersonalIncaMailAccountActionService
While any user may call this service, any action will throw an exception if not called on your own principal.
Use
isOwnPrincipal(EntityExplorerActionSelection)
to check principals
beforehand.-
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrUpdatePersonalAccount
(EntityExplorerActionSelection selection, String address, String password) create a new Inca_mail_address with personal = true related to selected principal, if none exists yet.boolean
isOwnPrincipal
(EntityExplorerActionSelection selection) check if current principal matches selectionvoid
delete the Inca_mail_address with personal = true related to the selected principal.
-
Method Details
-
isOwnPrincipal
check if current principal matches selection- Parameters:
selection
- the selected principal- Returns:
- true if both principals are the same
-
createOrUpdatePersonalAccount
void createOrUpdatePersonalAccount(EntityExplorerActionSelection selection, String address, String password) create a new Inca_mail_address with personal = true related to selected principal, if none exists yet. If one exists, update address and password fields on it.- Parameters:
selection
- the selected principaladdress
- the mail address to usepassword
- the password to the IncaMail account
-
removePersonalAccount
delete the Inca_mail_address with personal = true related to the selected principal.- Parameters:
selection
- the selected principal
-