Search in sources :

Example 16 with WSDataModelPK

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;
}
Also used : WSDataModel(com.amalto.workbench.webservices.WSDataModel) TMDMService(com.amalto.workbench.webservices.TMDMService) MDMServerDef(org.talend.mdm.repository.model.mdmmetadata.MDMServerDef) WSGetDataModel(com.amalto.workbench.webservices.WSGetDataModel) WSDataModelPK(com.amalto.workbench.webservices.WSDataModelPK)

Example 17 with WSDataModelPK

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;
}
Also used : WSDeleteDataModel(com.amalto.workbench.webservices.WSDeleteDataModel) WSDataModelPK(com.amalto.workbench.webservices.WSDataModelPK)

Aggregations

WSDataModelPK (com.amalto.workbench.webservices.WSDataModelPK)17 WSDataModel (com.amalto.workbench.webservices.WSDataModel)10 WSGetDataModel (com.amalto.workbench.webservices.WSGetDataModel)10 TMDMService (com.amalto.workbench.webservices.TMDMService)8 TreeObject (com.amalto.workbench.models.TreeObject)6 ArrayList (java.util.ArrayList)6 WSDataClusterPK (com.amalto.workbench.webservices.WSDataClusterPK)5 WSRegexDataModelPKs (com.amalto.workbench.webservices.WSRegexDataModelPKs)4 TreeParent (com.amalto.workbench.models.TreeParent)3 WSDataCluster (com.amalto.workbench.webservices.WSDataCluster)3 WSGetDataCluster (com.amalto.workbench.webservices.WSGetDataCluster)3 WSGetMenu (com.amalto.workbench.webservices.WSGetMenu)3 WSGetRoutingRule (com.amalto.workbench.webservices.WSGetRoutingRule)3 WSGetStoredProcedure (com.amalto.workbench.webservices.WSGetStoredProcedure)3 WSGetTransformerV2 (com.amalto.workbench.webservices.WSGetTransformerV2)3 WSGetView (com.amalto.workbench.webservices.WSGetView)3 WSMenu (com.amalto.workbench.webservices.WSMenu)3 WSMenuPK (com.amalto.workbench.webservices.WSMenuPK)3 WSRoutingRule (com.amalto.workbench.webservices.WSRoutingRule)3 WSRoutingRulePK (com.amalto.workbench.webservices.WSRoutingRulePK)3