Class MailActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.MailActionServiceImpl
- All Implemented Interfaces:
MailActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.address.api.mail.MailActionService
MailActionService.MailActionResult, MailActionService.MailFormInfo, MailActionService.MailFormRequest, MailActionService.MailInfo, MailActionService.MailPreview
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMailActionServiceImpl
(Context context, EntityExplorerActionSelectionService selectionService, QueryBuilderFactory queryBuilderFactory, DefaultDisplayService defaultDisplayService, MailBuilder mailBuilder, MailReceiverService mailReceiverService, TextResources textResources, TimezoneResolverService timezoneResolverService, TaskSchedulingService jobManager, L10N l10N, PrincipalService principalService, BusinessUnitManager businessUnitManager, MultiUploadService multiUploadService, UriResolver uriResolver, CommandExecutor executor, MailProviderManager mailProviderManager) -
Method Summary
Modifier and TypeMethodDescriptiongetMailFormInfo
(MailActionService.MailFormRequest request, EntityExplorerActionSelection selection) getMailPreview
(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, URI languageUri, Integer index) boolean
@Nullable String
sendMail
(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, URI languageUri, @Nullable org.joda.time.LocalDate expiryDate, @Nullable org.joda.time.DateTime executionDate) void
setFixateReceiverListFeature
(boolean fixateReceiverListFeature) void
setShowInvalidSelectionTab
(boolean showInvalidSelectionTab)
-
Field Details
-
CLIENT_LIVE_LIMIT
public static final int CLIENT_LIVE_LIMIT- See Also:
-
-
Constructor Details
-
MailActionServiceImpl
public MailActionServiceImpl(Context context, EntityExplorerActionSelectionService selectionService, QueryBuilderFactory queryBuilderFactory, DefaultDisplayService defaultDisplayService, MailBuilder mailBuilder, MailReceiverService mailReceiverService, TextResources textResources, TimezoneResolverService timezoneResolverService, TaskSchedulingService jobManager, L10N l10N, PrincipalService principalService, BusinessUnitManager businessUnitManager, MultiUploadService multiUploadService, UriResolver uriResolver, CommandExecutor executor, MailProviderManager mailProviderManager)
-
-
Method Details
-
setFixateReceiverListFeature
@Value("${sendmail.fixateReceiverListFeature}") public void setFixateReceiverListFeature(boolean fixateReceiverListFeature) -
setShowInvalidSelectionTab
@Value("${features.showInvalidSelectionInTab}") public void setShowInvalidSelectionTab(boolean showInvalidSelectionTab) -
getMailFormInfo
public MailActionService.MailFormInfo getMailFormInfo(MailActionService.MailFormRequest request, EntityExplorerActionSelection selection) throws PersistException, RpcExecutionException, NoEntityToLoadException - Specified by:
getMailFormInfo
in interfaceMailActionService
- Throws:
PersistException
RpcExecutionException
NoEntityToLoadException
-
getMailPreview
public MailActionService.MailPreview getMailPreview(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, URI languageUri, Integer index) throws PersistException, RpcExecutionException, UriStoreException, UnresolvableUriException - Specified by:
getMailPreview
in interfaceMailActionService
- Throws:
PersistException
RpcExecutionException
UriStoreException
UnresolvableUriException
-
sendMail
@Nullable public @Nullable String sendMail(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, URI languageUri, @Nullable @Nullable org.joda.time.LocalDate expiryDate, @Nullable @Nullable org.joda.time.DateTime executionDate) throws RpcExecutionException, NoEntityToLoadException, UriStoreException, UnresolvableUriException - Specified by:
sendMail
in interfaceMailActionService
- Throws:
RpcExecutionException
NoEntityToLoadException
UriStoreException
UnresolvableUriException
-
isShowInvalidSelectionTab
public boolean isShowInvalidSelectionTab()- Specified by:
isShowInvalidSelectionTab
in interfaceMailActionService
-