org.directdemocracyportal.democracy.service
Interface UserService

Package class diagram package UserService
All Known Implementing Classes:
UserServiceImpl

public interface UserService

The Interface UserService.


Method Summary
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.
 

Method Detail

register

User register(RegisterCommand command,
              java.lang.String sessionId)
              throws UserAlreadyExistException
Register.

Parameters:
command - the command
sessionId - the session id
Returns:
the user
Throws:
UserAlreadyExistException - the user already exist exception

logout

void logout(User user)
Logout.

Parameters:
user - the user

login

User login(java.lang.String username,
           java.lang.String password,
           java.lang.String sessionId)
Login.

Parameters:
username - the username
password - the password
sessionId - the session id
Returns:
the user

getUsers

java.util.List<User> getUsers()
Gets the users.

Returns:
the users

getUser

User getUser(java.lang.Long userId)
Gets the user.

Parameters:
userId - the user id
Returns:
the user

getPortals

java.util.List<Portal> getPortals()
Gets the portals.

Returns:
the portals

endActiveUserSessions

void endActiveUserSessions()
End active user sessions.



Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.