Class LocalCombinedConfig
java.lang.Object
org.alfresco.transform.client.registry.CombinedConfig
org.alfresco.repo.content.transform.LocalCombinedConfig
Extends the standard CombinedConfig to add in removal of overridden or invalid transforms.
- Author:
- adavis
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.transform.client.registry.CombinedConfig
CombinedConfig.TransformAndItsOrigin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Discards a transformer that is invalid (e.g.Methods inherited from class org.alfresco.transform.client.registry.CombinedConfig
addLocalConfig, addPassThroughTransformer, addRemoteConfig, register, transformerName
-
Constructor Details
-
LocalCombinedConfig
public LocalCombinedConfig(org.apache.commons.logging.Log log)
-
-
Method Details
-
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) Discards a transformer that is invalid (e.g. T-Engines with the same name, baseUrl has not been specified on a T-Engine transform) or overridden an earlier transform with the same name). If the overridden transform is from a T-Engine and the overriding transform is not a pipeline or a failover, we also copy thebaseUrlfrom the overridden transform so that the original T-Engine will still be called.- Overrides:
removeInvalidTransformerin classCombinedConfig- Parameters:
i- the current transform's index into combinedTransformers.combinedTransformers- the full list of transformers in the order they were read.registry- that wil hold the transforms.transformAndItsOrigin- the current combinedTransformers element.transformer- the current transformer.name- the current transformer's name.readFrom- where the current transformer was read from.isPipeline- if the current transform is a pipeline.isFailover- if the current transform is a failover.- Throws:
IllegalArgumentException- if the current transform has a problem and should be removed.
-