Class ModelMappers
- java.lang.Object
-
- org.opennms.features.apilayer.utils.ModelMappers
-
public class ModelMappers extends 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 AlarmFeedbackfromFeedback(org.opennms.integration.api.v1.model.AlarmFeedback feedback)static OnmsSeverityfromSeverity(org.opennms.integration.api.v1.model.Severity severity)static org.opennms.integration.api.v1.model.AlarmtoAlarm(OnmsAlarm alarm)static EventtoEvent(org.opennms.integration.api.v1.model.InMemoryEvent event)static org.opennms.integration.api.v1.model.DatabaseEventtoEvent(OnmsEvent event)static org.opennms.integration.api.v1.model.InMemoryEventtoEvent(Event event)static org.opennms.integration.api.v1.model.AlarmFeedbacktoFeedback(AlarmFeedback feedback)static org.opennms.integration.api.v1.model.NodetoNode(OnmsNode node)static OnmsTopologyProtocoltoOnmsTopologyProtocol(org.opennms.integration.api.v1.model.TopologyProtocol protocol)static org.opennms.integration.api.v1.model.SeveritytoSeverity(OnmsSeverity severity)static org.opennms.integration.api.v1.model.SnmpInterfacetoSnmpInterface(OnmsSnmpInterface snmpInterface)static org.opennms.integration.api.v1.model.TopologyProtocoltoTopologyProtocol(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)
-
-