|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.serotonin.m2m2.module.ModuleElementDefinition
com.serotonin.m2m2.module.EventTypeDefinition
public abstract class EventTypeDefinition
Used for creating custom event types.
Constructor Summary | |
---|---|
EventTypeDefinition()
|
Method Summary | |
---|---|
abstract com.serotonin.m2m2.rt.event.type.EventType |
createEventType(java.lang.String subtype,
int ref1,
int ref2)
Create an instance of the event type using the given parameters. |
abstract java.lang.String |
getDescriptionKey()
The reference key to the description of the event type. |
abstract java.lang.String |
getEventListLink(java.lang.String subtype,
int ref1,
int ref2,
com.serotonin.m2m2.i18n.Translations translations)
Optional. |
abstract java.lang.Class<? extends com.serotonin.m2m2.rt.event.type.EventType> |
getEventTypeClass()
The class that represents the event type. |
abstract java.util.List<com.serotonin.m2m2.vo.event.EventTypeVO> |
getEventTypeVOs()
Returns a list of EventTypeVOs representing the list of events to which handlers can be added/edited. |
abstract boolean |
getHandlersRequireAdmin()
Whether admin permission is required to create and edit event handlers for this even type. |
abstract java.lang.String |
getIconPath()
Optional. |
abstract com.serotonin.m2m2.i18n.TranslatableMessage |
getSourceDisabledMessage()
Optional. |
abstract java.lang.String |
getTypeName()
The type name of the system event. |
Methods inherited from class com.serotonin.m2m2.module.ModuleElementDefinition |
---|
getModule, initialize, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventTypeDefinition()
Method Detail |
---|
public abstract java.lang.String getTypeName()
public abstract java.lang.Class<? extends com.serotonin.m2m2.rt.event.type.EventType> getEventTypeClass()
public abstract com.serotonin.m2m2.rt.event.type.EventType createEventType(java.lang.String subtype, int ref1, int ref2)
subtype
- the subtype of the event. May be nullref1
- the first reference id. Event types define how this number is usedref2
- the second reference id. Event types define how this number is used
public abstract boolean getHandlersRequireAdmin()
public abstract java.util.List<com.serotonin.m2m2.vo.event.EventTypeVO> getEventTypeVOs()
public abstract java.lang.String getIconPath()
public abstract java.lang.String getDescriptionKey()
public abstract java.lang.String getEventListLink(java.lang.String subtype, int ref1, int ref2, com.serotonin.m2m2.i18n.Translations translations)
subtype
- the event subtyperef1
- the first reference idref2
- the second reference idtranslations
- the translations object for the current user
public abstract com.serotonin.m2m2.i18n.TranslatableMessage getSourceDisabledMessage()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |