org.securegraph.mutation.ExistingElementMutation Maven / Gradle / Ivy
The newest version!
package org.securegraph.mutation;
import org.securegraph.Element;
import org.securegraph.Property;
import org.securegraph.Visibility;
public interface ExistingElementMutation extends ElementMutation {
/**
* Alters the visibility of a property.
*
* @param property The property to mutate.
* @param visibility The new visibility.
*/
ExistingElementMutation alterPropertyVisibility(Property property, Visibility visibility);
/**
* Alters the visibility of a property.
*
* @param key The key of a multivalued property.
* @param name The name of the property to alter the visibility of.
* @param visibility The new visibility.
*/
ExistingElementMutation alterPropertyVisibility(String key, String name, Visibility visibility);
/**
* Alters the visibility of a property.
*
* @param name The name of the property to alter the visibility of.
* @param visibility The new visibility.
*/
ExistingElementMutation alterPropertyVisibility(String name, Visibility visibility);
/**
* Alters the visibility of the element (vertex or edge).
*
* @param visibility The new visibility.
*/
ExistingElementMutation alterElementVisibility(Visibility visibility);
/**
* Sets a property metadata value on a property.
*
* @param property The property to mutate.
* @param metadataName The name of the metadata.
* @param newValue The new value.
* @param visibility The visibility of the metadata item
*/
ExistingElementMutation setPropertyMetadata(Property property, String metadataName, Object newValue, Visibility visibility);
/**
* Sets a property metadata value on a property.
*
* @param propertyKey The key of a multivalued property.
* @param propertyName The name of the property.
* @param metadataName The name of the metadata.
* @param newValue The new value.
* @param visibility The visibility of the metadata item
*/
ExistingElementMutation setPropertyMetadata(String propertyKey, String propertyName, String metadataName, Object newValue, Visibility visibility);
/**
* Sets a property metadata value on a property.
*
* @param propertyName The name of the property.
* @param metadataName The name of the metadata.
* @param newValue The new value.
* @param visibility The visibility of the metadata item
*/
ExistingElementMutation setPropertyMetadata(String propertyName, String metadataName, Object newValue, Visibility visibility);
/**
* Removes all default properties with that name irregardless of visibility.
*
* @param name the property name to remove.
*/
ExistingElementMutation removeProperties(String name);
/**
* Removes all properties with this key and name irregardless of visibility.
*
* @param key the key of the property to remove.
* @param name the name of the property to remove.
*/
ExistingElementMutation removeProperties(String key, String name);
/**
* Gets the element this mutation is affecting.
*
* @return The element.
*/
T getElement();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy