Package org.jboss.metadata.ejb.spec

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


         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

        final String ejbName = beanMetaData.getEjbName();
        final AssemblyDescriptorMetaData assemblyDescriptor = beanMetaData.getAssemblyDescriptor();
        if (assemblyDescriptor == null) {
            return;
        }
        final MethodPermissionsMetaData methodPermissions = assemblyDescriptor.getMethodPermissionsByEjbName(ejbName);
        if (methodPermissions == null || methodPermissions.isEmpty()) {
            return;
        }
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION);
        final Module module = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.MODULE);
View Full Code Here

            }
            DeclareRolesImpl annotation = new DeclareRolesImpl(roleList.toArray(new String[roleList.size()]));
            addClassAnnotation(container, DeclareRoles.class, annotation);
         }

         MethodPermissionsMetaData methodPermissions = assembly.getMethodPermissions();
         if(methodPermissions != null)
         {
            for (MethodPermissionMetaData permission : methodPermissions)
            {
               for (MethodMetaData method : permission.getMethods())
View Full Code Here

/* 1188 */         result = new HashSet();
/* 1189 */       result.add("<NOBODY>");
/* 1190 */       return result;
/*      */     }
/*      */
/* 1194 */     MethodPermissionsMetaData permissions = getMethodPermissions();
/* 1195 */     if (permissions != null)
/*      */     {
/* 1197 */       for (MethodPermissionMetaData permission : permissions)
/*      */       {
/* 1199 */         if (permission.isNotChecked(methodName, params, interfaceType))
View Full Code Here

/* 1257 */     ExcludeListMetaData excluded = getExcludeList();
/* 1258 */     if ((excluded != null) && (excluded.matches(methodName, params, interfaceType))) {
/* 1259 */       return true;
/*      */     }
/*      */
/* 1262 */     MethodPermissionsMetaData permissions = getMethodPermissions();
/* 1263 */     if (permissions != null)
/*      */     {
/* 1265 */       for (MethodPermissionMetaData permission : permissions)
/*      */       {
/* 1267 */         if (permission.matches(methodName, params, interfaceType)) {
View Full Code Here

/* 118 */       excludes = new ExcludeListMetaData();
/* 119 */       assembly.setExcludeList(excludes);
/*     */     }
/* 121 */     super.processClass(excludes, beanClass);
/*     */
/* 124 */     MethodPermissionsMetaData permissions = assembly.getMethodPermissions();
/* 125 */     if (permissions == null)
/*     */     {
/* 127 */       permissions = new MethodPermissionsMetaData();
/* 128 */       assembly.setMethodPermissions(permissions);
/*     */     }
/* 130 */     super.processClass(permissions, beanClass);
/*     */
/* 133 */     InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
View Full Code Here

/*     */ public class EJBPermissionMapping
/*     */ {
/*     */   public static void createPermissions(JBossEnterpriseBeanMetaData bean, PolicyConfiguration pc)
/*     */     throws PolicyContextException
/*     */   {
/*  61 */     MethodPermissionsMetaData perms = bean.getMethodPermissions();
/*     */     Iterator i$;
/*  62 */     if (perms != null)
/*  63 */       for (i$ = perms.iterator(); i$.hasNext(); ) { perm = (MethodPermissionMetaData)i$.next();
/*     */
/*  65 */         MethodsMetaData methods = perm.getMethods();
/*  66 */         if (methods != null)
/*  67 */           for (org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods)
/*     */           {
View Full Code Here

/*      */
/* 1067 */         DeclareRolesImpl annotation = new DeclareRolesImpl((String[])roleList.toArray(new String[roleList.size()]));
/* 1068 */         addClassAnnotation(container, DeclareRoles.class, annotation);
/*      */       }
/*      */
/* 1071 */       MethodPermissionsMetaData methodPermissions = assembly.getMethodPermissions();
/* 1072 */       if (methodPermissions != null)
/*      */       {
/* 1074 */         for (i$ = methodPermissions.iterator(); i$.hasNext(); ) { permission = (MethodPermissionMetaData)i$.next();
/*      */
/* 1076 */           for (MethodMetaData method : permission.getMethods())
/*      */           {
/* 1078 */             if (method.getEjbName().equals(ejbName))
/*      */             {
View Full Code Here

/* 422 */     return result;
/*     */   }
/*     */
/*     */   public Iterator<MethodMetaData> getPermissionMethods()
/*     */   {
/* 432 */     MethodPermissionsMetaData methodPermissions = ((JBossEnterpriseBeanMetaData)getDelegate()).getMethodPermissions();
/* 433 */     return new PermissionMethodMetaDataIterator(methodPermissions);
/*     */   }
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.