public interface UserRepository<U extends RestxPrincipal>
| Modifier and Type | Method and Description |
|---|---|
U |
defaultAdmin()
Returns the default admin to use if none is defined and authentication succeeds.
|
com.google.common.base.Optional<String> |
findCredentialByUserName(String name)
Finds a user credentials by userName
|
com.google.common.base.Optional<U> |
findUserByName(String name)
Finds a user by name in the repository.
|
boolean |
isAdminDefined()
Tells wether a restx admin is defined in this repository.
|
com.google.common.base.Optional<U> findUserByName(String name)
name - com.google.common.base.Optional<String> findCredentialByUserName(String name)
name - boolean isAdminDefined()
U defaultAdmin()
Copyright © 2014. All Rights Reserved.