Search in sources :

Example 6 with WSTransformerV2PK

use of com.amalto.workbench.webservices.WSTransformerV2PK in project tmdm-studio-se by Talend.

the class AllProcessesNamesHolder method getExternalInfo.

@Override
public String[] getExternalInfo() {
    if (service == null) {
        return new String[0];
    }
    List<WSTransformerV2PK> transformerPKs = null;
    try {
        // $NON-NLS-1$
        transformerPKs = service.getTransformerV2PKs(new WSGetTransformerV2PKs("")).getWsTransformerV2PK();
    } catch (Exception e) {
        return new String[0];
    }
    List<String> processes = new ArrayList<String>();
    if (transformerPKs != null) {
        for (WSTransformerV2PK pk : transformerPKs) {
            if (pk.getPk() != null && pk.getPk().length() > 0) {
                processes.add(pk.getPk());
            }
        }
    }
    return processes.toArray(new String[0]);
}
Also used : WSTransformerV2PK(com.amalto.workbench.webservices.WSTransformerV2PK) ArrayList(java.util.ArrayList) WSGetTransformerV2PKs(com.amalto.workbench.webservices.WSGetTransformerV2PKs)

Aggregations

WSTransformerV2PK (com.amalto.workbench.webservices.WSTransformerV2PK)6 TMDMService (com.amalto.workbench.webservices.TMDMService)3 WSDataCluster (com.amalto.workbench.webservices.WSDataCluster)3 WSDataClusterPK (com.amalto.workbench.webservices.WSDataClusterPK)3 WSDataModel (com.amalto.workbench.webservices.WSDataModel)3 WSDataModelPK (com.amalto.workbench.webservices.WSDataModelPK)3 WSGetDataCluster (com.amalto.workbench.webservices.WSGetDataCluster)3 WSGetDataModel (com.amalto.workbench.webservices.WSGetDataModel)3 WSGetMenu (com.amalto.workbench.webservices.WSGetMenu)3 WSGetRoutingRule (com.amalto.workbench.webservices.WSGetRoutingRule)3 WSGetStoredProcedure (com.amalto.workbench.webservices.WSGetStoredProcedure)3 WSGetTransformerV2 (com.amalto.workbench.webservices.WSGetTransformerV2)3 WSGetView (com.amalto.workbench.webservices.WSGetView)3 WSMenu (com.amalto.workbench.webservices.WSMenu)3 WSMenuPK (com.amalto.workbench.webservices.WSMenuPK)3 WSRoutingRule (com.amalto.workbench.webservices.WSRoutingRule)3 WSRoutingRulePK (com.amalto.workbench.webservices.WSRoutingRulePK)3 WSStoredProcedure (com.amalto.workbench.webservices.WSStoredProcedure)3 WSStoredProcedurePK (com.amalto.workbench.webservices.WSStoredProcedurePK)3 WSTransformerV2 (com.amalto.workbench.webservices.WSTransformerV2)3