|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.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 message| Method Detail |
|---|
public User register(RegisterCommand command,
java.lang.String sessionId)
throws UserAlreadyExistException
UserService
register in interface UserServicecommand - 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 UserServiceusername - the usernamepassword - the passwordsessionId - the session idpublic void logout(User user)
UserService
logout in interface UserServiceuser - the userpublic java.util.List<Portal> getPortals()
UserService
getPortals in interface UserServicepublic void endActiveUserSessions()
UserService
endActiveUserSessions in interface UserServicepublic User getUser(java.lang.Long userId)
UserService
getUser in interface UserServiceuserId - the user id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||