Class ArchiveImporter

  • All Implemented Interfaces:

    public class ArchiveImporter
    extends com.logicaldoc.core.task.Task
    This component imports all the documents that are into archives ready to be imported.
    Matteo Caruso - LogicalDOC
    • Constructor Detail

      • ArchiveImporter

        public ArchiveImporter()
    • Method Detail

      • getDefaultOwner

        public String getDefaultOwner()
      • getArchiveDao

        public ArchiveDAO getArchiveDao()
      • setArchiveDao

        public void setArchiveDao​(ArchiveDAO archiveDao)
      • setArchiveManager

        public void setArchiveManager​(ArchiveManager archiveManager)
      • getDocumentManager

        public com.logicaldoc.core.document.DocumentManager getDocumentManager()
      • setDocumentManager

        public void setDocumentManager​(com.logicaldoc.core.document.DocumentManager documentManager)
      • isIndeterminate

        public boolean isIndeterminate()
        Specified by:
        isIndeterminate in class com.logicaldoc.core.task.Task
      • isConcurrent

        public boolean isConcurrent()
        Specified by:
        isConcurrent in class com.logicaldoc.core.task.Task
      • getImported

        public long getImported()
      • getUpdated

        public long getUpdated()
      • getErrors

        public long getErrors()
      • importArchives

        public void importArchives()
                            throws com.logicaldoc.core.PersistenceException
        Imports all new documents from all archives. The stored document will be owned by the specified default owner.
        com.logicaldoc.core.PersistenceException - error at data layer
      • setDefaultOwner

        public void setDefaultOwner​(String defaultOwner)
      • getDocumentDao

        public com.logicaldoc.core.document.dao.DocumentDAO getDocumentDao()
      • setDocumentDao

        public void setDocumentDao​(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
      • getLog

        public org.slf4j.Logger getLog()
      • setImported

        public void setImported​(long imported)
      • setUpdated

        public void setUpdated​(long updated)
      • setErrors

        public void setErrors​(long errors)
      • updateSizeAndType

        public long updateSizeAndType​(Archive archive)
        Used to update the archive number of documents and the archive type reading the attributes 'count' on index file
        archive - the archive to update
        the total number of entries in the archive
      • setFolderDao

        public void setFolderDao​(com.logicaldoc.core.folder.FolderDAO folderDao)
      • setTenantDao

        public void setTenantDao​( tenantDao)