@Override public boolean equals(Object obj) { if (!(obj instanceof MarkHiddenPropertyEvent)) { return false; } MarkHiddenPropertyEvent other = (MarkHiddenPropertyEvent) obj; return getElement().equals(other.getElement()); } }
public void markPropertyHidden( InMemoryElement element, InMemoryTableElement inMemoryTableElement, Property property, Long timestamp, Visibility visibility, Authorizations authorizations ) { if (!element.canRead(authorizations)) { return; } Property hiddenProperty = inMemoryTableElement.appendMarkPropertyHiddenMutation( property.getKey(), property.getName(), property.getVisibility(), timestamp, visibility, authorizations ); getSearchIndex().markPropertyHidden(this, element, property, visibility, authorizations); if (hiddenProperty != null && hasEventListeners()) { fireGraphEvent(new MarkHiddenPropertyEvent(this, element, hiddenProperty, visibility)); } }
public void markPropertyHidden( AccumuloElement element, Property property, Long timestamp, Visibility visibility, @SuppressWarnings("UnusedParameters") Authorizations authorizations ) { checkNotNull(element); Span trace = Trace.start("markPropertyHidden"); trace.data("elementId", element.getId()); trace.data("propertyName", property.getName()); trace.data("propertyKey", property.getKey()); try { if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } ColumnVisibility columnVisibility = visibilityToAccumuloVisibility(visibility); if (element instanceof Vertex) { addMutations(VertexiumObjectType.VERTEX, getMarkHiddenPropertyMutation(element.getId(), property, timestamp, columnVisibility)); } else if (element instanceof Edge) { addMutations(VertexiumObjectType.EDGE, getMarkHiddenPropertyMutation(element.getId(), property, timestamp, columnVisibility)); } getSearchIndex().markPropertyHidden(this, element, property, visibility, authorizations); if (hasEventListeners()) { fireGraphEvent(new MarkHiddenPropertyEvent(this, element, property, visibility)); } } finally { trace.stop(); } }
public void markPropertyHidden( AccumuloElement element, Property property, Long timestamp, Visibility visibility, @SuppressWarnings("UnusedParameters") Authorizations authorizations ) { checkNotNull(element); Span trace = Trace.start("markPropertyHidden"); trace.data("elementId", element.getId()); trace.data("propertyName", property.getName()); trace.data("propertyKey", property.getKey()); try { if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } ColumnVisibility columnVisibility = visibilityToAccumuloVisibility(visibility); if (element instanceof Vertex) { addMutations(VertexiumObjectType.VERTEX, getMarkHiddenPropertyMutation(element.getId(), property, timestamp, columnVisibility)); } else if (element instanceof Edge) { addMutations(VertexiumObjectType.EDGE, getMarkHiddenPropertyMutation(element.getId(), property, timestamp, columnVisibility)); } getSearchIndex().markPropertyHidden(this, element, property, visibility, authorizations); if (hasEventListeners()) { fireGraphEvent(new MarkHiddenPropertyEvent(this, element, property, visibility)); } } finally { trace.stop(); } }
@Override public boolean equals(Object obj) { if (!(obj instanceof MarkHiddenPropertyEvent)) { return false; } MarkHiddenPropertyEvent other = (MarkHiddenPropertyEvent) obj; return getElement().equals(other.getElement()); } }
@Override public int hashCode() { return getElement().hashCode(); }
@Override public int hashCode() { return getElement().hashCode(); }