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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractBulkFileSystemImportWebScript.BulkImportParametersExtractorprotected classAbstractBulkFileSystemImportWebScript.MultithreadedImportWebScriptLogic
-
Field Summary
Fields Modifier and Type Field Description protected static StringCOMPANY_HOME_NAMEprotected static StringCOMPANY_HOME_PATHprotected FileFolderServicefileFolderServiceprotected static StringIMPORT_ALREADY_IN_PROGRESS_ERROR_KEYprotected static StringIMPORT_ALREADY_IN_PROGRESS_MODEL_KEYprotected booleanimportInProgressprotected static org.apache.commons.logging.Logloggerprotected static StringPARAMETER_BATCH_SIZEprotected static StringPARAMETER_DISABLE_RULESprotected static StringPARAMETER_EXISTING_FILE_MODEprotected static StringPARAMETER_NUM_THREADSprotected static StringPARAMETER_REPLACE_EXISTINGprotected static StringPARAMETER_SOURCE_DIRECTORYprotected static StringPARAMETER_TARGET_NODEREFprotected static StringPARAMETER_TARGET_PATHprotected static StringPARAMETER_VALUE_DISABLE_RULESprotected static StringPARAMETER_VALUE_REPLACE_EXISTINGprotected Repositoryrepositoryprotected static 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 StringbuildTextMessage(Throwable t)protected NodeRefconvertPathToNodeRef(String targetPath)protected NodeRefgetTargetNodeRef(String targetNodeRefStr, String targetPath)voidsetFileFolderService(FileFolderService fileFolderService)voidsetRepository(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 FileFolderService fileFolderService
-
repository
protected Repository repository
-
importInProgress
protected volatile boolean importInProgress
-
-
Method Detail
-
getTargetNodeRef
protected NodeRef getTargetNodeRef(String targetNodeRefStr, String targetPath) throws FileNotFoundException
- Throws:
FileNotFoundException
-
convertPathToNodeRef
protected NodeRef convertPathToNodeRef(String targetPath) throws FileNotFoundException
- Throws:
FileNotFoundException
-
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
-
setRepository
public void setRepository(Repository repository)
-
-