Class TransformActionExecuter

All Implemented Interfaces:
ActionExecuter, LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
ImageTransformActionExecuter

@Deprecated public class TransformActionExecuter extends ActionExecuterAbstractBase
Deprecated.
Transfor action executer
Author:
Roy Wetherall
  • Field Details

  • Constructor Details

    • TransformActionExecuter

      public TransformActionExecuter()
      Deprecated.
  • Method Details

    • setMimetypeService

      public void setMimetypeService(MimetypeService mimetypeService)
      Deprecated.
      Set the mime type service
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Deprecated.
      Set the node service
    • setCheckOutCheckInService

      public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
      Deprecated.
      Set the service to determine check-in and check-out status
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
      Deprecated.
      Set the dictionary service
      Overrides:
      setDictionaryService in class ActionExecuterAbstractBase
      Parameters:
      dictionaryService - the dictionary service
    • setContentService

      public void setContentService(ContentService contentService)
      Deprecated.
      Set the content service
    • setCopyService

      public void setCopyService(CopyService copyService)
      Deprecated.
      Set the copy service
    • setSynchronousTransformClient

      public void setSynchronousTransformClient(SynchronousTransformClient synchronousTransformClient)
      Deprecated.
    • setConverter

      public void setConverter(TransformationOptionsConverter converter)
      Deprecated.
    • addParameterDefinitions

      protected void addParameterDefinitions(List<ParameterDefinition> paramList)
      Deprecated.
      Add parameter definitions
      Specified by:
      addParameterDefinitions in class ParameterizedItemAbstractBase
      Parameters:
      paramList - the parameter definitions list
    • executeImpl

      protected void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef)
      Deprecated.
      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:
    • newTransformationOptions

      protected TransformationOptions newTransformationOptions(Action ruleAction, NodeRef sourceNodeRef)
      Deprecated.
    • doTransform

      protected void doTransform(Action ruleAction, NodeRef sourceNodeRef, ContentReader contentReader, NodeRef destinationNodeRef, ContentWriter contentWriter)
      Deprecated.
      Executed in a new transaction so that failures don't cause the entire transaction to rollback.
    • transformName

      public static String transformName(MimetypeService mimetypeService, String original, String newMimetype, boolean alwaysAdd)
      Deprecated.
      Transform a name from original extension to new extension, if appropriate. If the original name seems to end with a reasonable file extension, then the name will be transformed such that the old extension is replaced with the new. Otherwise the name will be returned unaltered.

      The original name will be deemed to have a reasonable extension if there are one or more characters after the (required) final dot, none of which are spaces.

      Parameters:
      mimetypeService - the mimetype service
      original - the original name
      newMimetype - the new mime type
      alwaysAdd - if the name has no extension, then add the new one
      Returns:
      name with new extension as appropriate for the mimetype
    • onLogException

      public boolean onLogException(org.apache.commons.logging.Log logger, Throwable t, String message)
      Deprecated.
      Description copied from interface: LoggingAwareExecuter
      Optional logging of errors callback for the action executer for the cases when the error might be ignored or shown in a different manner for the action
      Specified by:
      onLogException in interface LoggingAwareExecuter
      Overrides:
      onLogException in class ActionExecuterAbstractBase
      Parameters:
      logger - the logger
      t - the exception thrown
      message - the proposed message that will be logged
      Returns:
      true if it was handled, false for default handling