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
  • Field Details

  • 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)