Search in sources :

Example 1 with MBusDataSourceVO

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);
}
Also used : MBusDataSourceVO(com.serotonin.m2m2.mbus.MBusDataSourceVO) DwrPermission(com.serotonin.m2m2.web.dwr.util.DwrPermission)

Aggregations

MBusDataSourceVO (com.serotonin.m2m2.mbus.MBusDataSourceVO)1 DwrPermission (com.serotonin.m2m2.web.dwr.util.DwrPermission)1