Search in sources :

Example 1 with WSPutDataCluster

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

the class DataContainerInteractiveHandler method doDeployWSObject.

@Override
public boolean doDeployWSObject(TMDMService service, Object wsObj) {
    if (wsObj != null) {
        WSPutDataCluster wsPutDataCluster = new WSPutDataCluster((WSDataCluster) wsObj);
        service.putDataCluster(wsPutDataCluster);
        return true;
    }
    return false;
}
Also used : WSPutDataCluster(com.amalto.workbench.webservices.WSPutDataCluster)

Example 2 with WSPutDataCluster

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

the class DataClusterService method createDataCluster.

public boolean createDataCluster(TMDMService service, String dName) {
    try {
        // $NON-NLS-1$ //$NON-NLS-2$
        WSPutDataCluster wsDataCluster = new WSPutDataCluster(new WSDataCluster(dName, "", ""));
        service.putDataCluster(wsDataCluster);
        return true;
    } catch (WebServiceException ex) {
        log.error(ex.getMessage(), ex);
    }
    return false;
}
Also used : WebServiceException(javax.xml.ws.WebServiceException) WSPutDataCluster(com.amalto.workbench.webservices.WSPutDataCluster) WSDataCluster(com.amalto.workbench.webservices.WSDataCluster)

Aggregations

WSPutDataCluster (com.amalto.workbench.webservices.WSPutDataCluster)2 WSDataCluster (com.amalto.workbench.webservices.WSDataCluster)1 WebServiceException (javax.xml.ws.WebServiceException)1