Skip to content

Commit 7fbe696

Browse files
author
Mark
committed
Merge remote-tracking branch 'origin/3.0'
2 parents 3d71465 + e72d160 commit 7fbe696

31 files changed

+1728
-2611
lines changed

src/main/java/com/arangodb/ArangoConfigure.java

Lines changed: 56 additions & 140 deletions
Large diffs are not rendered by default.

src/main/java/com/arangodb/ArangoDriver.java

Lines changed: 122 additions & 829 deletions
Large diffs are not rendered by default.

src/main/java/com/arangodb/BaseArangoDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ protected String createEndpointUrl(String database, String str, Object... paths)
407407
return createEndpointUrl(database, newPaths);
408408
}
409409

410-
protected String createUserEndpointUrl(String database, Object... paths) throws ArangoException {
411-
return createEndpointUrl(database, "/_api/user", paths);
410+
protected String createUserEndpointUrl(Object... paths) throws ArangoException {
411+
return createEndpointUrl(null, "/_api/user", paths);
412412
}
413413

414414
protected String createJobEndpointUrl(String database, Object... paths) throws ArangoException {

src/main/java/com/arangodb/InternalCursorDriver.java

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -93,36 +93,8 @@ public <V, E> ShortestPathEntity<V, E> getShortestPath(
9393
ShortestPathOptions shortestPathOptions,
9494
AqlQueryOptions aqlQueryOptions,
9595
Class<V> vertexClass,
96-
Class<E> edgeClass) throws ArangoException;
97-
98-
@Deprecated
99-
<T> CursorEntity<T> executeQuery(
100-
String database,
101-
String query,
102-
Map<String, Object> bindVars,
103-
Class<T> clazz,
104-
Boolean calcCount,
105-
Integer batchSize,
106-
Boolean fullCount) throws ArangoException;
107-
108-
@Deprecated
109-
<T> CursorResultSet<T> executeQueryWithResultSet(
110-
String database,
111-
String query,
112-
Map<String, Object> bindVars,
113-
Class<T> clazz,
114-
Boolean calcCount,
115-
Integer batchSize,
116-
Boolean fullCount) throws ArangoException;
117-
118-
@Deprecated
119-
<T> CursorResultSet<T> executeQueryWithResultSet(
120-
String database,
121-
String query,
122-
Map<String, Object> bindVars,
123-
Class<T> clazz,
124-
Boolean calcCount,
125-
Integer batchSize) throws ArangoException;
96+
Class<E> edgeClass,
97+
ArangoDriver driver) throws ArangoException;
12698

12799
QueryTrackingPropertiesEntity getQueryTrackingProperties(String database) throws ArangoException;
128100

src/main/java/com/arangodb/InternalGraphDriver.java

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,16 @@
2121

2222
package com.arangodb;
2323

24-
import java.util.Collection;
2524
import java.util.List;
2625

27-
import com.arangodb.entity.CursorEntity;
2826
import com.arangodb.entity.DeletedEntity;
29-
import com.arangodb.entity.Direction;
3027
import com.arangodb.entity.EdgeDefinitionEntity;
3128
import com.arangodb.entity.EdgeEntity;
32-
import com.arangodb.entity.FilterCondition;
3329
import com.arangodb.entity.GraphEntity;
3430
import com.arangodb.entity.GraphsEntity;
3531
import com.arangodb.entity.marker.VertexEntity;
3632
import com.arangodb.impl.BaseDriverInterface;
3733

38-
@SuppressWarnings("deprecation")
3934
public interface InternalGraphDriver extends BaseDriverInterface {
4035

4136
/**
@@ -117,7 +112,8 @@ GraphEntity createGraph(
117112
* @return List<String>
118113
* @throws ArangoException
119114
*/
120-
List<String> getVertexCollections(String databaseName, String graphName) throws ArangoException;
115+
List<String> getVertexCollections(String databaseName, String graphName, boolean excludeOrphan)
116+
throws ArangoException;
121117

122118
/**
123119
*
@@ -468,35 +464,4 @@ <T> EdgeEntity<T> updateEdge(
468464
Long ifMatchRevision,
469465
Long ifNoneMatchRevision) throws ArangoException;
470466

471-
/**
472-
*
473-
*
474-
* @param database
475-
* @param graphName
476-
* @param vertexKey
477-
* @param clazz
478-
* @param batchSize
479-
* @param limit
480-
* @param count
481-
* @param direction
482-
* @param labels
483-
* @param driver
484-
* @param properties
485-
* @return a CursorEntity object
486-
* @throws ArangoException
487-
*/
488-
@Deprecated
489-
<T> CursorEntity<EdgeEntity<T>> getEdges(
490-
String database,
491-
String graphName,
492-
String vertexKey,
493-
Class<T> clazz,
494-
Integer batchSize,
495-
Integer limit,
496-
Boolean count,
497-
Direction direction,
498-
Collection<String> labels,
499-
ArangoDriver driver,
500-
FilterCondition... properties) throws ArangoException;
501-
502467
}

src/main/java/com/arangodb/InternalSimpleDriver.java

Lines changed: 0 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import java.util.Map;
44

5-
import com.arangodb.entity.CursorEntity;
6-
import com.arangodb.entity.DocumentEntity;
75
import com.arangodb.entity.ScalarExampleEntity;
86
import com.arangodb.entity.SimpleByResultEntity;
97
import com.arangodb.impl.BaseDriverInterface;
@@ -13,77 +11,13 @@
1311
*/
1412
public interface InternalSimpleDriver extends BaseDriverInterface {
1513

16-
@Deprecated
17-
<T> CursorEntity<T> executeSimpleAll(String database, String collectionName, int skip, int limit, Class<T> clazz)
18-
throws ArangoException;
19-
20-
@Deprecated
21-
<T> CursorResultSet<T> executeSimpleAllWithResultSet(
22-
String database,
23-
String collectionName,
24-
int skip,
25-
int limit,
26-
Class<T> clazz) throws ArangoException;
27-
28-
@Deprecated
29-
<T> CursorEntity<DocumentEntity<T>> executeSimpleAllWithDocument(
30-
String database,
31-
String collectionName,
32-
int skip,
33-
int limit,
34-
Class<T> clazz) throws ArangoException;
35-
36-
@Deprecated
37-
<T> CursorResultSet<DocumentEntity<T>> executeSimpleAllWithDocumentResultSet(
38-
String database,
39-
String collectionName,
40-
int skip,
41-
int limit,
42-
Class<T> clazz) throws ArangoException;
43-
4414
<T> DocumentCursor<T> executeSimpleAllDocuments(
4515
String database,
4616
String collectionName,
4717
int skip,
4818
int limit,
4919
Class<T> clazz) throws ArangoException;
5020

51-
@Deprecated
52-
<T> CursorEntity<T> executeSimpleByExample(
53-
String database,
54-
String collectionName,
55-
Map<String, Object> example,
56-
int skip,
57-
int limit,
58-
Class<T> clazz) throws ArangoException;
59-
60-
@Deprecated
61-
<T> CursorResultSet<T> executeSimpleByExampleWithResultSet(
62-
String database,
63-
String collectionName,
64-
Map<String, Object> example,
65-
int skip,
66-
int limit,
67-
Class<T> clazz) throws ArangoException;
68-
69-
@Deprecated
70-
<T> CursorEntity<DocumentEntity<T>> executeSimpleByExampleWithDocument(
71-
String database,
72-
String collectionName,
73-
Map<String, Object> example,
74-
int skip,
75-
int limit,
76-
Class<T> clazz) throws ArangoException;
77-
78-
@Deprecated
79-
<T> CursorResultSet<DocumentEntity<T>> executeSimpleByExampleWithDocumentResultSet(
80-
String database,
81-
String collectionName,
82-
Map<String, Object> example,
83-
int skip,
84-
int limit,
85-
Class<T> clazz) throws ArangoException;
86-
8721
<T> DocumentCursor<T> executeSimpleByExampleDocuments(
8822
String database,
8923
String collectionName,
@@ -101,54 +35,6 @@ <T> ScalarExampleEntity<T> executeSimpleFirstExample(
10135
<T> ScalarExampleEntity<T> executeSimpleAny(String database, String collectionName, Class<T> clazz)
10236
throws ArangoException;
10337

104-
@Deprecated
105-
<T> CursorEntity<T> executeSimpleRange(
106-
String database,
107-
String collectionName,
108-
String attribute,
109-
Object left,
110-
Object right,
111-
Boolean closed,
112-
int skip,
113-
int limit,
114-
Class<T> clazz) throws ArangoException;
115-
116-
@Deprecated
117-
<T> CursorResultSet<T> executeSimpleRangeWithResultSet(
118-
String database,
119-
String collectionName,
120-
String attribute,
121-
Object left,
122-
Object right,
123-
Boolean closed,
124-
int skip,
125-
int limit,
126-
Class<T> clazz) throws ArangoException;
127-
128-
@Deprecated
129-
<T> CursorEntity<DocumentEntity<T>> executeSimpleRangeWithDocument(
130-
String database,
131-
String collectionName,
132-
String attribute,
133-
Object left,
134-
Object right,
135-
Boolean closed,
136-
int skip,
137-
int limit,
138-
Class<T> clazz) throws ArangoException;
139-
140-
@Deprecated
141-
<T> CursorResultSet<DocumentEntity<T>> executeSimpleRangeWithDocumentResultSet(
142-
String database,
143-
String collectionName,
144-
String attribute,
145-
Object left,
146-
Object right,
147-
Boolean closed,
148-
int skip,
149-
int limit,
150-
Class<T> clazz) throws ArangoException;
151-
15238
<T> DocumentCursor<T> executeSimpleRangeWithDocuments(
15339
String database,
15440
String collectionName,
@@ -184,50 +70,6 @@ SimpleByResultEntity executeSimpleUpdateByExample(
18470
Boolean waitForSync,
18571
Integer limit) throws ArangoException;
18672

187-
@Deprecated
188-
<T> CursorEntity<T> executeSimpleFulltext(
189-
String database,
190-
String collectionName,
191-
String attribute,
192-
String query,
193-
int skip,
194-
int limit,
195-
String index,
196-
Class<T> clazz) throws ArangoException;
197-
198-
@Deprecated
199-
<T> CursorResultSet<T> executeSimpleFulltextWithResultSet(
200-
String database,
201-
String collectionName,
202-
String attribute,
203-
String query,
204-
int skip,
205-
int limit,
206-
String index,
207-
Class<T> clazz) throws ArangoException;
208-
209-
@Deprecated
210-
<T> CursorEntity<DocumentEntity<T>> executeSimpleFulltextWithDocument(
211-
String database,
212-
String collectionName,
213-
String attribute,
214-
String query,
215-
int skip,
216-
int limit,
217-
String index,
218-
Class<T> clazz) throws ArangoException;
219-
220-
@Deprecated
221-
<T> CursorResultSet<DocumentEntity<T>> executeSimpleFulltextWithDocumentResultSet(
222-
String database,
223-
String collectionName,
224-
String attribute,
225-
String query,
226-
int skip,
227-
int limit,
228-
String index,
229-
Class<T> clazz) throws ArangoException;
230-
23173
<T> DocumentCursor<T> executeSimpleFulltextWithDocuments(
23274
String database,
23375
String collectionName,

src/main/java/com/arangodb/InternalUsersDriver.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@
1010
/**
1111
* Created by fbartels on 10/27/14.
1212
*/
13-
public interface InternalUsersDriver extends BaseDriverInterface {
14-
DefaultEntity createUser(String database, String username, String passwd, Boolean active,
15-
Map<String, Object> extra) throws ArangoException;
13+
public interface InternalUsersDriver extends BaseDriverInterface {
14+
DefaultEntity createUser(String username, String passwd, Boolean active, Map<String, Object> extra)
15+
throws ArangoException;
1616

17-
DefaultEntity deleteUser(String database, String username) throws ArangoException;
17+
DefaultEntity deleteUser(String username) throws ArangoException;
1818

19-
UserEntity getUser(String database, String username) throws ArangoException;
19+
UserEntity getUser(String username) throws ArangoException;
2020

21-
UsersEntity getUsers(String database) throws ArangoException;
21+
UsersEntity getUsers() throws ArangoException;
2222

23-
DefaultEntity replaceUser(String database, String username, String passwd, Boolean active,
24-
Map<String, Object> extra) throws ArangoException;
23+
DefaultEntity replaceUser(String username, String passwd, Boolean active, Map<String, Object> extra)
24+
throws ArangoException;
2525

26-
DefaultEntity updateUser(String database, String username, String passwd, Boolean active,
27-
Map<String, Object> extra) throws ArangoException;
26+
DefaultEntity updateUser(String username, String passwd, Boolean active, Map<String, Object> extra)
27+
throws ArangoException;
28+
29+
DefaultEntity grantDatabaseAccess(final String username, final String database) throws ArangoException;
2830
}

src/main/java/com/arangodb/entity/Direction.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)