Package de.xima.fc.gui.bean.export.inbox
Class InboxDataExportBean
- java.lang.Object
-
- de.xima.fc.gui.bean.export.inbox.InboxDataExportBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class InboxDataExportBean extends Object implements Serializable
Frontend controller bean for managing inbox data exports.- Since:
- 8.5.4
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InboxDataExportBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArchiveSecret()List<InboxExportDescriptor>getAvailableExports()intgetDaysToKeepExport()PathgetExportBasePath()EInboxExportScopegetExportScope()BooleangetInboxExportCreationPermitted()BooleangetInboxExportDeletionPermitted()BooleangetInboxExportDownloadPermitted()BooleangetInboxExportPermitted()List<org.primefaces.model.SortMeta>getInitialSorting()org.primefaces.model.DualListModel<Mandant>getMandantPicklistModel()Lazy getter for the picklist model to select the Mandants to be included in the system-scoped export.voidinitMandantScope()Initializes this controller for use in themandantscope.voidinitSystemScope()Initializes this controller for use in thesystemscope.booleanisInProgress()voidonCreateExport()Action handler for creating a new export.voidonDeleteExport(InboxExportDescriptor descriptor)Deletes the export belonging to the provided export descriptor.voidonRefresh()Action handler for refresh requests, reloads the list of existing exports.voidsetArchiveSecret(String archiveSecret)voidsetDaysToKeepExport(int daysToKeepExport)voidsetExportScope(EInboxExportScope exportScope)voidsetMandantPicklistModel(org.primefaces.model.DualListModel<Mandant> mandantPicklistModel)
-
-
-
Method Detail
-
initSystemScope
public void initSystemScope()
Initializes this controller for use in thesystemscope.
-
initMandantScope
public void initMandantScope()
Initializes this controller for use in themandantscope.
-
getMandantPicklistModel
public org.primefaces.model.DualListModel<Mandant> getMandantPicklistModel()
Lazy getter for the picklist model to select the Mandants to be included in the system-scoped export.- Returns:
- the prepared model for export scope 'system', null otherwise.
-
onRefresh
public void onRefresh()
Action handler for refresh requests, reloads the list of existing exports.
-
onCreateExport
public void onCreateExport() throws IOExceptionAction handler for creating a new export.- Throws:
IOException- in case of an I/O error when creating the export
-
onDeleteExport
public void onDeleteExport(InboxExportDescriptor descriptor) throws IOException
Deletes the export belonging to the provided export descriptor.- Parameters:
descriptor- the descriptor for the export to delete- Throws:
IOException- in case of an I/O error when deleting the export
-
isInProgress
public boolean isInProgress()
- Returns:
- true if an export is currently in progress, otherwise false
-
getInitialSorting
public List<org.primefaces.model.SortMeta> getInitialSorting()
-
getExportBasePath
public Path getExportBasePath()
-
getAvailableExports
public List<InboxExportDescriptor> getAvailableExports()
-
getExportScope
public EInboxExportScope getExportScope()
-
setExportScope
public void setExportScope(EInboxExportScope exportScope)
-
setMandantPicklistModel
public void setMandantPicklistModel(org.primefaces.model.DualListModel<Mandant> mandantPicklistModel)
-
getArchiveSecret
public String getArchiveSecret()
-
setArchiveSecret
public void setArchiveSecret(String archiveSecret)
-
getDaysToKeepExport
public int getDaysToKeepExport()
-
setDaysToKeepExport
public void setDaysToKeepExport(int daysToKeepExport)
-
getInboxExportPermitted
public Boolean getInboxExportPermitted()
-
getInboxExportCreationPermitted
public Boolean getInboxExportCreationPermitted()
-
getInboxExportDeletionPermitted
public Boolean getInboxExportDeletionPermitted()
-
getInboxExportDownloadPermitted
public Boolean getInboxExportDownloadPermitted()
-
-