Class LocalTransformServiceRegistry

  • All Implemented Interfaces:
    org.alfresco.transform.client.registry.TransformServiceRegistry, org.springframework.beans.factory.InitializingBean

    public class LocalTransformServiceRegistry
    extends TransformServiceRegistryImpl
    implements org.springframework.beans.factory.InitializingBean
    Implements TransformServiceRegistry providing a mechanism of validating if a local transformation (based on LocalTransform request is supported.
    Author:
    adavis
    • Constructor Detail

      • LocalTransformServiceRegistry

        public LocalTransformServiceRegistry()
    • Method Detail

      • setPipelineConfigDir

        public void setPipelineConfigDir​(String pipelineConfigDir)
      • getPipelineConfigDir

        public String getPipelineConfigDir()
      • setProperties

        public void setProperties​(Properties properties)
        The Alfresco global properties.
      • setMimetypeService

        public void setMimetypeService​(MimetypeService mimetypeService)
      • setTransformerDebug

        public void setTransformerDebug​(TransformerDebug transformerDebug)
      • setStrictMimeTypeCheck

        public void setStrictMimeTypeCheck​(boolean strictMimeTypeCheck)
      • setRetryTransformOnDifferentMimeType

        public void setRetryTransformOnDifferentMimeType​(boolean retryTransformOnDifferentMimeType)
      • register

        protected void register​(org.alfresco.transform.client.model.config.Transformer transformer,
                                Map<String,​Set<org.alfresco.transform.client.model.config.TransformOption>> transformOptions,
                                String baseUrl,
                                String readFrom)
        Overrides:
        register in class org.alfresco.transform.client.registry.AbstractTransformRegistry
      • getProperty

        protected String getProperty​(String name,
                                     String defaultValue)
        Gets a property from an alfresco global property but falls back to a System property with the same name to allow dynamic creation of transformers without having to have an AMP to add the alfresco global property.
      • isSupported

        public boolean isSupported​(org.alfresco.transform.client.model.config.CoreFunction function,
                                   LocalTransform transform)
        Returns true if the function is supported by the transform. Not all transforms are able to support all functionality, as newer features may have been introduced into the core t-engine code since it was released.
        Parameters:
        function - to be checked.
        transform - the local transform.
        Returns:
        true is supported, false otherwise.