|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.bryansaunders.jee6divelog.service.UserAccountService
public class UserAccountService
User Service for Working with User.
Constructor Summary | |
---|---|
UserAccountService()
|
Method Summary | |
---|---|
boolean |
clearApiKey(java.lang.String username)
Reset the API Key for the specified user. |
UserAccount |
createUser(UserAccount user)
Creates a new User. |
java.util.List<UserAccount> |
findByExample(UserAccount example)
Finds all the Users that Match the provided Example. |
UserAccount |
findByUserEmail(java.lang.String username)
Find a User by their Username. |
java.util.List<UserAccount> |
getAll()
Gets all the Users. |
UserAccount |
saveUser(UserAccount userAccount)
Saves the Given User. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserAccountService()
Method Detail |
---|
public UserAccount createUser(UserAccount user)
user
- User to Create.
public UserAccount findByUserEmail(java.lang.String username)
username
- Username to search for
public UserAccount saveUser(UserAccount userAccount)
userAccount
- User to save.
public boolean clearApiKey(java.lang.String username)
username
- User to reset API Key for
public java.util.List<UserAccount> findByExample(UserAccount example)
example
- Example User
public java.util.List<UserAccount> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |