org.androidpn.server.service.impl
Class UserServiceImpl

java.lang.Object
  extended by org.androidpn.server.service.impl.UserServiceImpl
All Implemented Interfaces:
UserService

public class UserServiceImpl
extends java.lang.Object
implements UserService

This class is the implementation of UserService.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
UserServiceImpl()
           
 
Method Summary
 User getUser(java.lang.String userId)
           
 User getUserByUsername(java.lang.String username)
           
 java.util.List<User> getUsers()
           
 void removeUser(java.lang.Long userId)
           
 User saveUser(User user)
           
 void setUserDao(UserDao userDao)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserServiceImpl

public UserServiceImpl()
Method Detail

setUserDao

public void setUserDao(UserDao userDao)

getUser

public User getUser(java.lang.String userId)
Specified by:
getUser in interface UserService

getUsers

public java.util.List<User> getUsers()
Specified by:
getUsers in interface UserService

saveUser

public User saveUser(User user)
              throws UserExistsException
Specified by:
saveUser in interface UserService
Throws:
UserExistsException

getUserByUsername

public User getUserByUsername(java.lang.String username)
                       throws UserNotFoundException
Specified by:
getUserByUsername in interface UserService
Throws:
UserNotFoundException

removeUser

public void removeUser(java.lang.Long userId)
Specified by:
removeUser in interface UserService