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();
}
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;
}
Aggregations