packaging updated
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / datahandler / DataHandler.java
CommitLineData
5555b609
M
1/*\r
2 * Copyright (c) 2015 Berner Fachhochschule, Switzerland.\r
3 *\r
4 * Project Smart Reservation System.\r
5 *\r
6 * Distributable under GPL license. See terms of license at gnu.org.\r
7 */\r
e3535133
M
8package ch.bfh.ti.srs.datahandler;\r
9\r
5c0ee08b 10import ch.bfh.ti.srs.dataschema.User;\r
5555b609 11\r
1ec0e01f
M
12/**\r
13 * @author Michael Grossen\r
14 */\r
06726c50 15public interface DataHandler {\r
1f7b5004
M
16 \r
17 /**\r
18 * Finds the user by userName param in the Datacontext and returns the User object or null if not found\r
19 * \r
20 * @param userName userName of the user you are looking for\r
21 * @return <code>User</code>user object\r
22 * <code>null</code>if no user found with this userName\r
23 */\r
1ec0e01f 24 public User findUser(String userName);\r
1f7b5004
M
25 \r
26 /**\r
27 * Adds a user to the Datacontext from a given user object\r
28 * \r
29 * @param user User object\r
30 * @throws Exception\r
31 */\r
1ec0e01f 32 public void addUser(User user) throws Exception;\r
5555b609 33}\r