DataHandlerForTestsTest added,
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / core / 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
8package ch.bfh.ti.srs.core;\r
9\r
1ec0e01f
M
10/**\r
11 * @author Michael Grossen\r
12 */\r
06726c50 13public interface DataHandler {\r
1f7b5004
M
14 \r
15 /**\r
16 * Finds the user by userName param in the Datacontext and returns the User object or null if not found\r
17 * \r
18 * @param userName userName of the user you are looking for\r
19 * @return <code>User</code>user object\r
20 * <code>null</code>if no user found with this userName\r
21 */\r
1ec0e01f 22 public User findUser(String userName);\r
1f7b5004
M
23 \r
24 /**\r
25 * Adds a user to the Datacontext from a given user object\r
26 * \r
27 * @param user User object\r
28 * @throws Exception\r
29 */\r
1ec0e01f 30 public void addUser(User user) throws Exception;\r
5555b609 31}\r