org.vertexium.Element.deleteProperty()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(598)

本文整理了Java中org.vertexium.Element.deleteProperty()方法的一些代码示例,展示了Element.deleteProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.deleteProperty()方法的具体详情如下:
包路径:org.vertexium.Element
类名称:Element
方法名:deleteProperty

Element.deleteProperty介绍

[英]Permanently deletes a property given it's key and name from the element. Only properties which you have access to can be deleted using this method.
[中]从元素中永久删除给定键和名称的属性。使用此方法只能删除您有权访问的属性。

代码示例

代码示例来源:origin: org.vertexium/vertexium-core

  1. /**
  2. * Permanently deletes a property given it's key and name from the element. Only properties which you have access
  3. * to can be deleted using this method.
  4. *
  5. * @param key The property key.
  6. * @param name The property name.
  7. */
  8. default void deleteProperty(String key, String name, Authorizations authorizations) {
  9. deleteProperty(key, name, null, authorizations);
  10. }

代码示例来源:origin: visallo/vertexium

  1. /**
  2. * Permanently deletes a property given it's key and name from the element. Only properties which you have access
  3. * to can be deleted using this method.
  4. *
  5. * @param key The property key.
  6. * @param name The property name.
  7. */
  8. default void deleteProperty(String key, String name, Authorizations authorizations) {
  9. deleteProperty(key, name, null, authorizations);
  10. }

代码示例来源:origin: org.vertexium/vertexium-blueprints

  1. @Override
  2. public <T> T removeProperty(String key) {
  3. T old = getProperty(key);
  4. getVertexiumElement().deleteProperty(DEFAULT_PROPERTY_ID, key, authorizations);
  5. return old;
  6. }

代码示例来源:origin: org.vertexium/vertexium-core

  1. /**
  2. * Permanently deletes a property from the element. Only properties which you have access to can be deleted using
  3. * this method.
  4. *
  5. * @param property The property to delete.
  6. */
  7. default void deleteProperty(Property property, Authorizations authorizations) {
  8. deleteProperty(property.getKey(), property.getName(), property.getVisibility(), authorizations);
  9. }

代码示例来源:origin: visallo/vertexium

  1. /**
  2. * Permanently deletes a property from the element. Only properties which you have access to can be deleted using
  3. * this method.
  4. *
  5. * @param property The property to delete.
  6. */
  7. default void deleteProperty(Property property, Authorizations authorizations) {
  8. deleteProperty(property.getKey(), property.getName(), property.getVisibility(), authorizations);
  9. }

代码示例来源:origin: org.vertexium/vertexium-core

  1. /**
  2. * Permanently deletes all properties with the given name that you have access to. Only properties which you have
  3. * access to will be deleted.
  4. *
  5. * @param name The name of the property to delete.
  6. */
  7. default void deleteProperties(String name, Authorizations authorizations) {
  8. for (Property p : getProperties(name)) {
  9. deleteProperty(p.getKey(), p.getName(), p.getVisibility(), authorizations);
  10. }
  11. }

代码示例来源:origin: visallo/vertexium

  1. /**
  2. * Permanently deletes all properties with the given name that you have access to. Only properties which you have
  3. * access to will be deleted.
  4. *
  5. * @param name The name of the property to delete.
  6. */
  7. default void deleteProperties(String name, Authorizations authorizations) {
  8. for (Property p : getProperties(name)) {
  9. deleteProperty(p.getKey(), p.getName(), p.getVisibility(), authorizations);
  10. }
  11. }

代码示例来源:origin: visallo/vertexium

  1. public void delete() {
  2. getE().deleteProperty(getKey(), getName(), getVisibility(), getAuthorizations());
  3. getGraph().flush();
  4. }
  5. }

相关文章