public interface UserRepository extends Iterable<User>
| Modifier and Type | Method and Description |
|---|---|
User |
get(String name) |
boolean |
isValidName(String name)
Utility for API consumers to tell if #save() will accept a given username
|
boolean |
isValidToken(String token)
Utility for API consumers to tell if #save() will accept a given token
|
int |
numberOfUsers() |
void |
save(User user)
Saves a user, given that the users token is unique.
|
void save(User user) throws IllegalTokenException, IOException, IllegalUsernameException
int numberOfUsers()
boolean isValidName(String name)
boolean isValidToken(String token)
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.