Class PersonalIncaMailAccountActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.incamail.impl.actions.PersonalIncaMailAccountActionServiceImpl
- All Implemented Interfaces:
PersonalIncaMailAccountActionService
public class PersonalIncaMailAccountActionServiceImpl
extends Object
implements PersonalIncaMailAccountActionService
-
Constructor Summary
ConstructorDescriptionPersonalIncaMailAccountActionServiceImpl
(EntityExplorerActionSelectionService selectionService, SecurityManager securityManager, EntityDefaultValueService defaultValueService, Context context, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService) -
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.
-
Constructor Details
-
PersonalIncaMailAccountActionServiceImpl
public PersonalIncaMailAccountActionServiceImpl(EntityExplorerActionSelectionService selectionService, SecurityManager securityManager, EntityDefaultValueService defaultValueService, Context context, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService)
-
-
Method Details
-
isOwnPrincipal
Description copied from interface:PersonalIncaMailAccountActionService
check if current principal matches selection- Specified by:
isOwnPrincipal
in interfacePersonalIncaMailAccountActionService
- Parameters:
selection
- the selected principal- Returns:
- true if both principals are the same
-
createOrUpdatePersonalAccount
public void createOrUpdatePersonalAccount(EntityExplorerActionSelection selection, String address, String password) Description copied from interface:PersonalIncaMailAccountActionService
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.- Specified by:
createOrUpdatePersonalAccount
in interfacePersonalIncaMailAccountActionService
- Parameters:
selection
- the selected principaladdress
- the mail address to usepassword
- the password to the IncaMail account
-
removePersonalAccount
Description copied from interface:PersonalIncaMailAccountActionService
delete the Inca_mail_address with personal = true related to the selected principal.- Specified by:
removePersonalAccount
in interfacePersonalIncaMailAccountActionService
- Parameters:
selection
- the selected principal
-