Class LayoutManager
- java.lang.Object
-
- org.opennms.features.topology.app.internal.support.LayoutManager
-
public class LayoutManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LayoutManager(LayoutDao layoutDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
calculateHash(java.util.Collection<VertexRef> vertices)
boolean
isPersistedLayoutEqualToCurrentLayout(Graph graph)
LayoutEntity
loadLayout(Graph graph)
void
persistLayout(GraphContainer graphContainer)
protected static java.util.List<VertexRef>
toVertexRef(java.util.Collection<Vertex> input)
static VertexRefEntity
toVertexRefEntity(VertexRef vertexRef)
-
-
-
Constructor Detail
-
LayoutManager
public LayoutManager(LayoutDao layoutDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
-
-
Method Detail
-
persistLayout
public void persistLayout(GraphContainer graphContainer)
-
loadLayout
public LayoutEntity loadLayout(Graph graph)
-
toVertexRef
protected static java.util.List<VertexRef> toVertexRef(java.util.Collection<Vertex> input)
-
calculateHash
protected static java.lang.String calculateHash(java.util.Collection<VertexRef> vertices)
-
toVertexRefEntity
public static VertexRefEntity toVertexRefEntity(VertexRef vertexRef)
-
isPersistedLayoutEqualToCurrentLayout
public boolean isPersistedLayoutEqualToCurrentLayout(Graph graph)
-
-