Class CombinedConfig
- java.lang.Object
-
- org.alfresco.transform.client.model.config.CombinedConfig
-
public class CombinedConfig extends java.lang.ObjectThis class recreates the json format used in ACS 6.1 where we just had an array of transformers and each transformer has a list of node options. The idea of this code is that it replaces the references with the actual node options that have been separated out into their own section.The T-Router and T-Engines return the format with the node option separated into their own section. Pipeline definitions used by the LocalTransformServiceRegistry may use node reference options defined in the json returned by T-Engines. with the actual definitions from the node options reference section. It also combines multiple json sources into a single jsonNode structure that can be parsed as before.
-
-
Constructor Summary
Constructors Constructor Description CombinedConfig(org.apache.commons.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocalConfig(java.lang.String path)booleanaddRemoteConfig(java.util.List<java.lang.String> urls, java.lang.String remoteType)java.util.List<org.alfresco.transform.client.model.config.CombinedConfig.TransformAndItsOrigin>getTransforms()voidregister(TransformServiceRegistryImpl.Data data, TransformServiceRegistryImpl registry)
-
-
-
Method Detail
-
addRemoteConfig
public boolean addRemoteConfig(java.util.List<java.lang.String> urls, java.lang.String remoteType)
-
addLocalConfig
public void addLocalConfig(java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
register
public void register(TransformServiceRegistryImpl.Data data, TransformServiceRegistryImpl registry) throws java.io.IOException
- Throws:
java.io.IOException
-
getTransforms
public java.util.List<org.alfresco.transform.client.model.config.CombinedConfig.TransformAndItsOrigin> getTransforms() throws java.io.IOException- Throws:
java.io.IOException
-
-