Class AbstractBulkFileSystemImportWebScript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
BulkFilesystemImportWebScript
public class AbstractBulkFileSystemImportWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScriptcontains common fields and methods for the import web scripts.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCOMPANY_HOME_NAMEprotected static java.lang.StringCOMPANY_HOME_PATHprotected org.alfresco.service.cmr.model.FileFolderServicefileFolderServiceprotected static java.lang.StringIMPORT_ALREADY_IN_PROGRESS_ERROR_KEYprotected static java.lang.StringIMPORT_ALREADY_IN_PROGRESS_MODEL_KEYprotected booleanimportInProgressprotected static org.apache.commons.logging.Logloggerprotected static java.lang.StringPARAMETER_BATCH_SIZEprotected static java.lang.StringPARAMETER_DISABLE_RULESprotected static java.lang.StringPARAMETER_EXISTING_FILE_MODEprotected static java.lang.StringPARAMETER_NUM_THREADSprotected static java.lang.StringPARAMETER_REPLACE_EXISTINGprotected static java.lang.StringPARAMETER_SOURCE_DIRECTORYprotected static java.lang.StringPARAMETER_TARGET_NODEREFprotected static java.lang.StringPARAMETER_TARGET_PATHprotected static java.lang.StringPARAMETER_VALUE_DISABLE_RULESprotected static java.lang.StringPARAMETER_VALUE_REPLACE_EXISTINGprotected org.alfresco.repo.model.Repositoryrepositoryprotected static java.lang.StringWEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS
-
Constructor Summary
Constructors Constructor Description AbstractBulkFileSystemImportWebScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildTextMessage(java.lang.Throwable t)protected org.alfresco.service.cmr.repository.NodeRefconvertPathToNodeRef(java.lang.String targetPath)protected org.alfresco.service.cmr.repository.NodeRefgetTargetNodeRef(java.lang.String targetNodeRefStr, java.lang.String targetPath)voidsetFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)voidsetRepository(org.alfresco.repo.model.Repository repository)-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Field Detail
-
logger
protected static final org.apache.commons.logging.Log logger
-
WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS
protected static final java.lang.String WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS
- See Also:
- Constant Field Values
-
PARAMETER_TARGET_NODEREF
protected static final java.lang.String PARAMETER_TARGET_NODEREF
- See Also:
- Constant Field Values
-
PARAMETER_TARGET_PATH
protected static final java.lang.String PARAMETER_TARGET_PATH
- See Also:
- Constant Field Values
-
COMPANY_HOME_NAME
protected static final java.lang.String COMPANY_HOME_NAME
- See Also:
- Constant Field Values
-
COMPANY_HOME_PATH
protected static final java.lang.String COMPANY_HOME_PATH
- See Also:
- Constant Field Values
-
PARAMETER_REPLACE_EXISTING
protected static final java.lang.String PARAMETER_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
PARAMETER_EXISTING_FILE_MODE
protected static final java.lang.String PARAMETER_EXISTING_FILE_MODE
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_REPLACE_EXISTING
protected static final java.lang.String PARAMETER_VALUE_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
PARAMETER_SOURCE_DIRECTORY
protected static final java.lang.String PARAMETER_SOURCE_DIRECTORY
- See Also:
- Constant Field Values
-
PARAMETER_DISABLE_RULES
protected static final java.lang.String PARAMETER_DISABLE_RULES
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_DISABLE_RULES
protected static final java.lang.String PARAMETER_VALUE_DISABLE_RULES
- See Also:
- Constant Field Values
-
IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
protected static final java.lang.String IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
- See Also:
- Constant Field Values
-
IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
protected static final java.lang.String IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
- See Also:
- Constant Field Values
-
PARAMETER_BATCH_SIZE
protected static final java.lang.String PARAMETER_BATCH_SIZE
- See Also:
- Constant Field Values
-
PARAMETER_NUM_THREADS
protected static final java.lang.String PARAMETER_NUM_THREADS
- See Also:
- Constant Field Values
-
fileFolderService
protected org.alfresco.service.cmr.model.FileFolderService fileFolderService
-
repository
protected org.alfresco.repo.model.Repository repository
-
importInProgress
protected volatile boolean importInProgress
-
-
Method Detail
-
getTargetNodeRef
protected org.alfresco.service.cmr.repository.NodeRef getTargetNodeRef(java.lang.String targetNodeRefStr, java.lang.String targetPath) throws org.alfresco.service.cmr.model.FileNotFoundException- Throws:
org.alfresco.service.cmr.model.FileNotFoundException
-
convertPathToNodeRef
protected org.alfresco.service.cmr.repository.NodeRef convertPathToNodeRef(java.lang.String targetPath) throws org.alfresco.service.cmr.model.FileNotFoundException- Throws:
org.alfresco.service.cmr.model.FileNotFoundException
-
buildTextMessage
protected java.lang.String buildTextMessage(java.lang.Throwable t)
-
setFileFolderService
public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
-
setRepository
public void setRepository(org.alfresco.repo.model.Repository repository)
-
-