Interface CorrespondenceActionService
- All Known Implementing Classes:
CorrespondenceActionServiceImpl
public interface CorrespondenceActionService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptioncreatePdf(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) Deprecated.createPdfBackground(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable String key, @Nullable String template) Deprecated.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) Deprecated.@Nullable StringgetDefaultOutputLanguage(EntityExplorerActionSelection selection, String path) getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list ofConcernedRecipients based on theselectedEntitys and the providedRecipientParameters.getTargets(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list ofCommunicationTargets based on theselectedEntitys and the providedRecipientParameters.boolean
-
Method Details
-
getCorrespondenceSignature
@Deprecated Map<String,Object> getCorrespondenceSignature(URI signatureId, int signatureNumber, URI localeId) throws PersistException, UnresolvableUriException, UriStoreException Deprecated. -
getRecipients
List<ConcernedRecipient.ClientRepresentation> getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) throws RpcExecutionException, NoEntityToLoadException Returns a list ofConcernedRecipients based on theselectedEntitys 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_correspondencescorrectly.- Parameters:
selection- the entities for which the recipients are evaluated.parameters- theRecipientParametersproviding the conditions for evaluating the recipients.- Returns:
- the
ConcernedRecipients contains allConcernedRecipients and theirEffectiveRecipients. - Throws:
RpcExecutionExceptionNoEntityToLoadException- See Also:
-
getTargets
List<CommunicationTarget.ClientRepresentation> getTargets(EntityExplorerActionSelection selection, RecipientParameters parameters) throws NoEntityToLoadException Returns a list ofCommunicationTargets based on theselectedEntitys and the providedRecipientParameters.- Parameters:
selection- the entities for which the recipients are evaluated.parameters- theRecipientParametersproviding the conditions for evaluating the recipients.- Returns:
- the
CommunicationTargets - Throws:
NoEntityToLoadException
-
createPdf
@Deprecated CorrespondenceActionService.CorrespondenceActionResult createPdf(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
createPdfBackground
@Deprecated CorrespondenceActionService.CorrespondenceActionResult createPdfBackground(RebindValue[] values, EntityExplorerActionSelection selection, RecipientParameters recipientParameters, CommunicationTarget.ClientRepresentation[] targets, @Nullable @Nullable String key, @Nullable @Nullable String template) throws InterruptedException Deprecated.- 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
-