@@ -215,8 +215,8 @@ public Boolean drop() throws ArangoDBException {
215215 }
216216
217217 /**
218- * Grants or revoke access to the database for user user. You need permission to the _system database in order to
219- * execute this call.
218+ * Grants or revoke access to the database for user <code> user</code> . You need permission to the _system database
219+ * in order to execute this call.
220220 *
221221 * @see <a href= "https://docs.arangodb.com/current/HTTP/UserManagement/index.html#grant-or-revoke-database-access">
222222 * API Documentation</a>
@@ -231,8 +231,8 @@ public void grantAccess(final String user, final Permissions permissions) throws
231231 }
232232
233233 /**
234- * Grants access to the database for user user. You need permission to the _system database in order to execute this
235- * call.
234+ * Grants access to the database for user <code> user</code> . You need permission to the _system database in order to
235+ * execute this call.
236236 *
237237 * @see <a href= "https://docs.arangodb.com/current/HTTP/UserManagement/index.html#grant-or-revoke-database-access">
238238 * API Documentation</a>
@@ -245,8 +245,8 @@ public void grantAccess(final String user) throws ArangoDBException {
245245 }
246246
247247 /**
248- * Revokes access to the database dbname for user user. You need permission to the _system database in order to
249- * execute this call.
248+ * Revokes access to the database dbname for user <code> user</code> . You need permission to the _system database in
249+ * order to execute this call.
250250 *
251251 * @see <a href= "https://docs.arangodb.com/current/HTTP/UserManagement/index.html#grant-or-revoke-database-access">
252252 * API Documentation</a>
@@ -265,16 +265,59 @@ public void revokeAccess(final String user) throws ArangoDBException {
265265 * API Documentation</a>
266266 * @param user
267267 * The name of the user
268+ * @since ArangoDB 3.2.0
268269 * @throws ArangoDBException
269270 */
270271 public void resetAccess (final String user ) throws ArangoDBException {
271272 executor .execute (resetAccessRequest (user ), Void .class );
272273 }
273274
274- public void updateUserDefaultCollectionAccess (final String user , final Permissions permissions ) {
275+ /**
276+ * Sets the default access level for collections within this database for the user <code>user</code>. You need
277+ * permission to the _system database in order to execute this call.
278+ *
279+ * @param user
280+ * The name of the user
281+ * @param permissions
282+ * The permissions the user grant
283+ * @since ArangoDB 3.2.0
284+ * @throws ArangoDBException
285+ */
286+ public void grantDefaultCollectionAccess (final String user , final Permissions permissions )
287+ throws ArangoDBException {
288+ executor .execute (updateUserDefaultCollectionAccessRequest (user , permissions ), Void .class );
289+ }
290+
291+ /**
292+ * @deprecated use {@link #grantDefaultCollectionAccess(String, Permissions)} instead
293+ * @param user
294+ * The name of the user
295+ * @param permissions
296+ * The permissions the user grant
297+ * @since ArangoDB 3.2.0
298+ * @throws ArangoDBException
299+ */
300+ @ Deprecated
301+ public void updateUserDefaultCollectionAccess (final String user , final Permissions permissions )
302+ throws ArangoDBException {
275303 executor .execute (updateUserDefaultCollectionAccessRequest (user , permissions ), Void .class );
276304 }
277305
306+ /**
307+ * Get specific database access level
308+ *
309+ * @see <a href= "https://docs.arangodb.com/current/HTTP/UserManagement/#get-the-database-access-level"> API
310+ * Documentation</a>
311+ * @param user
312+ * The name of the user
313+ * @return permissions of the user
314+ * @since ArangoDB 3.2.0
315+ * @throws ArangoDBException
316+ */
317+ public Permissions getPermissions (final String user ) throws ArangoDBException {
318+ return executor .execute (getPermissionsRequest (user ), getPermissionsResponseDeserialzer ());
319+ }
320+
278321 /**
279322 * Create a cursor and return the first results
280323 *
0 commit comments