use of org.pentaho.platform.dataaccess.datasource.wizard.service.impl.utils.LegacyDatasourceConverter in project data-access by pentaho.
the class MultitableDatasourceService method deSerializeModelState.
public MultiTableDatasourceDTO deSerializeModelState(String dtoStr) throws DatasourceServiceException {
try {
XStream xs = new XStream();
xs.registerConverter(new LegacyDatasourceConverter());
return (MultiTableDatasourceDTO) xs.fromXML(dtoStr);
} catch (Exception e) {
logger.error(e);
throw new DatasourceServiceException(e);
}
}
Aggregations