Search in sources :

Example 16 with WSDataClusterPK

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

the class DataClusterService method isExistDataCluster.

public boolean isExistDataCluster(TMDMService service, String dName) {
    WSExistsDataCluster wsExistsDataCluster = new WSExistsDataCluster(new WSDataClusterPK(dName));
    WSBoolean wsBoolean = service.existsDataCluster(wsExistsDataCluster);
    return wsBoolean.isTrue();
}
Also used : WSDataClusterPK(com.amalto.workbench.webservices.WSDataClusterPK) WSBoolean(com.amalto.workbench.webservices.WSBoolean) WSExistsDataCluster(com.amalto.workbench.webservices.WSExistsDataCluster)

Example 17 with WSDataClusterPK

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

the class DataProcessRuleFactory method createProcessRouterFromRemote.

/**
 * if using XML DB and the return records exceed limit, it will return null;
 *
 * @param port
 * @param dataClusterName
 * @return
 */
public static DataProcessRule createProcessRouterFromRemote(TMDMService service, String dataClusterName) {
    WSGetConceptsInDataCluster param = new WSGetConceptsInDataCluster(new WSDataClusterPK(dataClusterName));
    WSStringArray concepts = service.getConceptsInDataCluster(param);
    if (concepts != null) {
        DataProcessRule rule = new DataProcessRule();
        for (String concept : concepts.getStrings()) {
            rule.addNewEnityUnit(concept);
        }
        return rule;
    }
    return null;
}
Also used : WSStringArray(com.amalto.workbench.webservices.WSStringArray) WSDataClusterPK(com.amalto.workbench.webservices.WSDataClusterPK) WSGetConceptsInDataCluster(com.amalto.workbench.webservices.WSGetConceptsInDataCluster)

Aggregations

WSDataClusterPK (com.amalto.workbench.webservices.WSDataClusterPK)17 TMDMService (com.amalto.workbench.webservices.TMDMService)10 TreeObject (com.amalto.workbench.models.TreeObject)5 XtentisException (com.amalto.workbench.utils.XtentisException)5 WSDataCluster (com.amalto.workbench.webservices.WSDataCluster)5 WSDataModelPK (com.amalto.workbench.webservices.WSDataModelPK)5 WSGetDataCluster (com.amalto.workbench.webservices.WSGetDataCluster)5 WSStoredProcedure (com.amalto.workbench.webservices.WSStoredProcedure)5 WSView (com.amalto.workbench.webservices.WSView)5 TreeParent (com.amalto.workbench.models.TreeParent)4 WSGetView (com.amalto.workbench.webservices.WSGetView)4 WSRoutingRulePK (com.amalto.workbench.webservices.WSRoutingRulePK)4 WSStoredProcedurePK (com.amalto.workbench.webservices.WSStoredProcedurePK)4 InvocationTargetException (java.lang.reflect.InvocationTargetException)4 URL (java.net.URL)4 WSDataModel (com.amalto.workbench.webservices.WSDataModel)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