Class ImportPost
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.module.org_alfresco_module_rm.script.ImportPost
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class ImportPost extends org.springframework.extensions.webscripts.DeclarativeWebScript
Imports an ACP file into a records management container.- Author:
- Gavin Cornwell
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.dictionary.DictionaryService
dictionaryService
protected FilePlanRoleService
filePlanRoleService
protected FilePlanService
filePlanService
protected org.alfresco.service.cmr.view.ImporterService
importerService
protected static String
MULTIPART_FORMDATA
protected org.alfresco.service.cmr.repository.NodeService
nodeService
protected static String
PARAM_ARCHIVE
protected static String
PARAM_DESTINATION
protected static String
PARAM_FILEDATA
protected static String
TEMP_FILE_PREFIX
-
Constructor Summary
Constructors Constructor Description ImportPost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
void
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the data dictionary servicevoid
setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
void
setFilePlanService(FilePlanService filePlanService)
void
setImporterService(org.alfresco.service.cmr.view.ImporterService importerService)
Sets the ImporterService to usevoid
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, 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
-
MULTIPART_FORMDATA
protected static final String MULTIPART_FORMDATA
- See Also:
- Constant Field Values
-
PARAM_DESTINATION
protected static final String PARAM_DESTINATION
- See Also:
- Constant Field Values
-
PARAM_ARCHIVE
protected static final String PARAM_ARCHIVE
- See Also:
- Constant Field Values
-
PARAM_FILEDATA
protected static final String PARAM_FILEDATA
- See Also:
- Constant Field Values
-
TEMP_FILE_PREFIX
protected static final String TEMP_FILE_PREFIX
- See Also:
- Constant Field Values
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
-
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
-
importerService
protected org.alfresco.service.cmr.view.ImporterService importerService
-
filePlanRoleService
protected FilePlanRoleService filePlanRoleService
-
filePlanService
protected FilePlanService filePlanService
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService
-
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the data dictionary service- Parameters:
dictionaryService
- The DictionaryService instance
-
setImporterService
public void setImporterService(org.alfresco.service.cmr.view.ImporterService importerService)
Sets the ImporterService to use- Parameters:
importerService
- The ImporterService
-
setFilePlanRoleService
public void setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
- Parameters:
filePlanRoleService
- file plan role service
-
setFilePlanService
public void setFilePlanService(FilePlanService filePlanService)
- Parameters:
filePlanService
- file plan service
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
- Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
-