Search in sources :

Example 1 with WSMDMConfig

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

the class RepositoryMDMServerInfoHolder method getExternalInfo.

@Override
public WSMDMConfig[] getExternalInfo() {
    List<MDMServerDef> allServerDefs = ServerDefService.getAllServerDefs(true);
    WSMDMConfig[] configs = new WSMDMConfig[allServerDefs.size()];
    int i = 0;
    for (MDMServerDef def : allServerDefs) {
        configs[i] = new WSMDMConfig();
        configs[i].setServerName(def.getHost());
        configs[i].setServerPort(def.getPort());
        configs[i].setUserName(def.getUser());
        configs[i].setPassword(def.getPasswd());
        configs[i].setXdbID(def.getName());
        i++;
    }
    return configs;
}
Also used : WSMDMConfig(com.amalto.workbench.webservices.WSMDMConfig) MDMServerDef(org.talend.mdm.repository.model.mdmmetadata.MDMServerDef)

Aggregations

WSMDMConfig (com.amalto.workbench.webservices.WSMDMConfig)1 MDMServerDef (org.talend.mdm.repository.model.mdmmetadata.MDMServerDef)1