Constructor and Description |
---|
CredentialGraph(Graph graph) |
Modifier and Type | Method and Description |
---|---|
long |
countUsers()
Get a count of the number of users in the database.
|
Vertex |
createUser(String username,
String password)
Creates a new user.
|
static CredentialGraph |
credentials(Graph graph)
Wrap up any
Graph instance in the CredentialGraph DSL. |
Vertex |
findUser(String username)
Finds a user by username and return
null if one could not be found. |
long |
removeUser(String username)
Removes a user by name.
|
String |
toString() |
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–2018 Apache Software Foundation. All rights reserved.