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

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

本文整理了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

/**
 * 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.
 *
 * @param key  The property key.
 * @param name The property name.
 */
default void deleteProperty(String key, String name, Authorizations authorizations) {
  deleteProperty(key, name, null, authorizations);
}

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

/**
 * 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.
 *
 * @param key  The property key.
 * @param name The property name.
 */
default void deleteProperty(String key, String name, Authorizations authorizations) {
  deleteProperty(key, name, null, authorizations);
}

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

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

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

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

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

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

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

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

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

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

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

public void delete() {
    getE().deleteProperty(getKey(), getName(), getVisibility(), getAuthorizations());
    getGraph().flush();
  }
}

相关文章