|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.directdemocracyportal.democracy.service.UserServiceImpl
@Transactional(propagation=REQUIRED) public class UserServiceImpl extends java.lang.Object implements UserService
The Class UserServiceImpl.
Constructor and Description |
---|
UserServiceImpl(UserDAO userDAO,
PortalDAO portalDAO,
PersonDAO personDAO,
UserSessionDAO userSessionDAO,
org.springframework.mail.javamail.JavaMailSenderImpl javaMailSenderImpl,
org.springframework.mail.SimpleMailMessage simpleMailMessage)
Instantiates a new user service impl. |
Modifier and Type | Method and Description |
---|---|
void |
endActiveUserSessions()
End active user sessions. |
java.util.List<Portal> |
getPortals()
Gets the portals. |
User |
getUser(java.lang.Long userId)
Gets the user. |
java.util.List<User> |
getUsers()
Gets the users. |
User |
login(java.lang.String username,
java.lang.String password,
java.lang.String sessionId)
Login. |
void |
logout(User user)
Logout. |
User |
register(RegisterCommand command,
java.lang.String sessionId)
Register. |
void |
sendEmailConfirmationRequest(RegisterCommand command)
Send email confirmation request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserServiceImpl(UserDAO userDAO, PortalDAO portalDAO, PersonDAO personDAO, UserSessionDAO userSessionDAO, org.springframework.mail.javamail.JavaMailSenderImpl javaMailSenderImpl, org.springframework.mail.SimpleMailMessage simpleMailMessage)
userDAO
- the user daoportalDAO
- the portal daopersonDAO
- the person daouserSessionDAO
- the user session daojavaMailSenderImpl
- the java mail sender implsimpleMailMessage
- the simple mail messageMethod Detail |
---|
public User register(RegisterCommand command, java.lang.String sessionId) throws UserAlreadyExistException
UserService
register
in interface UserService
command
- the commandsessionId
- the session idUserAlreadyExistException
- the user already exist exceptionpublic void sendEmailConfirmationRequest(RegisterCommand command)
command
- the commandpublic java.util.List<User> getUsers()
UserService
getUsers
in interface UserService
public User login(java.lang.String username, java.lang.String password, java.lang.String sessionId)
UserService
login
in interface UserService
username
- the usernamepassword
- the passwordsessionId
- the session idpublic void logout(User user)
UserService
logout
in interface UserService
user
- the userpublic java.util.List<Portal> getPortals()
UserService
getPortals
in interface UserService
public void endActiveUserSessions()
UserService
endActiveUserSessions
in interface UserService
public User getUser(java.lang.Long userId)
UserService
getUser
in interface UserService
userId
- the user id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |