Class TransformActionExecuter

    • Field Detail

      • ERR_OVERWRITE

        public static final java.lang.String ERR_OVERWRITE
        Deprecated.
        See Also:
        Constant Field Values
      • PARAM_MIME_TYPE

        public static final java.lang.String PARAM_MIME_TYPE
        Deprecated.
        See Also:
        Constant Field Values
      • PARAM_DESTINATION_FOLDER

        public static final java.lang.String PARAM_DESTINATION_FOLDER
        Deprecated.
        See Also:
        Constant Field Values
      • PARAM_ASSOC_TYPE_QNAME

        public static final java.lang.String PARAM_ASSOC_TYPE_QNAME
        Deprecated.
        See Also:
        Constant Field Values
      • PARAM_ASSOC_QNAME

        public static final java.lang.String PARAM_ASSOC_QNAME
        Deprecated.
        See Also:
        Constant Field Values
      • PARAM_OVERWRITE_COPY

        public static final java.lang.String PARAM_OVERWRITE_COPY
        Deprecated.
        See Also:
        Constant Field Values
      • options

        @Deprecated
        protected TransformationOptions options
        Deprecated.
        Properties (needed to avoid changing method signatures)
    • Constructor Detail

      • TransformActionExecuter

        public TransformActionExecuter()
        Deprecated.
    • Method Detail

      • setMimetypeService

        public void setMimetypeService​(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
        Deprecated.
        Set the mime type service
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.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​(org.alfresco.service.cmr.dictionary.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
      • newTransformationOptions

        protected TransformationOptions newTransformationOptions​(Action ruleAction,
                                                                 org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
        Deprecated.
      • doTransform

        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)
        Deprecated.
        Executed in a new transaction so that failures don't cause the entire transaction to rollback.
      • transformName

        public static java.lang.String transformName​(org.alfresco.service.cmr.repository.MimetypeService mimetypeService,
                                                     java.lang.String original,
                                                     java.lang.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,
                                      java.lang.Throwable t,
                                      java.lang.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