Package org.jboss.metadata.ejb.spec

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


   public static void createPermissions(JBossEnterpriseBeanMetaData bean, PolicyConfiguration pc)
         throws PolicyContextException
   {
      // Process the method-permission MethodMetaData
      MethodPermissionsMetaData perms = bean.getMethodPermissions();
      if (perms != null)
         for (MethodPermissionMetaData perm : perms)
         {
            MethodsMetaData methods = perm.getMethods();
            if (methods != null)
View Full Code Here


         result.add(SecurityRoleNames.NOBODY_PRINCIPAL);
         return result;
      }

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.isNotChecked(methodName, params, interfaceType))
View Full Code Here

      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.matches(methodName, params, interfaceType))
View Full Code Here

         assembly.setExcludeList(excludes);
      }
      super.processClass(excludes, beanClass);

      // @RolesAllowed, @PermitAll
      MethodPermissionsMetaData permissions = assembly.getMethodPermissions();
      if(permissions == null)
      {
         permissions = new MethodPermissionsMetaData();
         assembly.setMethodPermissions(permissions);
      }
      super.processClass(permissions, beanClass);

      // @Interceptors
View Full Code Here

    *
    * @return  the permission methods
    */
   public Iterator<MethodMetaData> getPermissionMethods()
   {
      MethodPermissionsMetaData methodPermissions = getDelegate().getMethodPermissions();
      return new PermissionMethodMetaDataIterator(methodPermissions);
   }
View Full Code Here

         assembly.setExcludeList(excludes);
      }
      super.processClass(excludes, beanClass);

      // @RolesAllowed, @PermitAll
      MethodPermissionsMetaData permissions = assembly.getMethodPermissions();
      if(permissions == null)
      {
         permissions = new MethodPermissionsMetaData();
         assembly.setMethodPermissions(permissions);
      }
      super.processClass(permissions, beanClass);

      // @Interceptors
View Full Code Here

         result.add(SecurityRoleNames.NOBODY_PRINCIPAL);
         return result;
      }

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.isNotChecked(methodName, params, interfaceType))
View Full Code Here

      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.matches(methodName, params, interfaceType))
View Full Code Here

         result.add(SecurityRoleNames.NOBODY_PRINCIPAL);
         return result;
      }

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.isNotChecked(methodName, params, interfaceType))
View Full Code Here

      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
         return true;

      // Check the permissioned methods list
      MethodPermissionsMetaData permissions = getMethodPermissions();
      if (permissions != null)
      {
         for (MethodPermissionMetaData permission : permissions)
         {
            if (permission.matches(methodName, params, interfaceType))
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.MethodPermissionsMetaData

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.