New Jide License
[indepmod/experimental.git] / IndependentModeler / src / cz / cvut / promod / services / userService / UserService.java
blobe770ba1cefcc114f184431b17d24b6e7b1e381fb
1 package cz.cvut.promod.services.userService;
3 import cz.cvut.promod.services.Service;
4 import com.jgoodies.binding.value.ValueModel;
6 /**
7 * ProMod, master thesis project
8 * User: Petr Zverina, petr.zverina@gmail.com
9 * Date: 17:43:19, 10.10.2009
12 /**
13 * UserService interface.
15 * UserService holds the user identification.
17 public interface UserService extends Service {
19 /**
20 * Returns the identifier of logged user.
22 * @return user's identifier
24 public String getUser();
26 /**
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();
33 /**
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);