Package com.logicaldoc.impex
Class ArchiveBuilder
java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.impex.ArchiveBuilder
- All Implemented Interfaces:
Runnable
public class ArchiveBuilder
extends com.logicaldoc.core.task.Task
This component builds the closed archives.
- Since:
- 4.5
- Author:
- Matteo Caruso - LogicalDOC
-
Field Summary
Fields inherited from class com.logicaldoc.core.task.Task
STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Launches the build of all closed archives and unlocks the documents.com.logicaldoc.core.folder.FolderDAO
boolean
boolean
void
setArchiveDao
(ArchiveDAO archiveDao) void
setArchiveManager
(ArchiveManager archiveManager) void
setDefaultOwner
(String defaultOwner) void
setDocumentDao
(com.logicaldoc.core.document.dao.DocumentDAO documentDao) void
setFolderDao
(com.logicaldoc.core.folder.FolderDAO folderDao) void
setMessageTemplateDao
(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao) void
setStorer
(com.logicaldoc.core.store.Storer storer) Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setConfig, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ArchiveBuilder
public ArchiveBuilder()
-
-
Method Details
-
getArchiveManager
-
setArchiveManager
-
getArchiveDao
-
setArchiveDao
-
getFolderDao
public com.logicaldoc.core.folder.FolderDAO getFolderDao() -
setFolderDao
public void setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao) -
isIndeterminate
public boolean isIndeterminate()- Specified by:
isIndeterminate
in classcom.logicaldoc.core.task.Task
-
isConcurrent
public boolean isConcurrent()- Specified by:
isConcurrent
in classcom.logicaldoc.core.task.Task
-
buildArchives
public void buildArchives()Launches 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 'storage' type, set the status to 'readytosign' and sends a system message and an email to the archive closer. -
getDefaultOwner
-
setDefaultOwner
-
setDocumentDao
public void setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao) -
setStorer
public void setStorer(com.logicaldoc.core.store.Storer storer) -
setMessageTemplateDao
public void setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
-