Search in sources :

Example 11 with EventTypeVO

use of com.serotonin.m2m2.vo.event.EventTypeVO in project ma-core-public by infiniteautomation.

the class AuditEventType method addEventType.

private static void addEventType(String subtype, String key) {
    TYPE_NAMES.addElement(subtype);
    EVENT_TYPES.add(new EventTypeVO(EventType.EventTypeNames.AUDIT, subtype, 0, 0, new TranslatableMessage(key), SystemSettingsDao.getIntValue(AUDIT_SETTINGS_PREFIX + subtype)));
}
Also used : EventTypeVO(com.serotonin.m2m2.vo.event.EventTypeVO) TranslatableMessage(com.serotonin.m2m2.i18n.TranslatableMessage)

Example 12 with EventTypeVO

use of com.serotonin.m2m2.vo.event.EventTypeVO in project ma-core-public by infiniteautomation.

the class SystemEventType method addEventType.

private static void addEventType(String subtype, String key) {
    TYPE_NAMES.addElement(subtype);
    EVENT_TYPES.add(new EventTypeVO(EventType.EventTypeNames.SYSTEM, subtype, 0, 0, new TranslatableMessage(key), SystemSettingsDao.getIntValue(SYSTEM_SETTINGS_PREFIX + subtype)));
}
Also used : EventTypeVO(com.serotonin.m2m2.vo.event.EventTypeVO) TranslatableMessage(com.serotonin.m2m2.i18n.TranslatableMessage)

Aggregations

EventTypeVO (com.serotonin.m2m2.vo.event.EventTypeVO)12 ArrayList (java.util.ArrayList)4 TranslatableMessage (com.serotonin.m2m2.i18n.TranslatableMessage)3 AuditEventType (com.serotonin.m2m2.rt.event.type.AuditEventType)2 EventType (com.serotonin.m2m2.rt.event.type.EventType)2 SystemEventType (com.serotonin.m2m2.rt.event.type.SystemEventType)2 DataSourceVO (com.serotonin.m2m2.vo.dataSource.DataSourceVO)2 PublisherDao (com.serotonin.m2m2.db.dao.PublisherDao)1 ProcessResult (com.serotonin.m2m2.i18n.ProcessResult)1 EventTypeDefinition (com.serotonin.m2m2.module.EventTypeDefinition)1 ScriptPermissions (com.serotonin.m2m2.rt.script.ScriptPermissions)1 DataPointVO (com.serotonin.m2m2.vo.DataPointVO)1 User (com.serotonin.m2m2.vo.User)1 PublisherVO (com.serotonin.m2m2.vo.publish.PublisherVO)1 DataPointBean (com.serotonin.m2m2.web.dwr.beans.DataPointBean)1 EventSourceBean (com.serotonin.m2m2.web.dwr.beans.EventSourceBean)1 DwrPermission (com.serotonin.m2m2.web.dwr.util.DwrPermission)1 ApiOperation (com.wordnik.swagger.annotations.ApiOperation)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1