use of org.vertexium.mutation.ExistingEdgeMutation in project vertexium by visallo.
the class InMemoryEdge method prepareMutation.
@Override
@SuppressWarnings("unchecked")
public ExistingEdgeMutation prepareMutation() {
return new ExistingEdgeMutation(this) {
@Override
public Edge save(Authorizations authorizations) {
IndexHint indexHint = getIndexHint();
Visibility oldVisibility = InMemoryEdge.this.getVisibility();
saveExistingElementMutation(this, indexHint, authorizations);
Edge edge = getElement();
if (indexHint != IndexHint.DO_NOT_INDEX) {
saveMutationToSearchIndex(edge, oldVisibility, getNewElementVisibility(), getAlterPropertyVisibilities(), getExtendedData(), authorizations);
}
return edge;
}
};
}
Aggregations