Class AbstractRemoteContentTransformer

  • All Implemented Interfaces:
    ContentWorker, ContentTransformer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
    Direct Known Subclasses:
    TikaPoweredContentTransformer

    @Deprecated
    public abstract class AbstractRemoteContentTransformer
    extends AbstractContentTransformer2
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    Optionally sends transformations to a remote transformer if a RemoteTransformerClient is set and the ".url" Alfresco global property is set.
    • Constructor Detail

      • AbstractRemoteContentTransformer

        public AbstractRemoteContentTransformer()
        Deprecated.
    • Method Detail

      • setRemoteTransformerClient

        public void setRemoteTransformerClient​(RemoteTransformerClient remoteTransformerClient)
        Deprecated.
        Sets the optional remote transformer client which will be used in preference to a local command if available.
        Parameters:
        remoteTransformerClient - may be null;
      • getLogger

        protected abstract org.apache.commons.logging.Log getLogger()
        Deprecated.
      • afterPropertiesSet

        public void afterPropertiesSet()
        Deprecated.
      • isAvailable

        public boolean isAvailable()
        Deprecated.
      • setAvailable

        protected void setAvailable​(boolean available)
        Deprecated.
      • transformInternal

        public void transformInternal​(org.alfresco.service.cmr.repository.ContentReader reader,
                                      org.alfresco.service.cmr.repository.ContentWriter writer,
                                      TransformationOptions options)
                               throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractContentTransformer2
        Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class.
        Specified by:
        transformInternal in class AbstractContentTransformer2
        Parameters:
        reader - the source of the content to transform
        writer - the target to which to write the transformed content
        options - a map of options to use when performing the transformation. The map will never be null.
        Throws:
        java.lang.Exception - exceptions will be handled by this class - subclasses can throw anything
      • transformLocal

        protected abstract void transformLocal​(org.alfresco.service.cmr.repository.ContentReader reader,
                                               org.alfresco.service.cmr.repository.ContentWriter writer,
                                               TransformationOptions options)
                                        throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • transformRemote

        protected abstract void transformRemote​(RemoteTransformerClient remoteTransformerClient,
                                                org.alfresco.service.cmr.repository.ContentReader reader,
                                                org.alfresco.service.cmr.repository.ContentWriter writer,
                                                TransformationOptions options,
                                                java.lang.String sourceMimetype,
                                                java.lang.String targetMimetype,
                                                java.lang.String sourceExtension,
                                                java.lang.String targetExtension,
                                                java.lang.String targetEncoding)
                                         throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception