Search in sources :

Example 1 with AbstractPluginDetail

use of org.talend.mdm.repository.core.service.ws.AbstractPluginDetail in project tmdm-studio-se by Talend.

the class RepositoryWebServiceAdapter method initTransformerPluginDetails.

private static void initTransformerPluginDetails() {
    if (transformerPluginMap == null) {
        transformerPluginMap = new LinkedHashMap<String, AbstractPluginDetail>();
        // $NON-NLS-1$
        String twoLettersLanguageCode = "en";
        addDetail(transformerPluginMap, new CodeProjectPluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new DumpAndGoPluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new GroovyPluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new RegexpPluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new ReplacePluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new RoutePluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new TISCallJobPluginDetail(twoLettersLanguageCode));
        ITriggerProcessService service = getTriggerProcessService();
        if (service != null) {
            service.addDetail(transformerPluginMap, twoLettersLanguageCode);
        }
        addDetail(transformerPluginMap, new XPathPluginDetail(twoLettersLanguageCode));
        addDetail(transformerPluginMap, new XSLTPluginDetail(twoLettersLanguageCode));
    }
}
Also used : GroovyPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.GroovyPluginDetail) XPathPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.XPathPluginDetail) CodeProjectPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.CodeProjectPluginDetail) XSLTPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.XSLTPluginDetail) DumpAndGoPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.DumpAndGoPluginDetail) RegexpPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.RegexpPluginDetail) AbstractPluginDetail(org.talend.mdm.repository.core.service.ws.AbstractPluginDetail) RoutePluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.RoutePluginDetail) TISCallJobPluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.TISCallJobPluginDetail) ReplacePluginDetail(org.talend.mdm.repository.core.service.wsimpl.transformplugin.ReplacePluginDetail)

Example 2 with AbstractPluginDetail

use of org.talend.mdm.repository.core.service.ws.AbstractPluginDetail in project tmdm-studio-se by Talend.

the class TransformerMainPage2 method initPlugin.

@Override
protected void initPlugin() {
    for (AbstractPluginDetail detail : RepositoryWebServiceAdapter.findAllTransformerPluginV2Details()) {
        String jndi = detail.getJNDIName();
        pluginsCombo.add(jndi);
        pluginDescriptions.put(jndi, detail.getDescription());
        // add input variables and output variables
        java.util.List<String> input = new LinkedList<String>();
        for (WSTransformerPluginV2VariableDescriptor v : detail.getInputVariableDescriptors()) {
            input.add(v.getVariableName());
        }
        inputVariablesMap.put(jndi, input);
        // 
        java.util.List<String> output = new LinkedList<String>();
        for (WSTransformerPluginV2VariableDescriptor v : detail.getOutputVariableDescriptors()) {
            output.add(v.getVariableName());
        }
        outputVariablesMap.put(jndi, output);
    }
}
Also used : AbstractPluginDetail(org.talend.mdm.repository.core.service.ws.AbstractPluginDetail) WSTransformerPluginV2VariableDescriptor(com.amalto.workbench.webservices.WSTransformerPluginV2VariableDescriptor) LinkedList(java.util.LinkedList)

Aggregations

AbstractPluginDetail (org.talend.mdm.repository.core.service.ws.AbstractPluginDetail)2 WSTransformerPluginV2VariableDescriptor (com.amalto.workbench.webservices.WSTransformerPluginV2VariableDescriptor)1 LinkedList (java.util.LinkedList)1 CodeProjectPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.CodeProjectPluginDetail)1 DumpAndGoPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.DumpAndGoPluginDetail)1 GroovyPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.GroovyPluginDetail)1 RegexpPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.RegexpPluginDetail)1 ReplacePluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.ReplacePluginDetail)1 RoutePluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.RoutePluginDetail)1 TISCallJobPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.TISCallJobPluginDetail)1 XPathPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.XPathPluginDetail)1 XSLTPluginDetail (org.talend.mdm.repository.core.service.wsimpl.transformplugin.XSLTPluginDetail)1