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
ConstructorsConstructorDescriptionPersonalIncaMailAccountActionServiceImpl(EntityExplorerActionSelectionService selectionService, SecurityManager securityManager, EntityDefaultValueService defaultValueService, Context context, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrUpdatePersonalAccount(EntityExplorerActionSelection selection, String address, String password) create a new Inca_mail_address with personal = true related to selected principal, if none exists yet.booleanisOwnPrincipal(EntityExplorerActionSelection selection) check if current principal matches selectionvoiddelete 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:PersonalIncaMailAccountActionServicecheck if current principal matches selection- Specified by:
isOwnPrincipalin 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:PersonalIncaMailAccountActionServicecreate 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:
createOrUpdatePersonalAccountin interfacePersonalIncaMailAccountActionService- Parameters:
selection- the selected principaladdress- the mail address to usepassword- the password to the IncaMail account
-
removePersonalAccount
Description copied from interface:PersonalIncaMailAccountActionServicedelete the Inca_mail_address with personal = true related to the selected principal.- Specified by:
removePersonalAccountin interfacePersonalIncaMailAccountActionService- Parameters:
selection- the selected principal
-