Class InboxExportHandler

  • All Implemented Interfaces:
    Serializable

    @ApplicationScoped
    public class InboxExportHandler
    extends Object
    implements Serializable
    Service for (physically) creating and deleting inbox data exports.
    Since:
    8.5.4
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • InboxExportHandler

        public InboxExportHandler()
    • Method Detail

      • isExportInProgress

        public boolean isExportInProgress()
        Returns:
        true if an export creation is currently in progress, otherwise false
      • currentExportName

        public String currentExportName()
        Returns:
        the name of the export that is currently being created or null if no export is in progress
      • availableExports

        public List<InboxExportDescriptor> availableExports​(boolean forceReload)
        Parameters:
        forceReload - if true, the available exports will be newly loaded from the file system
        Returns:
        a new unmodifiable list containing the descriptors for all of the currently available exports
      • exportAsync

        public void exportAsync​(InboxExportParams exportParams,
                                InboxExportHandler.EntityAcceptor... acceptors)
        Creates an inbox export for the provided descriptor.
        Parameters:
        acceptors - optional Functions to exclude involved entities from the export
      • removeAsync

        public void removeAsync​(InboxExportParams params)
        Completely removes the inbox export related to the provided descriptor.
        Parameters:
        params - the parameters for the export deletion