Examples of ExcludeListMetaData


Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

                  }
               }
         }

      // Process the exclude-list MethodMetaData
      ExcludeListMetaData excluded = bean.getExcludeList();
      if (excluded != null)
      {
         MethodsMetaData methods = excluded.getMethods();
         if (methods != null)
            for (org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods)
            {
               String[] params =
               {};
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

      JBossMetaData jbossMetaData = getJBossMetaDataWithCheck();
     
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
      {
         // No one is allowed to execute this method so add a role that
         // fails to equate to any Principal or Principal name and return.
         // We don't return null to differentiate between an explicit
         // assignment of no access and no assignment information.
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

    */
   public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
   {
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

         securityRoles = new SecurityRolesMetaData();
         assembly.setSecurityRoles(securityRoles);
      }
      super.processClass(securityRoles, beanClass);
      // @DenyAll
      ExcludeListMetaData excludes = assembly.getExcludeList();
      if(excludes == null)
      {
         excludes = new ExcludeListMetaData();
         assembly.setExcludeList(excludes);
      }
      super.processClass(excludes, beanClass);

      // @RolesAllowed, @PermitAll
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

    *
    * @return the excluded methods
    */
   public Iterator<MethodMetaData> getExcludedMethods()
   {
      ExcludeListMetaData excluded = getDelegate().getExcludeList();
      return new ExcludedMethodMetaDataIterator(excluded);
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

         securityRoles = new SecurityRolesMetaData();
         assembly.setSecurityRoles(securityRoles);
      }
      super.processClass(securityRoles, beanClass);
      // @DenyAll
      ExcludeListMetaData excludes = assembly.getExcludeList();
      if(excludes == null)
      {
         excludes = new ExcludeListMetaData();
         assembly.setExcludeList(excludes);
      }
      super.processClass(excludes, beanClass);

      // @RolesAllowed, @PermitAll
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

      JBossMetaData jbossMetaData = getJBossMetaDataWithCheck();
     
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
      {
         // No one is allowed to execute this method so add a role that
         // fails to equate to any Principal or Principal name and return.
         // We don't return null to differentiate between an explicit
         // assignment of no access and no assignment information.
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

    */
   public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
   {
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

      JBossMetaData jbossMetaData = getJBossMetaDataWithCheck();
     
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
      {
         // No one is allowed to execute this method so add a role that
         // fails to equate to any Principal or Principal name and return.
         // We don't return null to differentiate between an explicit
         // assignment of no access and no assignment information.
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData

    */
   public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
   {
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.