use of com.infiniteautomation.mango.rest.latest.model.permissions.MangoPermissionModel in project ma-modules-public by infiniteautomation.
the class AbstractEventDetectorModel method fromVO.
@Override
public void fromVO(T vo) {
super.fromVO(vo);
this.readPermission = new MangoPermissionModel(vo.getReadPermission());
this.editPermission = new MangoPermissionModel(vo.getEditPermission());
this.data = vo.getData();
this.sourceId = vo.getSourceId();
this.description = vo.getDescription();
this.rtnApplicable = vo.isRtnApplicable();
this.alarmLevel = vo.getAlarmLevel();
this.sourceTypeName = vo.getDetectorSourceType();
this.handlerXids = vo.getEventHandlerXids();
}
use of com.infiniteautomation.mango.rest.latest.model.permissions.MangoPermissionModel in project ma-modules-public by infiniteautomation.
the class AbstractEventHandlerModel method fromVO.
@Override
public void fromVO(T vo) {
super.fromVO(vo);
this.disabled = vo.isDisabled();
this.readPermission = new MangoPermissionModel(vo.getReadPermission());
this.editPermission = new MangoPermissionModel(vo.getEditPermission());
this.eventTypes = vo.getEventTypes().stream().map(EventTypeMatcherModel::new).collect(Collectors.toList());
}
Aggregations