CredentialTraversalDsl
.@Deprecated public class CredentialGraph extends Object
Graph
is transactional, new transactions will be started for each method call.Constructor and Description |
---|
CredentialGraph(Graph graph)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
countUsers()
Deprecated.
Get a count of the number of users in the database.
|
Vertex |
createUser(String username,
String password)
Deprecated.
Creates a new user.
|
static CredentialGraph |
credentials(Graph graph)
Deprecated.
Wrap up any
Graph instance in the CredentialGraph DSL. |
Vertex |
findUser(String username)
Deprecated.
Finds a user by username and return
null if one could not be found. |
long |
removeUser(String username)
Deprecated.
Removes a user by name.
|
String |
toString()
Deprecated.
|
public CredentialGraph(Graph graph)
public Vertex findUser(String username)
null
if one could not be found.IllegalStateException
- if there is more than one user with a particular username.public Vertex createUser(String username, String password)
public long removeUser(String username)
public long countUsers()
public static CredentialGraph credentials(Graph graph)
Graph
instance in the CredentialGraph
DSL.Copyright © 2013–2020 Apache Software Foundation. All rights reserved.