use of com.serotonin.m2m2.web.dwr.util.DwrPermission in project ma-core-public by infiniteautomation.
the class DataPointEditDwr method updateMultistateStateDetector.
@DwrPermission(user = true)
public void updateMultistateStateDetector(int pedId, String xid, String alias, int state, int duration, int durationType, int alarmLevel) {
MultistateStateDetectorVO ped = (MultistateStateDetectorVO) getEventDetector(pedId);
ped.setXid(xid);
ped.setName(alias);
ped.setState(state);
ped.setDuration(duration);
ped.setDurationType(durationType);
ped.setAlarmLevel(alarmLevel);
}
use of com.serotonin.m2m2.web.dwr.util.DwrPermission in project ma-core-public by infiniteautomation.
the class DataPointEditDwr method updateAlphanumericStateDetector.
@DwrPermission(user = true)
public void updateAlphanumericStateDetector(int pedId, String xid, String alias, String state, int duration, int durationType, int alarmLevel) {
AlphanumericStateDetectorVO ped = (AlphanumericStateDetectorVO) getEventDetector(pedId);
ped.setXid(xid);
ped.setName(alias);
ped.setState(state);
ped.setDuration(duration);
ped.setDurationType(durationType);
ped.setAlarmLevel(alarmLevel);
}
use of com.serotonin.m2m2.web.dwr.util.DwrPermission in project ma-core-public by infiniteautomation.
the class DataPointEditDwr method updateBinaryStateDetector.
@DwrPermission(user = true)
public void updateBinaryStateDetector(int pedId, String xid, String alias, boolean state, int duration, int durationType, int alarmLevel) {
BinaryStateDetectorVO ped = (BinaryStateDetectorVO) getEventDetector(pedId);
ped.setXid(xid);
ped.setName(alias);
ped.setState(state);
ped.setDuration(duration);
ped.setDurationType(durationType);
ped.setAlarmLevel(alarmLevel);
}
use of com.serotonin.m2m2.web.dwr.util.DwrPermission in project ma-core-public by infiniteautomation.
the class DataPointEditDwr method updateNegativeCusumDetector.
@DwrPermission(user = true)
public void updateNegativeCusumDetector(int pedId, String xid, String alias, double limit, double weight, int duration, int durationType, int alarmLevel) {
NegativeCusumDetectorVO ped = (NegativeCusumDetectorVO) getEventDetector(pedId);
ped.setXid(xid);
ped.setName(alias);
ped.setLimit(limit);
ped.setWeight(weight);
ped.setDuration(duration);
ped.setDurationType(durationType);
ped.setAlarmLevel(alarmLevel);
}
use of com.serotonin.m2m2.web.dwr.util.DwrPermission in project ma-core-public by infiniteautomation.
the class DataSourceDwr method getCopy.
@DwrPermission(user = true)
@Override
public ProcessResult getCopy(int id) {
// Get a Full Copy
DataSourceVO<?> vo = dao.getFull(id);
ProcessResult response = new ProcessResult();
String name = StringUtils.abbreviate(TranslatableMessage.translate(getTranslations(), "common.copyPrefix", vo.getName()), 40);
// Setup the Copy
DataSourceVO<?> copy = vo.copy();
copy.setId(Common.NEW_ID);
copy.setName(name);
copy.setXid(dao.generateUniqueXid());
response.addData("vo", copy);
return response;
}
Aggregations