[jboss-cvs] jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay ...

Shane Bryzak sbryzak at redhat.com
Wed Apr 11 11:41:05 EDT 2007


  User: sbryzak2
  Date: 07/04/11 11:41:05

  Modified:    examples/seambay/src/org/jboss/seam/example/seambay   
                        AuctionAction.java AuctionService.java
                        AuctionServiceRemote.java
  Log:
  Additional web services
  
  Revision  Changes    Path
  1.2       +9 -1      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AuctionAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- AuctionAction.java	10 Apr 2007 01:42:38 -0000	1.1
  +++ AuctionAction.java	11 Apr 2007 15:41:04 -0000	1.2
  @@ -3,6 +3,7 @@
   import static org.jboss.seam.ScopeType.CONVERSATION;
   import java.io.Serializable;
   import java.util.Calendar;
  +import java.util.Date;
   import java.util.GregorianCalendar;
   
   import javax.persistence.EntityManager;
  @@ -34,10 +35,17 @@
      {
         auction = new Auction();
         auction.setUser(authenticatedUser);
  +      
  +      //auction.setStatus(Auction.STATUS_UNLISTED);
  +      
  +      // temporary
  +      auction.setStatus(Auction.STATUS_LIVE);
  +      auction.setEndDate(new Date(System.currentTimeMillis() + (1000 * 60 * 60 * 24 * 7)));
  +      
         entityManager.persist(auction);     
      }   
         
  -   @Begin
  +   @Begin(join = true)
      public void editAuction(Integer auctionId)
      {
         auction = entityManager.find(Auction.class, auctionId);
  
  
  
  1.6       +9 -0      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AuctionService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- AuctionService.java	10 Apr 2007 01:42:38 -0000	1.5
  +++ AuctionService.java	11 Apr 2007 15:41:04 -0000	1.6
  @@ -50,6 +50,15 @@
      }
      
      @WebMethod
  +   public void updateAuction(int auctionId, String title, String description, int categoryId)
  +   {
  +      AuctionAction action = (AuctionAction) Component.getInstance(AuctionAction.class, true);
  +      
  +      action.editAuction(auctionId);
  +      action.setDetails(title, description, categoryId);
  +   }
  +   
  +   @WebMethod
      public Auction[] findAuctions(String searchTerm)
      {
         AuctionSearchAction search = (AuctionSearchAction) Component.getInstance(
  
  
  
  1.4       +2 -1      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionServiceRemote.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AuctionServiceRemote.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionServiceRemote.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- AuctionServiceRemote.java	10 Apr 2007 01:42:38 -0000	1.3
  +++ AuctionServiceRemote.java	11 Apr 2007 15:41:04 -0000	1.4
  @@ -9,8 +9,9 @@
      boolean logout();
      
      Category[] listCategories();
  -   Integer createAuction(String title, String description, int categoryId);
      
  +   Integer createAuction(String title, String description, int categoryId);   
  +   void updateAuction(int auctionId, String title, String description, int categoryId);
      
      Auction[] findAuctions(String searchTerm);
   
  
  
  



More information about the jboss-cvs-commits mailing list