|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserService
An UserService offers functionality according to the handling with
User
s.
User
Method Summary | |
---|---|
void |
changeUserPassword(UserPassword userPassword)
Change the current User s password. |
SystemUser |
createSystemUser()
Create and return the SystemUser . |
List<User> |
findAll()
Find and return all User s. |
User |
getTemplate(String username)
Return a transient User entity object, serving as a template. |
void |
remove(User user)
Remove an User . |
User |
save(User user)
Update the given User or persist it when it is a transient one. |
User |
saveUserProfile(User user,
UserPassword userPassword,
UserPreference... prefs)
Save changes on an User and additionally save the User's password
and preferences. |
void |
uploadImageFile(String username,
byte[] image)
Call this method to store an image for an User . |
Method Detail |
---|
void changeUserPassword(UserPassword userPassword)
User
s password.
userPassword
- The UserPassword
to changeList<User> findAll()
User
s.
User
svoid uploadImageFile(String username, byte[] image)
User
.
username
- Username of the User
image
- Image to be storedUser getTemplate(String username)
User
entity object, serving as a template.
username
- Username of the User
User
templateUser save(User user)
User
or persist it when it is a transient one.
user
- User
entity to save
User
instanceUser saveUserProfile(User user, UserPassword userPassword, UserPreference... prefs)
User
and additionally save the User's password
and preferences.
user
- The User
to changeuserPassword
- The User
s passwordprefs
- An array of UserPreference
objects
User
instancevoid remove(User user)
User
.
user
- User
to be removedSystemUser createSystemUser()
SystemUser
.
SystemUser
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |