Class InboxExportDescriptor
java.lang.Object
de.xima.fc.gui.bean.export.inbox.model.InboxExportDescriptor
- All Implemented Interfaces:
Serializable
Model for a single inbox data export.
- Since:
- 8.5.4
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongexportSize(Locale locale) longintlonggetId()booleanstatic InboxExportDescriptorreadDescriptor(Path exportDescriptorPath) Creates an export descriptor instance by deserializing the data found under the provided path.voidRemoves this export descriptor from the file system, using the path the descriptor provides.voidsetCreatedAtTimestamp(long createdAtTimestamp) voidsetCreatedBy(String createdBy) voidsetDaysToKeep(int daysToKeep) voidsetExportName(String exportName) voidsetExportPath(String exportPath) voidsetExportScope(EInboxExportScope exportScope) voidvoidsetInProgress(boolean inProgress) voidsetMandantId(Long mandantId) voidSerializes this export descriptor to the file system, using the path the descriptor provides.toString()
-
Field Details
-
INFO_FILE_NAME
- See Also:
-
DEFAULT_DT_FORMATTER
-
-
Constructor Details
-
InboxExportDescriptor
public InboxExportDescriptor()
-
-
Method Details
-
readDescriptor
Creates an export descriptor instance by deserializing the data found under the provided path.- Parameters:
exportDescriptorPath- file system path that points to the description file- Returns:
- the deserialized export descriptor instance
- Throws:
IOException- in case of an I/O error during deserialization
-
storeDescriptor
Serializes this export descriptor to the file system, using the path the descriptor provides.- Throws:
IOException- in case of an I/O error during serialization
-
removeDescriptor
Removes this export descriptor from the file system, using the path the descriptor provides.- Throws:
NoSuchFileException- if the descriptor file doesn't existIOException- in case of an I/O error during deletion
-
calcSecondsToKeep
public long calcSecondsToKeep()- Returns:
- the seconds between now and the configured removal of this export, always >= 0
-
getCreatedAt
- Returns:
- the date and time this export was created
-
getDeletedAt
- Returns:
- the date and time this export will be deleted
-
getExportByteCount
public long getExportByteCount()- Returns:
- the export's size in bytes
-
exportSize
-
toString
-
getId
-
setId
-
getExportName
-
setExportName
-
getCreatedBy
-
setCreatedBy
-
getExportPath
-
setExportPath
-
getCreatedAtTimestamp
public long getCreatedAtTimestamp() -
setCreatedAtTimestamp
public void setCreatedAtTimestamp(long createdAtTimestamp) -
getDaysToKeep
public int getDaysToKeep() -
setDaysToKeep
public void setDaysToKeep(int daysToKeep) -
getExportScope
-
setExportScope
-
getMandantId
-
setMandantId
-
isInProgress
public boolean isInProgress() -
setInProgress
public void setInProgress(boolean inProgress)
-