|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.action.executer.ImporterActionExecuter
public class ImporterActionExecuter
Importer action executor
Field Summary | |
---|---|
static java.lang.String |
NAME
|
static java.lang.String |
PARAM_DESTINATION_FOLDER
|
static java.lang.String |
PARAM_ENCODING
|
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
---|
actionDefinition, applicableTypes, publicAction |
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
---|
DISPLAY_LABEL, runtimeActionService |
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
---|
name |
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter |
---|
PARAM_RESULT |
Constructor Summary | |
---|---|
ImporterActionExecuter()
|
Method Summary | |
---|---|
protected void |
addParameterDefinitions(java.util.List paramList)
Adds the parameter definitions to the list |
static void |
deleteDir(java.io.File dir)
Recursively delete a dir of files and directories |
void |
executeImpl(Action ruleAction,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action implementation |
static void |
extractFile(org.apache.commons.compress.archivers.zip.ZipFile archive,
java.lang.String extractDir)
Extract the file and folder structure of a ZIP file into the specified directory |
void |
setContentService(ContentService contentService)
Sets the ContentService to use |
void |
setFileFolderService(FileFolderService fileFolderService)
Sets the FileFolderService to use |
void |
setImporterService(ImporterService importerService)
Sets the ImporterService to use |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the NodeService to use |
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
---|
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus |
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
---|
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString |
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
---|
setBeanName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
public static final java.lang.String PARAM_ENCODING
public static final java.lang.String PARAM_DESTINATION_FOLDER
Constructor Detail |
---|
public ImporterActionExecuter()
Method Detail |
---|
public void setImporterService(ImporterService importerService)
importerService
- The ImporterServicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The NodeServicepublic void setContentService(ContentService contentService)
contentService
- The ContentServicepublic void setFileFolderService(FileFolderService fileFolderService)
fileFolderService
- The FileFolderServicepublic void executeImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBase
executeImpl
in class ActionExecuterAbstractBase
ruleAction
- the actionactionedUponNodeRef
- the actioned upon nodeorg.alfresco.repo.action.executer.ActionExecuter#execute(org.alfresco.repo.ref.NodeRef, org.alfresco.repo.ref.NodeRef)
protected void addParameterDefinitions(java.util.List paramList)
ParameterizedItemAbstractBase
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)
public static void extractFile(org.apache.commons.compress.archivers.zip.ZipFile archive, java.lang.String extractDir)
archive
- The ZIP archive to extractextractDir
- The directory to extract intopublic static void deleteDir(java.io.File dir)
dir
- directory to delete
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |