Class MailArgs
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.legacy.MailArgs
Deprecated.
-
Constructor Summary
ConstructorDescriptionMailArgs
(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, boolean fixateReceiverListFeature) Deprecated.MailArgs
(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, EntityExplorerActionSelection receiverSelection, boolean fixateReceiverListFeature) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.boolean
Deprecated.load
(CommandExecutor executor, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService, Context persistCtx, boolean isFirstBatch) Deprecated.Load required data.loadNew
(Context persistCtx, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService, boolean isFirstBatch) Deprecated.Load all required data “the old way”, don't fixate the selection etc.loadPrepared
(CommandExecutor executor, EntityExplorerActionSelectionService selectionService) Deprecated.Used inside the send-mail task: After this object is deserialized it is in the state after a call toprepare(CommandExecutor, EntityExplorerActionSelectionService, MailReceiverService)
.prepare
(CommandExecutor executor, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService) Deprecated.Prepare the arguments by creating the list of receivers.
-
Constructor Details
-
MailArgs
public MailArgs(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, boolean fixateReceiverListFeature) Deprecated. -
MailArgs
public MailArgs(MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, EntityExplorerActionSelection receiverSelection, boolean fixateReceiverListFeature) Deprecated.
-
-
Method Details
-
prepare
public MailArgs prepare(CommandExecutor executor, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService) throws NoEntityToLoadException Deprecated.Prepare the arguments by creating the list of receivers. The list is then stored in this class. The lists are serialized into theJobDataMap
object when a send-mail task is submitted.- Throws:
NoEntityToLoadException
-
getMailInfo
Deprecated. -
getSelection
Deprecated. -
getSender
Deprecated. -
getSelectionEntityList
Deprecated. -
getMailReceivers
Deprecated. -
isFixateReceiverListFeature
public boolean isFixateReceiverListFeature()Deprecated. -
loadPrepared
public MailArgs loadPrepared(CommandExecutor executor, EntityExplorerActionSelectionService selectionService) Deprecated.Used inside the send-mail task: After this object is deserialized it is in the state after a call toprepare(CommandExecutor, EntityExplorerActionSelectionService, MailReceiverService)
. Then this method re-fetches the receiver list based on the stored primary keys. -
loadNew
public MailArgs loadNew(Context persistCtx, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService, boolean isFirstBatch) throws NoEntityToLoadException Deprecated.Load all required data “the old way”, don't fixate the selection etc. This is to provide the old behaviour.- Throws:
NoEntityToLoadException
-
load
public MailArgs load(CommandExecutor executor, EntityExplorerActionSelectionService selectionService, MailReceiverService mailReceiverService, Context persistCtx, boolean isFirstBatch) throws NoEntityToLoadException Deprecated.Load required data. It checks whether the fixate-feature is enabeld and uses the corresponding way of loading the data by delegating to eitherloadPrepared(CommandExecutor, EntityExplorerActionSelectionService)
orloadNew(Context, EntityExplorerActionSelectionService, MailReceiverService, boolean)
.- Throws:
NoEntityToLoadException
-