Class LegacyApplicationVertex
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractRef
-
- org.opennms.features.topology.api.topo.DefaultVertexRef
-
- org.opennms.features.topology.api.topo.AbstractVertex
-
- org.opennms.features.topology.api.topo.AbstractLevelAwareVertex
-
- org.opennms.features.topology.plugins.topo.application.LegacyApplicationVertex
-
- All Implemented Interfaces:
Comparable<Ref>
,LevelAware
,Ref
,Vertex
,VertexRef
public class LegacyApplicationVertex extends AbstractLevelAwareVertex implements LevelAware
-
-
Field Summary
-
Fields inherited from class org.opennms.features.topology.api.topo.AbstractRef
m_id
-
-
Constructor Summary
Constructors Constructor Description LegacyApplicationVertex(String id, String label)
Creates a newApplicationVertex
.LegacyApplicationVertex(ApplicationVertex vertex)
LegacyApplicationVertex(OnmsApplication application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLevel()
LegacyApplicationVertex
getRoot()
Integer
getServiceTypeId()
boolean
isLeaf()
boolean
isPartOf(String applicationId)
boolean
isRoot()
void
setServiceTypeId(Integer serviceTypeId)
-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractLevelAwareVertex
addChildren, getChildren, getParent, setParent
-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractVertex
getEdgePathOffset, getIconKey, getIpAddress, getItem, getKey, getNodeID, getStyleName, getTooltipText, getX, getY, isLocked, isSelected, setEdgePathOffset, setIconKey, setIpAddress, setLocked, setNodeID, setSelected, setStyleName, setTooltipText, setX, setY, toString
-
Methods inherited from class org.opennms.features.topology.api.topo.DefaultVertexRef
equals
-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractRef
compareTo, getId, getLabel, getNamespace, hashCode, setLabel
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.opennms.features.topology.api.topo.Ref
getId, getNamespace
-
-
-
-
Constructor Detail
-
LegacyApplicationVertex
public LegacyApplicationVertex(ApplicationVertex vertex)
-
LegacyApplicationVertex
public LegacyApplicationVertex(OnmsApplication application)
-
LegacyApplicationVertex
public LegacyApplicationVertex(String id, String label)
Creates a newApplicationVertex
.- Parameters:
id
- the unique id of this vertex. Must be unique overall the namespace.
-
-
Method Detail
-
setServiceTypeId
public void setServiceTypeId(Integer serviceTypeId)
-
isRoot
public boolean isRoot()
-
isLeaf
public boolean isLeaf()
-
getServiceTypeId
public Integer getServiceTypeId()
-
isPartOf
public boolean isPartOf(String applicationId)
-
getRoot
public LegacyApplicationVertex getRoot()
-
getLevel
public int getLevel()
- Specified by:
getLevel
in interfaceLevelAware
-
-