本文整理了Java中org.vertexium.Graph.markVertexHidden()
方法的一些代码示例,展示了Graph.markVertexHidden()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.markVertexHidden()
方法的具体详情如下:
包路径:org.vertexium.Graph
类名称:Graph
方法名:markVertexHidden
[英]Marks a vertex as hidden for a given visibility.
[中]
代码示例来源:origin: org.visallo/visallo-core
public void markHidden(Vertex termMention, Visibility hiddenVisibility, Authorizations authorizations) {
Authorizations authorizationsWithTermMention = getAuthorizations(authorizations);
graph.markVertexHidden(termMention, hiddenVisibility, authorizationsWithTermMention);
}
代码示例来源:origin: org.vertexium/vertexium-test
@Test
public void testSoftDeletePropertyOnAHiddenVertex() {
Vertex v1 = graph.prepareVertex("v1", VISIBILITY_EMPTY)
.addPropertyValue("key1", "name1", "value1", VISIBILITY_EMPTY)
.save(AUTHORIZATIONS_A);
graph.flush();
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
v1 = graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A);
v1.softDeleteProperty("key1", "name1", AUTHORIZATIONS_A);
graph.flush();
v1 = graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A);
assertNull(v1.getProperty("key1", "name1", VISIBILITY_EMPTY));
}
代码示例来源:origin: visallo/vertexium
@Test
public void testSoftDeletePropertyOnAHiddenVertex() {
Vertex v1 = graph.prepareVertex("v1", VISIBILITY_EMPTY)
.addPropertyValue("key1", "name1", "value1", VISIBILITY_EMPTY)
.save(AUTHORIZATIONS_A);
graph.flush();
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
v1 = graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A);
v1.softDeleteProperty("key1", "name1", AUTHORIZATIONS_A);
graph.flush();
v1 = graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A);
assertNull(v1.getProperty("key1", "name1", VISIBILITY_EMPTY));
}
代码示例来源:origin: org.vertexium/vertexium-test
graph.markVertexHidden(e1, VISIBILITY_A, AUTHORIZATIONS_EMPTY);
graph.flush();
代码示例来源:origin: visallo/vertexium
graph.markVertexHidden(e1, VISIBILITY_A, AUTHORIZATIONS_EMPTY);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
Assert.assertEquals(1, count(graph.getEdges(AUTHORIZATIONS_A)));
graph.markVertexHidden(v1, VISIBILITY_A_AND_B, AUTHORIZATIONS_A);
graph.flush();
Assert.assertEquals(1, count(graph.getEdges(AUTHORIZATIONS_A)));
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
代码示例来源:origin: visallo/vertexium
Assert.assertEquals(1, count(graph.getEdges(AUTHORIZATIONS_A)));
graph.markVertexHidden(v1, VISIBILITY_A_AND_B, AUTHORIZATIONS_A);
graph.flush();
Assert.assertEquals(1, count(graph.getEdges(AUTHORIZATIONS_A)));
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
代码示例来源:origin: org.visallo/visallo-core
graph.markVertexHidden(vertex, workspaceVisibility, authorizations);
graph.flush();
workQueueRepository.pushVertexHidden(vertex, beforeActionTimestamp, Priority.HIGH);
代码示例来源:origin: org.vertexium/vertexium-test
graph.flush();
graph.markVertexHidden(v1, VISIBILITY_B, AUTHORIZATIONS_ALL);
graph.flush();
代码示例来源:origin: visallo/vertexium
graph.flush();
graph.markVertexHidden(v1, VISIBILITY_B, AUTHORIZATIONS_ALL);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_ALL);
for (Property property : v1.getProperties()) {
v1.markPropertyHidden(property, VISIBILITY_A, AUTHORIZATIONS_ALL);
代码示例来源:origin: visallo/vertexium
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_ALL);
for (Property property : v1.getProperties()) {
v1.markPropertyHidden(property, VISIBILITY_A, AUTHORIZATIONS_ALL);
代码示例来源:origin: org.vertexium/vertexium-test
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
v3.markPropertyHidden("junit", "name", VISIBILITY_B, VISIBILITY_C, AUTHORIZATIONS_B_AND_C);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
代码示例来源:origin: visallo/vertexium
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
v3.markPropertyHidden("junit", "name", VISIBILITY_B, VISIBILITY_C, AUTHORIZATIONS_B_AND_C);
graph.flush();
代码示例来源:origin: visallo/vertexium
graph.markVertexHidden(v1, VISIBILITY_A, AUTHORIZATIONS_A);
graph.flush();
内容来源于网络,如有侵权,请联系作者删除!