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

Shane Bryzak Shane_Bryzak at symantec.com
Wed Jan 17 08:44:55 EST 2007


  User: sbryzak2
  Date: 07/01/17 08:44:55

  Modified:    examples/seamspace/src/org/jboss/seam/example/seamspace  
                        BlogAction.java BlogLocal.java
  Log:
  added seam-text support, other minor stuff
  
  Revision  Changes    Path
  1.7       +12 -0     jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/BlogAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/BlogAction.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- BlogAction.java	15 Jan 2007 10:12:42 -0000	1.6
  +++ BlogAction.java	17 Jan 2007 13:44:55 -0000	1.7
  @@ -18,6 +18,7 @@
   import org.jboss.seam.annotations.Out;
   import org.jboss.seam.annotations.RequestParameter;
   import org.jboss.seam.annotations.security.Restrict;
  +import org.jboss.seam.security.Identity;
   
   @Stateful
   @Name("blog")
  @@ -100,6 +101,11 @@
         comment.setBlog(selectedBlog);
      }
      
  +   public void previewComment()
  +   {
  +      // don't really need to do anything here...
  +   }
  +   
      public void saveComment()
      {      
         comment.setCommentDate(new Date());
  @@ -109,6 +115,12 @@
         entityManager.refresh(selectedBlog);
      }     
      
  +   public void createEntry()
  +   {
  +      Identity.instance().checkRestriction("#{s:hasPermission('blog', 'createEntry', selectedMember, authenticatedMember)}"); 
  +//      MemberBlog selectedBlog = new MemberBlog();              
  +   }
  +   
      @Remove @Destroy
      public void destroy() { }     
   }
  
  
  
  1.5       +2 -0      jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/BlogLocal.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogLocal.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/BlogLocal.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- BlogLocal.java	15 Jan 2007 09:48:13 -0000	1.4
  +++ BlogLocal.java	17 Jan 2007 13:44:55 -0000	1.5
  @@ -11,6 +11,8 @@
      void getMemberBlogs();
      void getBlog();
      void createComment();
  +   void previewComment();
      void saveComment();
  +   void createEntry();
      void destroy();
   }
  
  
  



More information about the jboss-cvs-commits mailing list