use of com.amalto.workbench.webservices.WSDataModel in project tmdm-studio-se by Talend.
the class DataModelMainPage2 method updateSchemaToItem.
//
public Item updateSchemaToItem(Item item) {
WSDataModelE wsDataModelE = ((WSDataModelItem) item).getWsDataModel();
WSDataModel wsDataModel = (WSDataModel) xobject.getWsObject();
wsDataModelE.setXsdSchema(wsDataModel.getXsdSchema());
return item;
}
use of com.amalto.workbench.webservices.WSDataModel 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.WSDataModel in project tmdm-studio-se by Talend.
the class DataModelInteractiveHandler method convert.
@Override
public Object convert(Item item, MDMServerObject serverObj) {
WSDataModel dataModel = (WSDataModel) super.convert(item, serverObj);
IFile file = RepositoryResourceUtil.findReferenceFile(getRepositoryObjectType(), item, FILE_EXTENSION);
String schema = RepositoryResourceUtil.getTextFileContent(file, ENCODE);
dataModel.setXsdSchema(schema);
return dataModel;
}
Aggregations