public interface UserRepository
| Modifier and Type | Method and Description |
|---|---|
void |
create(User user)
Create a user, given that the users token is unique.
|
boolean |
delete(User user)
Deletes a user.
|
User |
findByName(String name) |
boolean |
isValidName(String name)
Utility for API consumers to tell if #save() will accept a given username
|
int |
numberOfUsers() |
void |
update(User existingUser,
User updatedUser)
Update a user, given that the users token is unique.
|
void create(User user) throws IllegalCredentialsException, IOException
user - the new user objectIllegalCredentialsException - if the username is not validIOExceptionvoid update(User existingUser, User updatedUser) throws ConcurrentModificationException, IOException
existingUser - the existing user object, which must match the current state in this repositoryupdatedUser - the updated user objectConcurrentModificationException - if the existingUser does not match the current state in the repositoryIOExceptionboolean delete(User user) throws IOException
user - the user to deleteIOExceptionint numberOfUsers()
boolean isValidName(String name)
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.