@Override public final Vertex getVertex(VertexRef reference, Criteria... criteria) { return m_vertexProvider.getVertex(reference, criteria); }
@Override public boolean containsVertexId(VertexRef id, Criteria... criteria) { return getVertex(id, criteria) != null; }
@Override public final Vertex getVertex(VertexRef reference, Criteria... criteria) { return m_vertexProvider.getVertex(reference, criteria); }
@Override public boolean containsVertexId(VertexRef id, Criteria... criteria) { return getVertex(id, criteria) != null; }
@Override public final Vertex getVertex(String namespace, String id) { return m_vertexProvider.getVertex(namespace, id); }
@Override public boolean containsVertexId(VertexRef id, Criteria... criteria) { return getVertex(id, criteria) != null; }
@Override public final Vertex getVertex(String namespace, String id) { return m_vertexProvider.getVertex(namespace, id); }
@Override public final Vertex getVertex(VertexRef reference, Criteria... criteria) { return m_vertexProvider.getVertex(reference, criteria); }
@Override public final Vertex getVertex(String namespace, String id) { return m_vertexProvider.getVertex(namespace, id); }
@Override public Vertex getVertex(VertexRef reference, Criteria... criteria) { Vertex theVertex = super.getVertex(reference, criteria); return filter(theVertex, criteria); }
@Override public Vertex getVertex(String namespace, String id) { // Hack, as the id may not be prefixed with the type. // In these cases we assume a Business Service and update the id // We need to do this, otherwise linking from outside the Topology UI may not work if (!isValidVertexId(id)) { id = Type.BusinessService + ":" + id; } return super.getVertex(namespace, id); }
@Override public Vertex getVertex(String namespace, String id) { return getVertex(new DefaultVertexRef(namespace, id)); }
@Override public Vertex getVertex(String namespace, String id) { return getVertex(new DefaultVertexRef(namespace, id)); }
@Override public Vertex getVertex(String namespace, String id) { return getVertex(new DefaultVertexRef(namespace, id)); }
@Override public boolean setParent(VertexRef child, VertexRef parent) { if (child.equals(parent)) return false; // Set the parent value on the vertex object getVertex(child).setParent(parent); // Add a parent mapping if (parent == null) { m_parents.remove(child); } else { m_parents.put(child, parent); } // Remove the child from any existing m_children mappings for (Set<VertexRef> vertex : m_children.values()) { vertex.remove(child); } boolean retval = false; if (parent == null) { retval = true; } else { // Add the child to m_children under the new parent Set<VertexRef> children = m_children.get(parent); if (children == null) { children = new TreeSet<VertexRef>(); m_children.put(parent, children); } retval = children.add(child); } fireVertexSetChanged(); return retval; }
@Override public boolean setParent(VertexRef child, VertexRef parent) { if (child.equals(parent)) return false; // Set the parent value on the vertex object getVertex(child).setParent(parent); // Add a parent mapping if (parent == null) { m_parents.remove(child); } else { m_parents.put(child, parent); } // Remove the child from any existing m_children mappings for (Set<VertexRef> vertex : m_children.values()) { vertex.remove(child); } boolean retval = false; if (parent == null) { retval = true; } else { // Add the child to m_children under the new parent Set<VertexRef> children = m_children.get(parent); if (children == null) { children = new TreeSet<VertexRef>(); m_children.put(parent, children); } retval = children.add(child); } fireVertexSetChanged(); return retval; }
@Override public boolean setParent(VertexRef child, VertexRef parent) { if (child.equals(parent)) return false; // Set the parent value on the vertex object getVertex(child).setParent(parent); // Add a parent mapping if (parent == null) { m_parents.remove(child); } else { m_parents.put(child, parent); } // Remove the child from any existing m_children mappings for (Set<VertexRef> vertex : m_children.values()) { vertex.remove(child); } boolean retval = false; if (parent == null) { retval = true; } else { // Add the child to m_children under the new parent Set<VertexRef> children = m_children.get(parent); if (children == null) { children = new TreeSet<VertexRef>(); m_children.put(parent, children); } retval = children.add(child); } fireVertexSetChanged(); return retval; }