@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); getSecureGraphElement().setProperty(propertyName, value, 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); getSecureGraphElement().setProperty(propertyName, value, visibility, authorizations); }