Permalink
Browse files

added UserMgt

  • Loading branch information...
1 parent e74e3b3 commit 68eb7328746c716af1b4f265c31a5dee39ed35eb carl committed Jun 9, 2011
Showing with 30 additions and 0 deletions.
  1. +9 −0 project/src/bean/IUserMgt.java
  2. +21 −0 project/src/bean/UserMgt.java
View
9 project/src/bean/IUserMgt.java
@@ -0,0 +1,9 @@
+package bean;
+
+import bean.Calendar;
+
+public interface IUserMgt
+{
+ public void login(String name, String email);
+ public Calendar getUserCalendar(String email);
+}
View
21 project/src/bean/UserMgt.java
@@ -0,0 +1,21 @@
+package bean;
+
+import bean.Calendar;
+import javax.ejb.Remote;
+
+// @Stateful
+@Remote(ShoppingCart.class)
+public class UserMgt implements IUserMgt, java.io.Serializable
+{
+ public void login(String name, String email)
+ {
+ // TODO find user or create one
+ return;
+ }
+
+ public Calendar getUserCalendar(String email)
+ {
+ // TODO find user and get his calendar
+ return null;
+ }
+}

0 comments on commit 68eb732

Please sign in to comment.