|
|||||||||
| 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
Error messages |
static java.lang.String |
NAME
Action constants |
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 |
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, getQueueName, init, setApplicableTypes, setPublicAction, setQueueName |
| 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)
mimetypeService - the mime type servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - set the node servicepublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary servicepublic void setContentService(ContentService contentService)
contentService - the content servicepublic void setCopyService(CopyService copyService)
copyService - the copy serviceprotected void addParameterDefinitions(java.util.List paramList)
addParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions list
protected void executeImpl(Action ruleAction,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBase
executeImpl 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 one
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||