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 ClassesModifier and TypeClassDescriptionprotected static class
protected class
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected FileFolderService
protected static final String
protected static final String
protected boolean
protected static final org.apache.commons.logging.Log
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected Repository
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
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 Details
-
logger
protected static final org.apache.commons.logging.Log logger -
WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS
- See Also:
-
PARAMETER_TARGET_NODEREF
- See Also:
-
PARAMETER_TARGET_PATH
- See Also:
-
COMPANY_HOME_NAME
- See Also:
-
COMPANY_HOME_PATH
- See Also:
-
PARAMETER_REPLACE_EXISTING
- See Also:
-
PARAMETER_EXISTING_FILE_MODE
- See Also:
-
PARAMETER_VALUE_REPLACE_EXISTING
- See Also:
-
PARAMETER_SOURCE_DIRECTORY
- See Also:
-
PARAMETER_DISABLE_RULES
- See Also:
-
PARAMETER_VALUE_DISABLE_RULES
- See Also:
-
IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY
- See Also:
-
IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY
- See Also:
-
PARAMETER_BATCH_SIZE
- See Also:
-
PARAMETER_NUM_THREADS
- See Also:
-
fileFolderService
-
repository
-
importInProgress
protected volatile boolean importInProgress
-
-
Constructor Details
-
AbstractBulkFileSystemImportWebScript
public AbstractBulkFileSystemImportWebScript()
-
-
Method Details
-
getTargetNodeRef
protected NodeRef getTargetNodeRef(String targetNodeRefStr, String targetPath) throws FileNotFoundException - Throws:
FileNotFoundException
-
convertPathToNodeRef
- Throws:
FileNotFoundException
-
buildTextMessage
-
setFileFolderService
-
setRepository
-