Login.
00058 {
00059 if (userId == null) {
00060 String message = "Missing user id.";
00061 logger.error(message);
00062 throw new InvalidInputException(message);
00063 }
00064 if (password == null) {
00065 String message = "Missing password.";
00066 logger.error(message);
00067 throw new InvalidInputException(message);
00068 }
00069 if (connection == null) {
00070 String message = "Not connected.";
00071 logger.error(message);
00072 throw new ModelException(message);
00073 }
00074 connection.login(userId, password);
00075 logger.info("New login from user " + userId );
00076 return connection.isConnected();
00077 }