[seam-commits] Seam SVN: r13278 - examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat Jun 19 19:02:17 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-06-19 19:02:17 -0400 (Sat, 19 Jun 2010)
New Revision: 13278

Added:
   examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentUserManager.java
Removed:
   examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/AccountHolder.java
Log:
better name

Deleted: examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/AccountHolder.java
===================================================================
--- examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/AccountHolder.java	2010-06-19 23:00:46 UTC (rev 13277)
+++ examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/AccountHolder.java	2010-06-19 23:02:17 UTC (rev 13278)
@@ -1,52 +0,0 @@
-/* 
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.seam.examples.booking.account;
-
-import javax.ejb.Stateful;
-import javax.enterprise.context.SessionScoped;
-import javax.enterprise.event.Observes;
-import javax.enterprise.inject.Produces;
-import javax.inject.Named;
-
-import org.jboss.seam.examples.booking.model.User;
-
-/**
- * Exposes the currently logged in user
- * 
- * @author Dan Allen
- */
- at Stateful @SessionScoped
-public class AccountHolder
-{
-   private User currentUser;
-
-   @Produces @Authenticated @Named("currentUser")
-   public User getCurrentAccount()
-   {
-      return currentUser;
-   }
-
-   public void onLogin(@Observes @Authenticated User user)
-   {
-      currentUser = user;
-   }
-}

Copied: examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentUserManager.java (from rev 13277, examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/AccountHolder.java)
===================================================================
--- examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentUserManager.java	                        (rev 0)
+++ examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentUserManager.java	2010-06-19 23:02:17 UTC (rev 13278)
@@ -0,0 +1,52 @@
+/* 
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.seam.examples.booking.account;
+
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.Produces;
+import javax.inject.Named;
+
+import org.jboss.seam.examples.booking.model.User;
+
+/**
+ * Exposes the currently logged in user
+ * 
+ * @author Dan Allen
+ */
+ at Stateful @SessionScoped
+public class CurrentUserManager
+{
+   private User currentUser;
+
+   @Produces @Authenticated @Named("currentUser")
+   public User getCurrentAccount()
+   {
+      return currentUser;
+   }
+
+   public void onLogin(@Observes @Authenticated User user)
+   {
+      currentUser = user;
+   }
+}



More information about the seam-commits mailing list