use of org.vertexium.Visibility in project vertexium by visallo.
the class MutableProperty method update.
public void update(Property property) {
if (property.getHiddenVisibilities() != null) {
for (Visibility v : property.getHiddenVisibilities()) {
addHiddenVisibility(v);
}
}
setValue(property.getValue());
setTimestamp(property.getTimestamp());
updateMetadata(property);
}
use of org.vertexium.Visibility in project vertexium by visallo.
the class ExistingElementMutationImplTest method testHasChangesAlterPropertyVisibility.
@Test
public void testHasChangesAlterPropertyVisibility() {
mutation.alterPropertyVisibility("key1", "name1", new Visibility(""));
assertTrue("should have changes", mutation.hasChanges());
}
use of org.vertexium.Visibility in project vertexium by visallo.
the class ExistingElementMutationImplTest method testHasChangesDeleteProperty.
@Test
public void testHasChangesDeleteProperty() {
mutation.deleteProperty(new MutablePropertyImpl("key1", "name1", "value", null, null, null, new Visibility(""), FetchHints.ALL));
assertTrue("should have changes", mutation.hasChanges());
}
use of org.vertexium.Visibility in project vertexium by visallo.
the class ExistingElementMutationImplTest method testHasChangesSetPropertyMetadata.
@Test
public void testHasChangesSetPropertyMetadata() {
mutation.setPropertyMetadata("key1", "name1", "value", new Visibility(""));
assertTrue("should have changes", mutation.hasChanges());
}
use of org.vertexium.Visibility in project vertexium by visallo.
the class ExistingElementMutationImplTest method testHasChangesSoftDeleteProperty.
@Test
public void testHasChangesSoftDeleteProperty() {
mutation.softDeleteProperty(new MutablePropertyImpl("key1", "name1", "value", null, null, null, new Visibility(""), FetchHints.ALL));
assertTrue("should have changes", mutation.hasChanges());
}
Aggregations