[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...

Gavin King gavin.king at jboss.com
Tue Feb 27 10:03:08 EST 2007


  User: gavin   
  Date: 07/02/27 10:03:08

  Modified:    src/main/org/jboss/seam/security  Identity.java
  Log:
  support entities with no @Entity annotation
  
  Revision  Changes    Path
  1.73      +1 -2      jboss-seam/src/main/org/jboss/seam/security/Identity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Identity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -b -r1.72 -r1.73
  --- Identity.java	25 Feb 2007 06:04:34 -0000	1.72
  +++ Identity.java	27 Feb 2007 15:03:08 -0000	1.73
  @@ -26,7 +26,6 @@
   
   import org.jboss.seam.Component;
   import org.jboss.seam.Entity;
  -import org.jboss.seam.Model;
   import org.jboss.seam.ScopeType;
   import org.jboss.seam.Seam;
   import org.jboss.seam.annotations.Create;
  @@ -562,7 +561,7 @@
   
      public void checkEntityPermission(Object entity, EntityAction action)
      {      
  -      Entity e = (Entity) Model.forClass(entity.getClass());
  +      Entity e = Entity.forClass(entity.getClass());
         
         if (e != null)
         {
  
  
  



More information about the jboss-cvs-commits mailing list