Class ModelMappers
- java.lang.Object
-
- org.opennms.features.apilayer.utils.ModelMappers
-
public class ModelMappers extends java.lang.Object
Utility functions for mapping to/from API types to OpenNMS types
-
-
Constructor Summary
Constructors Constructor Description ModelMappers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlarmFeedback
fromFeedback(org.opennms.integration.api.v1.model.AlarmFeedback feedback)
static OnmsSeverity
fromSeverity(org.opennms.integration.api.v1.model.Severity severity)
static org.opennms.integration.api.v1.model.Alarm
toAlarm(OnmsAlarm alarm)
static Event
toEvent(org.opennms.integration.api.v1.model.InMemoryEvent event)
static org.opennms.integration.api.v1.model.DatabaseEvent
toEvent(OnmsEvent event)
static org.opennms.integration.api.v1.model.InMemoryEvent
toEvent(Event event)
static org.opennms.integration.api.v1.model.AlarmFeedback
toFeedback(AlarmFeedback feedback)
static org.opennms.integration.api.v1.model.Node
toNode(OnmsNode node)
static OnmsTopologyProtocol
toOnmsTopologyProtocol(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
static org.opennms.integration.api.v1.model.Severity
toSeverity(OnmsSeverity severity)
static org.opennms.integration.api.v1.model.SnmpInterface
toSnmpInterface(OnmsSnmpInterface snmpInterface)
static org.opennms.integration.api.v1.model.TopologyProtocol
toTopologyProtocol(OnmsTopologyProtocol protocol)
-
-
-
Method Detail
-
toAlarm
public static org.opennms.integration.api.v1.model.Alarm toAlarm(OnmsAlarm alarm)
-
toEvent
public static org.opennms.integration.api.v1.model.InMemoryEvent toEvent(Event event)
-
toEvent
public static Event toEvent(org.opennms.integration.api.v1.model.InMemoryEvent event)
-
toEvent
public static org.opennms.integration.api.v1.model.DatabaseEvent toEvent(OnmsEvent event)
-
toNode
public static org.opennms.integration.api.v1.model.Node toNode(OnmsNode node)
-
toSnmpInterface
public static org.opennms.integration.api.v1.model.SnmpInterface toSnmpInterface(OnmsSnmpInterface snmpInterface)
-
toSeverity
public static org.opennms.integration.api.v1.model.Severity toSeverity(OnmsSeverity severity)
-
toFeedback
public static org.opennms.integration.api.v1.model.AlarmFeedback toFeedback(AlarmFeedback feedback)
-
fromFeedback
public static AlarmFeedback fromFeedback(org.opennms.integration.api.v1.model.AlarmFeedback feedback)
-
fromSeverity
public static OnmsSeverity fromSeverity(org.opennms.integration.api.v1.model.Severity severity)
-
toOnmsTopologyProtocol
public static OnmsTopologyProtocol toOnmsTopologyProtocol(org.opennms.integration.api.v1.model.TopologyProtocol protocol)
-
toTopologyProtocol
public static org.opennms.integration.api.v1.model.TopologyProtocol toTopologyProtocol(OnmsTopologyProtocol protocol)
-
-