public final void setProperty( Element element, TRaw value, Metadata metadata, Visibility visibility, Authorizations authorizations ) { element.setProperty(getPropertyName(), wrap(value), metadata, visibility, authorizations); }
@Override public void setProperty(String propertyName, Object value) { if (value == null) { throw new IllegalArgumentException("value cannot be null."); } if (propertyName == null) { throw new IllegalArgumentException("Property Name cannot be null."); } if ("id".equals(propertyName)) { throw new IllegalArgumentException("Property Name cannot be \"id\""); } if ("".equals(propertyName)) { throw new IllegalArgumentException("Property Name cannot be empty."); } Visibility visibility = getGraph().getVisibilityProvider().getVisibilityForProperty(propertyName, value); getVertexiumElement().setProperty(propertyName, value, visibility, authorizations); }