use of com.amalto.workbench.webservices.WSDataModelPK in project tmdm-studio-se by Talend.
the class UserSecurityComboBoxDialogCellEditor method getSchemaFromServer.
private String getSchemaFromServer() {
String schema = null;
MDMServerDef serverDef = getServerDef();
if (isAccessible(serverDef)) {
TMDMService service = getService(serverDef);
WSDataModel wsDataModel = service.getDataModel(new WSGetDataModel(new WSDataModelPK(dataModelName)));
schema = wsDataModel.getXsdSchema();
}
return schema;
}
use of com.amalto.workbench.webservices.WSDataModelPK in project tmdm-studio-se by Talend.
the class DataModelInteractiveHandler method doRemove.
@Override
public boolean doRemove(TMDMService service, AbstractDeployCommand cmd) throws XtentisException {
WSDataModelPK pk = new WSDataModelPK();
String name = cmd.getObjName();
pk.setPk(name);
service.deleteDataModel(new WSDeleteDataModel(pk));
TreeObjectUtil.deleteSpecificationFromAttachedRole(service, name, EXtentisObjects.DataMODEL.getName());
return true;
}
Aggregations