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