Package org.jboss.seam

Examples of org.jboss.seam.Entity$NotEntityException


      this.jaasConfigName = jaasConfigName;
   }

   public void checkEntityPermission(Object entity, EntityAction action)
   {     
      Entity e = Entity.forClass(entity.getClass());
     
      if (e != null)
      {
         String name = Seam.getComponentName(entity.getClass());
         if (name == null) name = entity.getClass().getName()
        
         Method m = null;
         switch (action)
         {
            case READ:
               m = e.getPostLoadMethod();
               break;
            case INSERT:
               m = e.getPrePersistMethod();
               break;
            case UPDATE:
               m = e.getPreUpdateMethod();
               break;
            case DELETE:
               m = e.getPreRemoveMethod();
         }
        
         Restrict restrict = null;
        
         if (m != null && m.isAnnotationPresent(Restrict.class))
View Full Code Here

TOP

Related Classes of org.jboss.seam.Entity$NotEntityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.