Interface CorrespondenceActionService
- All Known Implementing Classes:
CorrespondenceActionServiceImpl
public interface CorrespondenceActionService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptioncreatePdf
(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) createPdfBackground
(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) doPreview
(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template, CorrespondenceActionService.PreviewMode previewMode) doSave
(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) doSaveBackground
(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) getCorrespondenceSignature
(URI signatureId, int signatureNumber, URI localeId) @Nullable String
getDefaultOutputLanguage
(EntityExplorerActionSelection selection, String path) getRecipients
(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list ofConcernedRecipient
s based on theselectedEntity
s and the providedRecipientParameters
.getTargets
(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list ofCommunicationTarget
s based on theselectedEntity
s and the providedRecipientParameters
.boolean
-
Method Details
-
getCorrespondenceSignature
Map<String,Object> getCorrespondenceSignature(URI signatureId, int signatureNumber, URI localeId) throws PersistException, UnresolvableUriException, UriStoreException -
getRecipients
List<ConcernedRecipient.ClientRepresentation> getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) throws RpcExecutionException, NoEntityToLoadException Returns a list ofConcernedRecipient
s based on theselectedEntity
s and the providedRecipientParameters
. This method calls theRecipientActionService.getRecipients(ch.tocco.nice2.netui.api.actions.entityoperation.EntityExplorerActionSelection, ch.tocco.nice2.optional.address.api.recipient.RecipientParameters)
, but adds some special behavior for handling recipientsSerial_correspondences
correctly.- Parameters:
selection
- the entities for which the recipients are evaluated.parameters
- theRecipientParameters
providing the conditions for evaluating the recipients.- Returns:
- the
ConcernedRecipient
s contains allConcernedRecipient
s and theirEffectiveRecipient
s. - Throws:
RpcExecutionException
NoEntityToLoadException
- See Also:
-
getTargets
List<CommunicationTarget.ClientRepresentation> getTargets(EntityExplorerActionSelection selection, RecipientParameters parameters) throws NoEntityToLoadException Returns a list ofCommunicationTarget
s based on theselectedEntity
s and the providedRecipientParameters
.- Parameters:
selection
- the entities for which the recipients are evaluated.parameters
- theRecipientParameters
providing the conditions for evaluating the recipients.- Returns:
- the
CommunicationTarget
s - Throws:
NoEntityToLoadException
-
createPdf
CorrespondenceActionService.CorrespondenceActionResult createPdf(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException - Throws:
InterruptedException
-
createPdfBackground
CorrespondenceActionService.CorrespondenceActionResult createPdfBackground(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException - Throws:
InterruptedException
-
doSave
CorrespondenceActionService.CorrespondenceActionResult doSave(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException - Throws:
InterruptedException
-
doSaveBackground
CorrespondenceActionService.CorrespondenceActionResult doSaveBackground(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException - Throws:
InterruptedException
-
doPreview
CorrespondenceActionService.CorrespondenceActionResult doPreview(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template, CorrespondenceActionService.PreviewMode previewMode) throws InterruptedException - Throws:
InterruptedException
-
getDefaultOutputLanguage
@Nullable @Nullable String getDefaultOutputLanguage(EntityExplorerActionSelection selection, String path) throws PersistException, RpcExecutionException -
isShowInvalidSelectionTab
boolean isShowInvalidSelectionTab() -
getSelectionEntityListConfirmed
List<String> getSelectionEntityListConfirmed(EntityExplorerActionSelection selection) throws RpcExecutionException, PersistException -
getNumberOfCorrespondences
-