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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractBulkFileSystemImportWebScript.BulkImportParametersExtractor
protected class
AbstractBulkFileSystemImportWebScript.MultithreadedImportWebScriptLogic
-
Field Summary
Fields Modifier and Type Field Description protected static String
COMPANY_HOME_NAME
protected static String
COMPANY_HOME_PATH
protected FileFolderService
fileFolderService
protected static String
IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
protected static String
IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
protected boolean
importInProgress
protected static org.apache.commons.logging.Log
logger
protected static String
PARAMETER_BATCH_SIZE
protected static String
PARAMETER_DISABLE_RULES
protected static String
PARAMETER_EXISTING_FILE_MODE
protected static String
PARAMETER_NUM_THREADS
protected static String
PARAMETER_REPLACE_EXISTING
protected static String
PARAMETER_SOURCE_DIRECTORY
protected static String
PARAMETER_TARGET_NODEREF
protected static String
PARAMETER_TARGET_PATH
protected static String
PARAMETER_VALUE_DISABLE_RULES
protected static String
PARAMETER_VALUE_REPLACE_EXISTING
protected Repository
repository
protected static String
WEB_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 String
buildTextMessage(Throwable t)
protected NodeRef
convertPathToNodeRef(String targetPath)
protected NodeRef
getTargetNodeRef(String targetNodeRefStr, String targetPath)
void
setFileFolderService(FileFolderService fileFolderService)
void
setRepository(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)
-
-