public class TransformActionExecuter extends ActionExecuterAbstractBase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERR_OVERWRITE |
static java.lang.String |
NAME |
static java.lang.String |
PARAM_ASSOC_QNAME |
static java.lang.String |
PARAM_ASSOC_TYPE_QNAME |
static java.lang.String |
PARAM_DESTINATION_FOLDER |
static java.lang.String |
PARAM_MIME_TYPE |
static java.lang.String |
PARAM_OVERWRITE_COPY |
actionDefinition, applicableTypes, publicActionDISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
TransformActionExecuter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(java.util.List paramList)
Add parameter definitions
|
protected void |
doTransform(Action ruleAction,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.ContentReader contentReader,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.cmr.repository.ContentWriter contentWriter)
Executed in a new transaction so that failures don't cause the entire transaction to rollback.
|
protected void |
executeImpl(Action ruleAction,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action implementation
|
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Set the service to determine check-in and check-out status
|
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setCopyService(CopyService copyService)
Set the copy service
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Set the mime type service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
static java.lang.String |
transformName(org.alfresco.service.cmr.repository.MimetypeService mimetypeService,
java.lang.String original,
java.lang.String newMimetype,
boolean alwaysAdd)
Transform a name from original extension to new extension, if appropriate.
|
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatuscheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNamepublic static final java.lang.String ERR_OVERWRITE
public static final java.lang.String NAME
public static final java.lang.String PARAM_MIME_TYPE
public static final java.lang.String PARAM_DESTINATION_FOLDER
public static final java.lang.String PARAM_ASSOC_TYPE_QNAME
public static final java.lang.String PARAM_ASSOC_QNAME
public static final java.lang.String PARAM_OVERWRITE_COPY
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
setDictionaryService in class ActionExecuterAbstractBasedictionaryService - the dictionary servicepublic void setContentService(ContentService contentService)
public void setCopyService(CopyService copyService)
protected void addParameterDefinitions(java.util.List paramList)
addParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions listprotected void executeImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBaseexecuteImpl in class ActionExecuterAbstractBaseruleAction - the actionactionedUponNodeRef - the actioned upon nodeorg.alfresco.repo.action.executer.ActionExecuterAbstractBase#executeImpl(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef)protected void doTransform(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.ContentReader contentReader, org.alfresco.service.cmr.repository.NodeRef destinationNodeRef, org.alfresco.service.cmr.repository.ContentWriter contentWriter)
public static java.lang.String transformName(org.alfresco.service.cmr.repository.MimetypeService mimetypeService,
java.lang.String original,
java.lang.String newMimetype,
boolean alwaysAdd)
mimetypeService - the mimetype serviceoriginal - the original namenewMimetype - the new mime typealwaysAdd - if the name has no extension, then add the new oneCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.