1 package cz
.cvut
.promod
.services
.userService
;
3 import cz
.cvut
.promod
.services
.Service
;
4 import com
.jgoodies
.binding
.value
.ValueModel
;
7 * ProMod, master thesis project
8 * User: Petr Zverina, petr.zverina@gmail.com
9 * Date: 17:43:19, 10.10.2009
13 * UserService interface.
15 * UserService holds the user identification.
17 public interface UserService
extends Service
{
20 * Returns the identifier of logged user.
22 * @return user's identifier
24 public String
getUser();
27 * Returns the observable value model representing the user's identifier.
29 * @return observable value model representing the user's identifier
31 public ValueModel
getUserValueModel();
34 * Changes the actual user.
36 * @param user is the identifier of the new user, an empty string stands for no user
38 public void setUser(final String user
);