Class CombinedConfig

java.lang.Object
org.alfresco.transform.registry.CombinedTransformConfig
org.alfresco.transform.registry.CombinedConfig

public class CombinedConfig extends org.alfresco.transform.registry.CombinedTransformConfig
This class reads multiple T-Engine config and local files and registers as if they were all in one file. Transform options are shared between all sources.

The caller should make calls to addRemoteConfig(List, String), addLocalConfig(String) or CombinedTransformConfig.addTransformConfig(TransformConfig, String, String, AbstractTransformRegistry) followed by a call to register(TransformServiceRegistryImpl).

Author:
adavis
  • Constructor Summary

    Constructors
    Constructor
    Description
    CombinedConfig(org.apache.commons.logging.Log log, org.alfresco.transform.registry.AbstractTransformRegistry registry, org.alfresco.httpclient.HttpClientConfig httpClientConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    addPassThroughTransformer(MimetypeService mimetypeService, org.alfresco.transform.registry.AbstractTransformRegistry registry)
    Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" from selected text based types.
    boolean
    addRemoteConfig(List<String> urls, String remoteType)
     
    protected boolean
     
    void
     

    Methods inherited from class org.alfresco.transform.registry.CombinedTransformConfig

    addTransformConfig, addTransformConfig, buildTransformConfig, clear, combineAndRegister, combineTransformerConfig, getTransformerByNameMap, registerCombinedTransformers, transformerCount, transformerName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CombinedConfig

      public CombinedConfig(org.apache.commons.logging.Log log, org.alfresco.transform.registry.AbstractTransformRegistry registry, org.alfresco.httpclient.HttpClientConfig httpClientConfig)
  • Method Details

    • addLocalConfig

      public boolean addLocalConfig(String path)
    • addRemoteConfig

      public boolean addRemoteConfig(List<String> urls, String remoteType) throws IOException
      Throws:
      IOException
    • isPassThroughTransformName

      protected boolean isPassThroughTransformName(String name)
      Overrides:
      isPassThroughTransformName in class org.alfresco.transform.registry.CombinedTransformConfig
    • addPassThroughTransformer

      public void addPassThroughTransformer(MimetypeService mimetypeService, org.alfresco.transform.registry.AbstractTransformRegistry registry)
      Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" from selected text based types.
      Parameters:
      mimetypeService - to find all the mimetypes
    • register

      public void register(TransformServiceRegistryImpl registry)