Partly working security: registration form, authorisaztion, simple authentication
[proteocache.git] / engine / compbio / proteocache / users / UserManager.java
diff --git a/engine/compbio/proteocache/users/UserManager.java b/engine/compbio/proteocache/users/UserManager.java
new file mode 100644 (file)
index 0000000..48f3fb3
--- /dev/null
@@ -0,0 +1,21 @@
+package compbio.proteocache.users;
+
+import java.util.List;
+
+import compbio.proteocache.users.User;
+
+public interface UserManager {
+
+       public boolean addUser(User user);
+
+       public boolean saveUser(User user);
+
+       public boolean deleteUser(long id);
+
+       public User getUserById(long id);
+
+       public User getUserByEmail(String email);
+
+       public List<User> findAllUsers();
+
+}