|
|||||||||
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.TransformActionExecuter
public class TransformActionExecuter
Transfor action executer
Field Summary | |
---|---|
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
|
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 | |
---|---|
TransformActionExecuter()
|
Method Summary | |
---|---|
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. |
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 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
Constructor Detail |
---|
public TransformActionExecuter()
Method Detail |
---|
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)
public void setContentService(ContentService contentService)
public void setCopyService(CopyService copyService)
protected void addParameterDefinitions(java.util.List paramList)
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listprotected 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.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 one
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |