Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused and no longer suppored files for the Traverser

  • Loading branch information...
commit e87ae7f716c77a57231fd07cdf98f17dd19219e6 1 parent 6f7faea
unknown authored
5 Neo4jRestNet/Neo4jRestNet.csproj
View
@@ -145,11 +145,6 @@
<Compile Include="Core\Relationship.cs" />
<Compile Include="Rest\Neo4jRestApi.cs" />
<Compile Include="Rest\HttpRest.cs" />
- <Compile Include="Rest\PathAlgorithm.cs" />
- <Compile Include="Rest\ReturnType.cs" />
- <Compile Include="Rest\ReturnFilter.cs" />
- <Compile Include="Rest\PruneEvaluator.cs" />
- <Compile Include="Rest\Order.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
59 Neo4jRestNet/Rest/INeo4jRestApi.cs
View
@@ -1,59 +0,0 @@
-using System.Collections.Generic;
-using System.Net;
-using Neo4jRestNet.Core;
-
-namespace Neo4jRestNet.Rest
-{
- public interface INeo4jRestApi
- {
- HttpStatusCode GetRoot(out string response);
- HttpStatusCode CreateNode(string jsonProperties, out string response);
- HttpStatusCode GetNode(long nodeId, out string response);
- HttpStatusCode SetPropertiesOnNode(long nodeId, string jsonProperties);
- HttpStatusCode GetPropertiesOnNode(long nodeId, out string response);
- HttpStatusCode RemovePropertiesFromNode(string dbUrl, long nodeId);
- HttpStatusCode SetPropertyOnNode(string dbUrl, long nodeId, string propertyName, object value);
- HttpStatusCode GetPropertyOnNode(string dbUrl, long nodeId, string propertyName, out string response);
- HttpStatusCode RemovePropertyFromNode(string dbUrl, long nodeId, string propertyName);
- HttpStatusCode DeleteNode(long nodeId);
- HttpStatusCode CreateRelationship(long fromNodeId, string toNodeSelf, string name, string jsonProperties, out string response);
- HttpStatusCode SetPropertiesOnRelationship(string dbUrl, long relationshipId, string jsonProperties);
- HttpStatusCode GetPropertiesOnRelationship(string dbUrl, long relationshipId, out string response);
- HttpStatusCode RemovePropertiesFromRelationship(string dbUrl, long relationshipId);
- HttpStatusCode SetPropertyOnRelationship(string dbUrl, long relationshipId, string propertyName, object value);
- HttpStatusCode GetPropertyOnRelationship(string dbUrl, long relationshipId, string propertyName, out string response);
- HttpStatusCode RemovePropertyFromRelationship(string dbUrl, long relationshipId, string propertyName);
- HttpStatusCode DeleteRelationship(string dbUrl, long relationshipId);
- HttpStatusCode GetRelationshipsOnNode(long nodeId, RelationshipDirection direction, IEnumerable<string> relationships, out string response);
- HttpStatusCode GetRelationshipTypes(string dbUrl, out string response);
- HttpStatusCode CreateNodeIndex(string dbUrl, string indexName, string jsonConfig, out string response);
- HttpStatusCode CreateRelationshipIndex(string dbUrl, string indexName, string jsonConfig, out string response);
- HttpStatusCode DeleteNodeIndex(string dbUrl, string indexName);
- HttpStatusCode DeleteRelationshipIndex(string dbUrl, string indexName);
- HttpStatusCode ListNodeIndexes(string dbUrl, out string response);
- HttpStatusCode ListRelationshipIndexes(string dbUrl, out string response);
- HttpStatusCode AddNodeToIndex(long nodeId, string indexName, string key, object value, out string response);
- HttpStatusCode AddNodeToIndex(string nodeSelf, string indexName, string key, object value, out string response);
- HttpStatusCode AddRelationshipToIndex(string dbUrl, long relationshipId, string indexName, string key, object value, out string response);
- HttpStatusCode AddRelationshipToIndex(string dbUrl, string relationshipself, string indexName, string key, object value, out string response);
- HttpStatusCode RemoveNodeFromIndex(long nodeId, string indexName, string key, object value);
- HttpStatusCode RemoveNodeFromIndex(long nodeId, string indexName, string key);
- HttpStatusCode RemoveNodeFromIndex(long nodeId, string indexName);
- HttpStatusCode RemoveRelationshipFromIndex(string dbUrl, long relationshipId, string indexName, string key, object value);
- HttpStatusCode RemoveRelationshipFromIndex(string dbUrl, long relationshipId, string indexName, string key);
- HttpStatusCode RemoveRelationshipFromIndex(string dbUrl, long relationshipId, string indexName);
- HttpStatusCode GetNode(string indexName, string key, object value, out string response);
- HttpStatusCode GetNode(string indexName, string searchQuery, out string response);
- HttpStatusCode GetRelationship(string dbUrl, string indexName, string key, object value, out string response);
- HttpStatusCode GetRelationship(string dbUrl, string indexName, string searchQuery, out string response);
-
- HttpStatusCode Traverse(long nodeId, Order order, Uniqueness uniqueness,
- IEnumerable<TraverseRelationship> relationships,
- PruneEvaluator pruneEvaluator, ReturnFilter returnFilter, int? maxDepth,
- ReturnType returnType, out string response);
-
- HttpStatusCode PathBetweenNodes(string dbUrl, long fromNodeId, long toNodeId,
- IEnumerable<TraverseRelationship> relationships, int maxDepth,
- PathAlgorithm algorithm, bool returnAllPaths, out string response);
- }
-}
22 Neo4jRestNet/Rest/Order.cs
View
@@ -1,22 +0,0 @@
-using Newtonsoft.Json.Linq;
-
-namespace Neo4jRestNet.Rest
-{
- public class Order
- {
- public static readonly Order BreadthFirst = new Order("breadth_first");
- public static readonly Order DepthFirst = new Order("depth_first");
-
- private readonly string _order;
-
- private Order(string order)
- {
- _order = order;
- }
-
- public JProperty ToJson()
- {
- return new JProperty("order", _order);
- }
- }
-}
22 Neo4jRestNet/Rest/PathAlgorithm.cs
View
@@ -1,22 +0,0 @@
-namespace Neo4jRestNet.Rest
-{
- public class PathAlgorithm
- {
- public static readonly PathAlgorithm ShortestPath = new PathAlgorithm("shortestPath");
- public static readonly PathAlgorithm AllPaths = new PathAlgorithm("allPaths");
- public static readonly PathAlgorithm AllSimplePaths = new PathAlgorithm("allSimplePaths ");
- public static readonly PathAlgorithm Dijkstra = new PathAlgorithm("dijkstra");
-
- private readonly string _pathAlgorithm;
-
- private PathAlgorithm(string pathAlgorithm)
- {
- _pathAlgorithm = pathAlgorithm;
- }
-
- public override string ToString()
- {
- return _pathAlgorithm;
- }
- }
-}
53 Neo4jRestNet/Rest/PruneEvaluator.cs
View
@@ -1,53 +0,0 @@
-using Newtonsoft.Json.Linq;
-
-namespace Neo4jRestNet.Rest
-{
- public class PruneEvaluator
- {
- public static readonly PruneEvaluator None = new PruneEvaluator("none");
-
- public enum Language
- {
- Javascript = 0
- }
-
- private readonly string _language;
- private readonly string _name;
- private readonly string _body;
-
- private PruneEvaluator(string builtin)
- {
- _language = "builtin";
- _name = builtin;
- _body = null;
- }
-
- public PruneEvaluator(Language language, string script)
- {
- _language = GetLanguageName(language);
- _name = null;
- _body = script;
- }
-
- private string GetLanguageName(Language language)
- {
- switch (language)
- {
- case Language.Javascript: return "javascript";
- default: return "javascript";
- }
- }
-
- public JProperty ToJson()
- {
- var jo = new JObject {{"language", _language}};
-
- if (_name != null)
- jo.Add("name", _name);
- else
- jo.Add("body", _body);
-
- return new JProperty("prune_evaluator", jo);
- }
- }
-}
54 Neo4jRestNet/Rest/ReturnFilter.cs
View
@@ -1,54 +0,0 @@
-using Newtonsoft.Json.Linq;
-
-namespace Neo4jRestNet.Rest
-{
- public class ReturnFilter
- {
- public static readonly ReturnFilter All = new ReturnFilter("all");
- public static readonly ReturnFilter AllButStartNode = new ReturnFilter("all_but_start_node");
-
- public enum Language
- {
- Javascript = 0
- }
-
- private readonly string _language;
- private readonly string _name;
- private readonly string _body;
-
- private ReturnFilter(string builtin)
- {
- _language = "builtin";
- _name = builtin;
- _body = null;
- }
-
- public ReturnFilter(Language language, string script)
- {
- _language = GetLanguageName(language);
- _name = null;
- _body = script;
- }
-
- private string GetLanguageName(Language language)
- {
- switch (language)
- {
- case Language.Javascript: return "javascript";
- default: return "javascript";
- }
- }
-
- public JProperty ToJson()
- {
- var jo = new JObject {{"language", _language}};
-
- if (_name != null)
- jo.Add("name", _name);
- else
- jo.Add("body", _body);
-
- return new JProperty("return_filter", jo);
- }
- }
-}
22 Neo4jRestNet/Rest/ReturnType.cs
View
@@ -1,22 +0,0 @@
-namespace Neo4jRestNet.Rest
-{
- public class ReturnType
- {
- public static readonly ReturnType Node = new ReturnType("node");
- public static readonly ReturnType Relationship = new ReturnType("relationship");
- public static readonly ReturnType Path = new ReturnType("path");
- public static readonly ReturnType FullPath = new ReturnType("fullpath");
-
- private readonly string _returnType;
-
- private ReturnType(string returnType)
- {
- _returnType = returnType;
- }
-
- public override string ToString()
- {
- return _returnType;
- }
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.