本文整理了Java中org.vertexium.Vertex.markPropertyHidden()
方法的一些代码示例,展示了Vertex.markPropertyHidden()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vertex.markPropertyHidden()
方法的具体详情如下:
包路径:org.vertexium.Vertex
类名称:Vertex
方法名:markPropertyHidden
暂无
代码示例来源:origin: org.vertexium/vertexium-test
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v1.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: visallo/vertexium
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v1.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
v1.markPropertyHidden("key1", "prop1", VISIBILITY_A, VISIBILITY_A_AND_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: visallo/vertexium
v1.markPropertyHidden("key1", "prop1", VISIBILITY_A, VISIBILITY_A_AND_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v1.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
v2.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v2.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: visallo/vertexium
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v1.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
v2.markPropertyHidden("key1", "firstName", VISIBILITY_A, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
v2.addPropertyValue("key1", "firstName", "Joseph", VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
graph.flush();
代码示例来源:origin: org.visallo/visallo-core
Property entityHasImage = outVertex.getProperty(VisalloProperties.ENTITY_IMAGE_VERTEX_ID.getPropertyName());
if (entityHasImage != null) {
outVertex.markPropertyHidden(entityHasImage, workspaceVisibility, authorizations);
this.workQueueRepository.pushElementImageQueue(outVertex, entityHasImage, priority);
代码示例来源:origin: visallo/vertexium
@Test
public void testMarkPropertyVisible() {
Vertex v1 = graph.prepareVertex("v1", VISIBILITY_A)
.addPropertyValue("key1", "firstName", "Joe", VISIBILITY_A)
.save(AUTHORIZATIONS_A_AND_B);
graph.flush();
assertEquals(1, count(v1.getProperties()));
org.vertexium.test.util.IterableUtils.assertContains("Joe", v1.getPropertyValues("firstName"));
long t = IncreasingTime.currentTimeMillis();
v1 = graph.getVertex("v1", AUTHORIZATIONS_A_AND_B);
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, t, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
t += 10;
List<Property> properties = IterableUtils.toList(graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A_AND_B).getProperties());
assertEquals(1, count(properties));
long beforeMarkPropertyVisibleTimestamp = t;
t += 10;
v1.markPropertyVisible("key1", "firstName", VISIBILITY_A, t, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
t += 10;
properties = IterableUtils.toList(graph.getVertex("v1", AUTHORIZATIONS_A_AND_B).getProperties());
assertEquals(1, count(properties));
graph.flush();
v1 = graph.getVertex("v1", graph.getDefaultFetchHints(), beforeMarkPropertyVisibleTimestamp, AUTHORIZATIONS_A_AND_B);
assertNotNull("could not find v1 before timestamp " + beforeMarkPropertyVisibleTimestamp + " current time " + t, v1);
properties = IterableUtils.toList(v1.getProperties());
assertEquals(0, count(properties));
}
代码示例来源:origin: org.vertexium/vertexium-test
@Test
public void testMarkPropertyVisible() {
Vertex v1 = graph.prepareVertex("v1", VISIBILITY_A)
.addPropertyValue("key1", "firstName", "Joe", VISIBILITY_A)
.save(AUTHORIZATIONS_A_AND_B);
graph.flush();
assertEquals(1, count(v1.getProperties()));
org.vertexium.test.util.IterableUtils.assertContains("Joe", v1.getPropertyValues("firstName"));
long t = IncreasingTime.currentTimeMillis();
v1 = graph.getVertex("v1", AUTHORIZATIONS_A_AND_B);
v1.markPropertyHidden("key1", "firstName", VISIBILITY_A, t, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
t += 10;
List<Property> properties = IterableUtils.toList(graph.getVertex("v1", FetchHints.ALL_INCLUDING_HIDDEN, AUTHORIZATIONS_A_AND_B).getProperties());
assertEquals(1, count(properties));
long beforeMarkPropertyVisibleTimestamp = t;
t += 10;
v1.markPropertyVisible("key1", "firstName", VISIBILITY_A, t, VISIBILITY_B, AUTHORIZATIONS_A_AND_B);
t += 10;
properties = IterableUtils.toList(graph.getVertex("v1", AUTHORIZATIONS_A_AND_B).getProperties());
assertEquals(1, count(properties));
graph.flush();
v1 = graph.getVertex("v1", graph.getDefaultFetchHints(), beforeMarkPropertyVisibleTimestamp, AUTHORIZATIONS_A_AND_B);
assertNotNull("could not find v1 before timestamp " + beforeMarkPropertyVisibleTimestamp + " current time " + t, v1);
properties = IterableUtils.toList(v1.getProperties());
assertEquals(0, count(properties));
}
代码示例来源: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: visallo/vertexium
v3.markPropertyHidden("junit", "name", VISIBILITY_B, VISIBILITY_C, AUTHORIZATIONS_B_AND_C);
graph.flush();
代码示例来源:origin: org.vertexium/vertexium-test
v3.markPropertyHidden("junit", "name", VISIBILITY_B, VISIBILITY_C, AUTHORIZATIONS_B_AND_C);
graph.flush();
内容来源于网络,如有侵权,请联系作者删除!