Class CombinedConfig


  • public class CombinedConfig
    extends org.alfresco.transform.client.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) followed by a call to register(TransformServiceRegistryImpl).

    Author:
    adavis
    • Constructor Detail

      • CombinedConfig

        public CombinedConfig​(org.apache.commons.logging.Log log)
    • Method Detail

      • addLocalConfig

        public boolean addLocalConfig​(String path)
      • addRemoteConfig

        public boolean addRemoteConfig​(List<String> urls,
                                       String remoteType)
      • isPassThroughTransformName

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

        public void addPassThroughTransformer​(MimetypeService mimetypeService)
        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