Class ActionThread
java.lang.Object
org.exoplatform.documents.storage.jcr.bulkactions.ActionThread
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionActionThread(org.exoplatform.documents.storage.DocumentFileStorage documentFileStorage, org.exoplatform.documents.storage.JCRDeleteFileStorage jCrDeleteFileStorage, BulkStorageActionService bulkStorageActionService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.documents.model.ActionData actionData, javax.jcr.Node parent, Map<String, Object> params, javax.jcr.Session session, List<org.exoplatform.documents.model.AbstractNode> items, Long identityId) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateItems(String tempFolderPath) voidcreateNewVersion(javax.jcr.Node node, File file) static voidfixAndExtractZip(File zipFile, File outputDir) voidhandleImportConflict(File file, javax.jcr.Node folderNode, String name, String title, String filePath, String tempFolderPath) voidvoidvoidrun()
-
Field Details
-
NT_FILE
- See Also:
-
NT_FOLDER
- See Also:
-
JCR_CONTENT
- See Also:
-
JCR_DATA
- See Also:
-
MIX_REFERENCEABLE
- See Also:
-
EXO_TITLE
- See Also:
-
JCR_LAST_MODIFIED
- See Also:
-
JCR_ENCODING
- See Also:
-
JCR_MIME_TYPE
- See Also:
-
NT_RESOURCE
- See Also:
-
EXO_RSS_ENABLE
- See Also:
-
EXO_NAME
- See Also:
-
EXO_DATE_CREATED
- See Also:
-
EXO_DATE_MODIFIED
- See Also:
-
EXO_LAST_MODIFIED_DATE
- See Also:
-
EXO_LAST_MODIFIER
- See Also:
-
EXO_MODIFY
- See Also:
-
EXO_SORTABLE
- See Also:
-
MIX_VERSIONABLE
- See Also:
-
-
Constructor Details
-
ActionThread
public ActionThread(org.exoplatform.documents.storage.DocumentFileStorage documentFileStorage, org.exoplatform.documents.storage.JCRDeleteFileStorage jCrDeleteFileStorage, BulkStorageActionService bulkStorageActionService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.documents.model.ActionData actionData, javax.jcr.Node parent, Map<String, Object> params, javax.jcr.Session session, List<org.exoplatform.documents.model.AbstractNode> items, Long identityId)
-
-
Method Details
-
run
public void run() -
processAction
public void processAction() throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
fixAndExtractZip
- Throws:
IOException
-
importFromZip
public void importFromZip() -
createItems
- Throws:
javax.jcr.RepositoryException
-
handleImportConflict
public void handleImportConflict(File file, javax.jcr.Node folderNode, String name, String title, String filePath, String tempFolderPath) throws Exception - Throws:
Exception
-
createNewVersion
public void createNewVersion(javax.jcr.Node node, File file) throws javax.jcr.RepositoryException, IOException - Throws:
javax.jcr.RepositoryExceptionIOException
-