public class AuditEventType extends EventType
EventType.DuplicateHandling, EventType.EventSources
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
AUDIT_SETTINGS_PREFIX |
private int |
auditEventTypeId |
private static java.util.List<EventTypeVO> |
auditEventTypes |
private static org.apache.commons.logging.Log |
log |
private User |
raisingUser |
private int |
referenceId |
private static ExportCodes |
TYPE_CODES |
static int |
TYPE_COMPOUND_EVENT_DETECTOR |
static int |
TYPE_DATA_POINT |
static int |
TYPE_DATA_SOURCE |
static int |
TYPE_EVENT_HANDLER |
static int |
TYPE_MAINTENANCE_EVENT |
static int |
TYPE_POINT_EVENT_DETECTOR |
static int |
TYPE_POINT_LINK |
static int |
TYPE_SCHEDULED_EVENT |
SOURCE_CODES
Constructor and Description |
---|
AuditEventType() |
AuditEventType(int auditEventTypeId,
int referenceId) |
Modifier and Type | Method and Description |
---|---|
static void |
addDataTypeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int dataTypeId) |
private static void |
addEventTypeVO(int type,
java.lang.String key) |
static void |
addExportCodeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
ExportCodes codes,
int id) |
static void |
addPeriodMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int periodType,
int period) |
static void |
addPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
java.lang.Object fromValue,
java.lang.Object toValue) |
static void |
addPropertyMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
boolean propertyValue) |
static void |
addPropertyMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
java.lang.Object propertyValue) |
boolean |
equals(java.lang.Object obj) |
boolean |
excludeUser(User user)
Determines if the notification of this event to the given user should be suppressed.
|
int |
getAuditEventTypeId() |
static java.util.List<EventTypeVO> |
getAuditEventTypes() |
private static com.serotonin.web.i18n.LocalizableMessage |
getBooleanMessage(boolean value) |
int |
getDuplicateHandling()
Determines whether an event type that, once raised, will always first be deactivated or whether overriding events
can be raised.
|
int |
getEventSourceId() |
static EventTypeVO |
getEventType(int type) |
private static com.serotonin.web.i18n.LocalizableMessage |
getExportCodeMessage(ExportCodes exportCodes,
int id) |
int |
getReferenceId1() |
int |
getReferenceId2() |
int |
hashCode() |
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
static void |
maybeAddAlarmLevelChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int fromAlarmLevel,
int toAlarmLevel) |
static void |
maybeAddDataTypeChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int fromDataTypeId,
int toDataTypeId) |
static void |
maybeAddExportCodeChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
ExportCodes exportCodes,
int fromId,
int toId) |
static void |
maybeAddPeriodChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int fromPeriodType,
int fromPeriod,
int toPeriodType,
int toPeriod) |
static void |
maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
boolean fromValue,
boolean toValue) |
static void |
maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
int fromValue,
int toValue) |
static void |
maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
java.lang.String propertyNameKey,
java.lang.Object fromValue,
java.lang.Object toValue) |
static void |
raiseAddedEvent(int auditEventTypeId,
ChangeComparable<?> o) |
static <T> void |
raiseChangedEvent(int auditEventTypeId,
T from,
ChangeComparable<T> to) |
static void |
raiseDeletedEvent(int auditEventTypeId,
ChangeComparable<?> o) |
private static void |
raiseEvent(int auditEventTypeId,
ChangeComparable<?> o,
java.lang.String key,
java.lang.Object[] props) |
static void |
setEventTypeAlarmLevel(int type,
int alarmLevel) |
void |
setRaisingUser(User raisingUser) |
java.lang.String |
toString() |
getCompoundEventDetectorId, getCompoundEventDetectorId, getDataPointId, getDataPointId, getDataSource, getDataSourceId, getInt, getMaintenanceEventId, getPointEventDetectorId, getPointEventDetectorId, getPublisher, getPublisherId, getScheduledEventId, getScheduleId, isSystemMessage
private static org.apache.commons.logging.Log log
private static final java.lang.String AUDIT_SETTINGS_PREFIX
public static final int TYPE_DATA_SOURCE
public static final int TYPE_DATA_POINT
public static final int TYPE_POINT_EVENT_DETECTOR
public static final int TYPE_COMPOUND_EVENT_DETECTOR
public static final int TYPE_SCHEDULED_EVENT
public static final int TYPE_EVENT_HANDLER
public static final int TYPE_POINT_LINK
public static final int TYPE_MAINTENANCE_EVENT
private static final ExportCodes TYPE_CODES
private static java.util.List<EventTypeVO> auditEventTypes
private int auditEventTypeId
private int referenceId
private User raisingUser
public AuditEventType()
public AuditEventType(int auditEventTypeId, int referenceId)
public static java.util.List<EventTypeVO> getAuditEventTypes()
private static void addEventTypeVO(int type, java.lang.String key)
public static EventTypeVO getEventType(int type)
public static void setEventTypeAlarmLevel(int type, int alarmLevel)
public static void raiseAddedEvent(int auditEventTypeId, ChangeComparable<?> o)
public static <T> void raiseChangedEvent(int auditEventTypeId, T from, ChangeComparable<T> to)
public static void raiseDeletedEvent(int auditEventTypeId, ChangeComparable<?> o)
private static void raiseEvent(int auditEventTypeId, ChangeComparable<?> o, java.lang.String key, java.lang.Object[] props)
public static void addPropertyMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, java.lang.Object propertyValue)
public static void addPropertyMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, boolean propertyValue)
public static void addPeriodMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int periodType, int period)
public static void addExportCodeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, ExportCodes codes, int id)
public static void addDataTypeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int dataTypeId)
public static void maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int fromValue, int toValue)
public static void maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, java.lang.Object fromValue, java.lang.Object toValue)
public static void maybeAddPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, boolean fromValue, boolean toValue)
public static void maybeAddAlarmLevelChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int fromAlarmLevel, int toAlarmLevel)
public static void maybeAddPeriodChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int fromPeriodType, int fromPeriod, int toPeriodType, int toPeriod)
public static void maybeAddExportCodeChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, ExportCodes exportCodes, int fromId, int toId)
public static void maybeAddDataTypeChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, int fromDataTypeId, int toDataTypeId)
private static com.serotonin.web.i18n.LocalizableMessage getBooleanMessage(boolean value)
private static com.serotonin.web.i18n.LocalizableMessage getExportCodeMessage(ExportCodes exportCodes, int id)
public static void addPropertyChangeMessage(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, java.lang.String propertyNameKey, java.lang.Object fromValue, java.lang.Object toValue)
public int getEventSourceId()
getEventSourceId
in class EventType
public int getAuditEventTypeId()
public java.lang.String toString()
toString
in class java.lang.Object
public int getDuplicateHandling()
EventType
getDuplicateHandling
in class EventType
public int getReferenceId1()
getReferenceId1
in class EventType
public int getReferenceId2()
getReferenceId2
in class EventType
public void setRaisingUser(User raisingUser)
public boolean excludeUser(User user)
EventType
excludeUser
in class EventType
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
jsonSerialize
in class EventType
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
jsonDeserialize
in class EventType
com.serotonin.json.JsonException