use of com.serotonin.m2m2.mbus.MBusDataSourceVO in project ma-modules-public by infiniteautomation.
the class MBusEditDwr method saveMBusDataSource.
//
//
// MBus stuff
//
@DwrPermission(user = true)
public ProcessResult saveMBusDataSource(String name, String xid, Connection connection, int updatePeriodType, int updatePeriods, boolean quantize) {
MBusDataSourceVO ds = (MBusDataSourceVO) Common.getUser().getEditDataSource();
ds.setXid(xid);
ds.setName(name);
ds.setConnection(connection);
ds.setUpdatePeriodType(updatePeriodType);
ds.setUpdatePeriods(updatePeriods);
ds.setQuantize(quantize);
return tryDataSourceSave(ds);
}
Aggregations