public class ACFactoryEmbedded
extends org.neo4j.server.plugins.ServerPlugin
| Constructor and Description |
|---|
ACFactoryEmbedded() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addListToDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict,
String listEntries)
Adds a list of entries to a DictTree, which is not prepared for searching
|
static boolean |
addListToPreparedDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict,
String dictEntries)
Adds a list of entries to a DictTree, which is prepared for searching
|
static boolean |
createDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict)
Creates a new root of a DictTree, where entries could be add.
|
static boolean |
deleteDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String name)
Deletes a complete DictTree in a GraphDatabase.
|
static boolean |
prepareDictTreeForSearch(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict)
Prepares the DictTree for searching.
|
static boolean |
unprepareDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String name)
Unprepare the DictTree, so that it can't be searched anymore.
|
public static boolean createDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict)
throws org.neo4j.shell.util.json.JSONException
graphDb - - Database where the Dict-Tree should be createdname - - Name of the Dictionarytrue if a new root was created, false if a root already exisitsorg.neo4j.shell.util.json.JSONExceptionpublic static boolean deleteDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String name)
throws IOException
graphDb - - GraphDatabasename - - Name of the Dict-Treetrue if the tree is deleted, false if the tree with the name does not existIOExceptionpublic static boolean addListToDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict,
String listEntries)
throws org.neo4j.shell.util.json.JSONException,
IOException
graphDb - - GraphDatabasename - - name of the DictTreelistEntries - - The dictionary entries as a JSON map of the form { 'dictEntries':[{'entry':'entry1','attributes':{'attribute1':'attValue1','attribute2':'attValue2'}}] } The
Entry is mapped with the constant ENTRY and the Attributes is a Map, which has the key ATRRIBUTEStrue if all entries could be added, false if the tree is already prepared for searchingorg.neo4j.shell.util.json.JSONExceptionIOExceptionpublic static boolean addListToPreparedDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict,
String dictEntries)
throws org.neo4j.shell.util.json.JSONException
graphDb - - GraphDatabasename - - name of the DictTreedictEntries - - an array of the form [{ 'entry':'entry1','attributes':{'attribute1':'attValue1','attribute2':'attValue2'}} ,
{'entry':'entry2','attributes':{'attribute3':'attValue1'}}] The Entry is mapped with the constant ENTRY and the
Attributes is a Map, which has the key ATRRIBUTEStrue if all entries could be added, false if the tree is already prepared for searchingorg.neo4j.shell.util.json.JSONExceptionpublic static boolean prepareDictTreeForSearch(org.neo4j.graphdb.GraphDatabaseService graphDb,
String jsonACDict)
throws IOException,
org.neo4j.shell.util.json.JSONException
graphDb - - Graphdatabasename - - Name of the dictionarytrue if the tree is prepared, false if tree does not existIOExceptionorg.neo4j.shell.util.json.JSONExceptionpublic static boolean unprepareDictTree(org.neo4j.graphdb.GraphDatabaseService graphDb,
String name)
throws IOException,
org.neo4j.shell.util.json.JSONException
graphDb - - GraphDatabasename - - Name of the dictionarytrue if the DictTree is unprepared, false if the DictTree does not existIOExceptionorg.neo4j.shell.util.json.JSONExceptionCopyright © 2017 JULIE Lab Jena, Germany. All rights reserved.