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.DeclarativeWebScript
contains common fields and methods for the import web scripts.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractBulkFileSystemImportWebScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildTextMessage(Throwable t)
protected org.alfresco.service.cmr.repository.NodeRef
convertPathToNodeRef(String targetPath)
protected org.alfresco.service.cmr.repository.NodeRef
getTargetNodeRef(String targetNodeRefStr, String targetPath)
void
setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
void
setRepository(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 String WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS
- See Also:
- Constant Field Values
-
PARAMETER_TARGET_NODEREF
protected static final String PARAMETER_TARGET_NODEREF
- See Also:
- Constant Field Values
-
PARAMETER_TARGET_PATH
protected static final String PARAMETER_TARGET_PATH
- See Also:
- Constant Field Values
-
COMPANY_HOME_NAME
protected static final String COMPANY_HOME_NAME
- See Also:
- Constant Field Values
-
COMPANY_HOME_PATH
protected static final String COMPANY_HOME_PATH
- See Also:
- Constant Field Values
-
PARAMETER_REPLACE_EXISTING
protected static final String PARAMETER_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
PARAMETER_EXISTING_FILE_MODE
protected static final String PARAMETER_EXISTING_FILE_MODE
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_REPLACE_EXISTING
protected static final String PARAMETER_VALUE_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
PARAMETER_SOURCE_DIRECTORY
protected static final String PARAMETER_SOURCE_DIRECTORY
- See Also:
- Constant Field Values
-
PARAMETER_DISABLE_RULES
protected static final String PARAMETER_DISABLE_RULES
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_DISABLE_RULES
protected static final String PARAMETER_VALUE_DISABLE_RULES
- See Also:
- Constant Field Values
-
IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
protected static final String IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
- See Also:
- Constant Field Values
-
IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
protected static final String IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
- See Also:
- Constant Field Values
-
PARAMETER_BATCH_SIZE
protected static final String PARAMETER_BATCH_SIZE
- See Also:
- Constant Field Values
-
PARAMETER_NUM_THREADS
protected static final 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(String targetNodeRefStr, 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(String targetPath) throws org.alfresco.service.cmr.model.FileNotFoundException
- Throws:
org.alfresco.service.cmr.model.FileNotFoundException
-
setFileFolderService
public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
-
setRepository
public void setRepository(org.alfresco.repo.model.Repository repository)
-
-