org.alfresco.repo.action.executer
Class ImporterActionExecuter

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.executer.ActionExecuterAbstractBase
              extended by org.alfresco.repo.action.executer.ImporterActionExecuter
All Implemented Interfaces:
ActionExecuter, org.springframework.beans.factory.BeanNameAware

public class ImporterActionExecuter
extends ActionExecuterAbstractBase

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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

PARAM_ENCODING

public static final java.lang.String PARAM_ENCODING
See Also:
Constant Field Values

PARAM_DESTINATION_FOLDER

public static final java.lang.String PARAM_DESTINATION_FOLDER
See Also:
Constant Field Values
Constructor Detail

ImporterActionExecuter

public ImporterActionExecuter()
Method Detail

setImporterService

public void setImporterService(ImporterService importerService)
Sets the ImporterService to use

Parameters:
importerService - The ImporterService

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the NodeService to use

Parameters:
nodeService - The NodeService

setContentService

public void setContentService(ContentService contentService)
Sets the ContentService to use

Parameters:
contentService - The ContentService

setFileFolderService

public void setFileFolderService(FileFolderService fileFolderService)
Sets the FileFolderService to use

Parameters:
fileFolderService - The FileFolderService

executeImpl

public void executeImpl(Action ruleAction,
                        org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionExecuterAbstractBase
Execute the action implementation

Specified by:
executeImpl in class ActionExecuterAbstractBase
Parameters:
ruleAction - the action
actionedUponNodeRef - the actioned upon node
See Also:
org.alfresco.repo.action.executer.ActionExecuter#execute(org.alfresco.repo.ref.NodeRef, org.alfresco.repo.ref.NodeRef)

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Description copied from class: ParameterizedItemAbstractBase
Adds the parameter definitions to the list

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list
See Also:
ParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)

extractFile

public 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

Parameters:
archive - The ZIP archive to extract
extractDir - The directory to extract into

deleteDir

public static void deleteDir(java.io.File dir)
Recursively delete a dir of files and directories

Parameters:
dir - directory to delete


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.