public class ImporterActionExecuter extends ActionExecuterAbstractBase
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_CONTAINS_SUSPICIOUS_PATHS_ERROR |
static String |
NAME |
static String |
PARAM_DESTINATION_FOLDER |
static String |
PARAM_ENCODING |
actionDefinition, applicableTypes, publicActionadhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
ImporterActionExecuter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Adds the parameter definitions to the list
|
static void |
deleteDir(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,
String extractDir)
Extract the file and folder structure of a ZIP file into the specified directory
|
boolean |
isHighByteZip() |
void |
setContentService(ContentService contentService)
Sets the ContentService to use
|
void |
setFileFolderService(FileFolderService fileFolderService)
Sets the FileFolderService to use
|
void |
setHighByteZip(boolean highByteZip) |
void |
setImporterService(ImporterService importerService)
Sets the ImporterService to use
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the NodeService to use
|
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatuscheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringsetBeanNamepublic static final String NAME
public static final String PARAM_ENCODING
public static final String PARAM_DESTINATION_FOLDER
public static final String ARCHIVE_CONTAINS_SUSPICIOUS_PATHS_ERROR
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 boolean isHighByteZip()
public void setHighByteZip(boolean highByteZip)
highByteZip - the encoding switch for high-byte ZIP filenames to setpublic void executeImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBaseexecuteImpl in class ActionExecuterAbstractBaseruleAction - the actionactionedUponNodeRef - the actioned upon nodeActionExecuter.execute(Action, NodeRef)protected void addParameterDefinitions(List<ParameterDefinition> paramList)
ParameterizedItemAbstractBaseaddParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions listParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)public static void extractFile(org.apache.commons.compress.archivers.zip.ZipFile archive,
String extractDir)
archive - The ZIP archive to extractextractDir - The directory to extract intopublic static void deleteDir(File dir)
dir - directory to deleteCopyright © 2005–2018 Alfresco Software. All rights reserved.