Package com.logicaldoc.impex
Class ArchiveBuilder
java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.impex.ArchiveBuilder
- All Implemented Interfaces:
- Runnable
@Component("archiveBuilder")
public class ArchiveBuilder
extends com.logicaldoc.core.task.Task
This component builds the closed archives.
- Since:
- 4.5
- Author:
- Matteo Caruso - LogicalDOC
- 
Field SummaryFields inherited from class com.logicaldoc.core.task.TaskSTATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidLaunches the build of all closed archives and unlocks the documents.booleanbooleanvoidsetArchiveManager(ArchiveManager archiveManager) Methods inherited from class com.logicaldoc.core.task.TaskaddTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setReportRecipients, setSendActivityReport, setSize
- 
Constructor Details- 
ArchiveBuilderpublic ArchiveBuilder()
 
- 
- 
Method Details- 
setArchiveManager
- 
isIndeterminatepublic boolean isIndeterminate()- Specified by:
- isIndeterminatein class- com.logicaldoc.core.task.Task
 
- 
isConcurrentpublic boolean isConcurrent()- Specified by:
- isConcurrentin class- com.logicaldoc.core.task.Task
 
- 
buildArchivespublic void buildArchives() throws com.logicaldoc.core.PersistenceExceptionLaunches the build of all closed archives and unlocks the documents. If the archive is a 'default' type, sets the status to 'finalized' and sends a system message and an email to the archive closer. If the archive is a 'store' type, set the status to 'readytosign' and sends a system message and an email to the archive closer.- Throws:
- com.logicaldoc.core.PersistenceException- error in the data layer
 
 
-