public class FindReplace extends Object
Unlike a Cypher query, this class takes care of managing the audit log to record changes, and also tries to prevent accidental misuse.
| Constructor and Description |
|---|
FindReplace(com.tinkerpop.frames.FramedGraph<?> graph,
boolean commit,
int maxItems) |
| Modifier and Type | Method and Description |
|---|---|
List<List<String>> |
findAndReplace(EntityClass contentType,
EntityClass entityType,
String property,
String textToFind,
String replacement,
Actioner actioner,
String logMessage)
Find and replace a string
|
public FindReplace(com.tinkerpop.frames.FramedGraph<?> graph,
boolean commit,
int maxItems)
public List<List<String>> findAndReplace(EntityClass contentType, EntityClass entityType, String property, String textToFind, String replacement, Actioner actioner, String logMessage) throws ValidationError
contentType - the content type of the top-level itementityType - the entity type of the property-holding nodeproperty - the name of the property to searchtextToFind - the text to findreplacement - the replacement textactioner - the current userlogMessage - a mandatory log messageValidationErrorCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.