Class CombinedConfig
java.lang.Object
org.alfresco.transform.client.registry.CombinedConfig
- Direct Known Subclasses:
LocalCombinedConfig
This class reads multiple T-Engine config and local files and registers them all with a registry as if they were all
in one file. Transform options are shared between all sources.
The caller should make calls to addRemoteConfig(List, String) and addLocalConfig(String) followed
by a call to register(TransformServiceRegistryImpl).
- Author:
- adavis
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLocalConfig(String path) voidaddPassThroughTransformer(MimetypeService mimetypeService) Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" from selected text based types.booleanaddRemoteConfig(List<String> urls, String remoteType) voidregister(TransformServiceRegistryImpl registry) protected intremoveInvalidTransformer(int i, List<CombinedConfig.TransformAndItsOrigin> combinedTransformers, TransformServiceRegistryImpl registry, CombinedConfig.TransformAndItsOrigin transformAndItsOrigin, org.alfresco.transform.client.model.config.Transformer transformer, String name, String readFrom, boolean isPipeline, boolean isFailover) protected static StringtransformerName(String name)
-
Constructor Details
-
CombinedConfig
public CombinedConfig(org.apache.commons.logging.Log log)
-
-
Method Details
-
addLocalConfig
-
addRemoteConfig
-
addPassThroughTransformer
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
-
removeInvalidTransformer
protected int removeInvalidTransformer(int i, List<CombinedConfig.TransformAndItsOrigin> combinedTransformers, TransformServiceRegistryImpl registry, CombinedConfig.TransformAndItsOrigin transformAndItsOrigin, org.alfresco.transform.client.model.config.Transformer transformer, String name, String readFrom, boolean isPipeline, boolean isFailover) -
transformerName
-