Class ImporterActionExecuter
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.action.executer.ImporterActionExecuter
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Importer action executor
- Author:
- gavinc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Adds the parameter definitions to the liststatic voidRecursively delete a dir of files and directoriesvoidexecuteImpl(Action ruleAction, NodeRef actionedUponNodeRef) Execute the action implementationstatic voidextractFile(org.apache.commons.compress.archivers.zip.ZipFile archive, String extractDir) Extract the file and folder structure of a ZIP file into the specified directorybooleanvoidsetContentService(ContentService contentService) Sets the ContentService to usevoidsetFileFolderService(FileFolderService fileFolderService) Sets the FileFolderService to usevoidsetHighByteZip(boolean highByteZip) voidsetImporterService(ImporterService importerService) Sets the ImporterService to usevoidsetNodeService(NodeService nodeService) Sets the NodeService to useMethods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatusMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Field Details
-
NAME
- See Also:
-
PARAM_ENCODING
- See Also:
-
PARAM_DESTINATION_FOLDER
- See Also:
-
ARCHIVE_CONTAINS_SUSPICIOUS_PATHS_ERROR
- See Also:
-
-
Constructor Details
-
ImporterActionExecuter
public ImporterActionExecuter()
-
-
Method Details
-
setImporterService
Sets the ImporterService to use- Parameters:
importerService- The ImporterService
-
setNodeService
Sets the NodeService to use- Parameters:
nodeService- The NodeService
-
setContentService
Sets the ContentService to use- Parameters:
contentService- The ContentService
-
setFileFolderService
Sets the FileFolderService to use- Parameters:
fileFolderService- The FileFolderService
-
isHighByteZip
public boolean isHighByteZip()- Returns:
- the highByteZip encoding switch
-
setHighByteZip
public void setHighByteZip(boolean highByteZip) - Parameters:
highByteZip- the encoding switch for high-byte ZIP filenames to set
-
executeImpl
Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
ruleAction- the actionactionedUponNodeRef- the actioned upon node- See Also:
-
addParameterDefinitions
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list- See Also:
-
extractFile
public 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- Parameters:
archive- The ZIP archive to extractextractDir- The directory to extract into
-
deleteDir
Recursively delete a dir of files and directories- Parameters:
dir- directory to delete
-