/** * Add basic references (creator, editor, created, edited) to the map for the given vertex. * * @param document * JSON document to which basic references will be added * @param vertex * Vertex which will be used to load the basic references */ protected void addBasicReferences(JsonObject document, MeshCoreVertex<?, ?> vertex) { document.put("uuid", vertex.getUuid()); if (vertex instanceof CreatorTrackingVertex) { CreatorTrackingVertex createdVertex = (CreatorTrackingVertex) vertex; addUser(document, "creator", createdVertex.getCreator()); document.put("created", createdVertex.getCreationDate()); } if (vertex instanceof EditorTrackingVertex) { EditorTrackingVertex editedVertex = (EditorTrackingVertex) vertex; addUser(document, "editor", editedVertex.getEditor()); document.put("edited", editedVertex.getLastEditedDate()); } }
vertex = env.getSource(); return vertex.getCreationDate(); }));