@Override public String getKey() { return property.getKey(); }
@Override protected boolean isIncluded(Property property) { return property.getName().equals(name) && property.getKey().equals(key); } };
@Override protected boolean isIncluded(Property property) { return property.getName().equals(name) && property.getKey().equals(key); } };
public RemovePropertyEvent(Graph graph, Element element, Property property) { super(graph); this.element = element; this.key = property.getKey(); this.name = property.getName(); this.visibility = property.getVisibility(); }
@Override public String toString() { return "[" + getName() + ":" + getKey() + ":" + getVisibility() + "]"; } }
public RemovePropertyEvent(Graph graph, Element element, Property property) { super(graph); this.element = element; this.key = property.getKey(); this.name = property.getName(); this.visibility = property.getVisibility(); }
@Override public String toString() { return "[" + getName() + ":" + getKey() + ":" + getVisibility() + "]"; } }
@Override public int hashCode() { return getName().hashCode() ^ getKey().hashCode() ^ getVisibility().hashCode(); }
public static JSONObject propertyYoJson(Property property) { JSONObject json = new JSONObject(); json.put("key", property.getKey()); json.put("name", property.getName()); json.put("metadata", propertyMetadataToJson(property.getMetadata())); json.put("visibility", property.getVisibility().toString()); json.put("value", property.getValue().toString()); return json; }
@Override public ExistingElementMutation<T> setPropertyMetadata(Property property, String metadataName, Object newValue, Visibility visibility) { this.setPropertyMetadatas.add(new SetPropertyMetadata(property.getKey(), property.getName(), property.getVisibility(), metadataName, newValue, visibility)); return this; }
@Override public ExistingElementMutation<T> alterPropertyVisibility(Property property, Visibility visibility) { this.alterPropertyVisibilities.add(new AlterPropertyVisibility(property.getKey(), property.getName(), property.getVisibility(), visibility)); return this; }
@Override public ExistingElementMutation<T> setPropertyMetadata(Property property, String metadataName, Object newValue, Visibility visibility) { this.setPropertyMetadatas.add(new SetPropertyMetadata(property.getKey(), property.getName(), property.getVisibility(), metadataName, newValue, visibility)); return this; }
@Override public ExistingElementMutation<T> alterPropertyVisibility(Property property, Visibility visibility) { this.alterPropertyVisibilities.add(new AlterPropertyVisibility(property.getKey(), property.getName(), property.getVisibility(), visibility)); return this; }
static Text getPropertyMetadataColumnQualifier(Property property, String metadataKey) { return new Text(property.getName() + VALUE_SEPARATOR + property.getKey() + VALUE_SEPARATOR + property.getVisibility().getVisibilityString() + VALUE_SEPARATOR + metadataKey); }
@Override public void removeProperty(Graph graph, Element element, Property property, Authorizations authorizations) { removeProperty(graph, element, property.getKey(), property.getName(), property.getVisibility(), authorizations); }
@Override public void removeProperty(Graph graph, Element element, Property property, Authorizations authorizations) { removeProperty(graph, element, property.getKey(), property.getName(), property.getVisibility(), authorizations); }