Examples of ExcludeListMetaData


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

/* 1241 */     return result;
/*      */   }
/*      */
/*      */   public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
/*      */   {
/* 1257 */     ExcludeListMetaData excluded = getExcludeList();
/* 1258 */     if ((excluded != null) && (excluded.matches(methodName, params, interfaceType))) {
/* 1259 */       return true;
/*      */     }
/*      */
/* 1262 */     MethodPermissionsMetaData permissions = getMethodPermissions();
/* 1263 */     if (permissions != null)
View Full Code Here

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

/* 110 */       securityRoles = new SecurityRolesMetaData();
/* 111 */       assembly.setSecurityRoles(securityRoles);
/*     */     }
/* 113 */     super.processClass(securityRoles, beanClass);
/*     */
/* 115 */     ExcludeListMetaData excludes = assembly.getExcludeList();
/* 116 */     if (excludes == null)
/*     */     {
/* 118 */       excludes = new ExcludeListMetaData();
/* 119 */       assembly.setExcludeList(excludes);
/*     */     }
/* 121 */     super.processClass(excludes, beanClass);
/*     */
/* 124 */     MethodPermissionsMetaData permissions = assembly.getMethodPermissions();
View Full Code Here

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

/*     */               }
/*     */             }
/*     */           }
/*     */       }
/*     */     MethodPermissionMetaData perm;
/*  99 */     ExcludeListMetaData excluded = bean.getExcludeList();
/* 100 */     if (excluded != null)
/*     */     {
/* 102 */       MethodsMetaData methods = excluded.getMethods();
/* 103 */       if (methods != null) {
/* 104 */         for (org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods)
/*     */         {
/* 106 */           String[] params = new String[0];
/* 107 */           if (mmd.getMethodParams() != null)
View Full Code Here

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

/* 440 */     return new EjbPortComponentMetaData(jebmd.getPortComponent());
/*     */   }
/*     */
/*     */   public Iterator<MethodMetaData> getExcludedMethods()
/*     */   {
/* 450 */     ExcludeListMetaData excluded = ((JBossEnterpriseBeanMetaData)getDelegate()).getExcludeList();
/* 451 */     return new ExcludedMethodMetaDataIterator(excluded);
/*     */   }
View Full Code Here

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

        final String ejbName = beanMetaData.getEjbName();
        final AssemblyDescriptorMetaData assemblyDescriptor = beanMetaData.getAssemblyDescriptor();
        if (assemblyDescriptor == null) {
            return;
        }
        final ExcludeListMetaData excludeList = assemblyDescriptor.getExcludeListByEjbName(ejbName);
        if (excludeList == null) {
            return;
        }
        final MethodsMetaData methods = excludeList.getMethods();
        if (methods == null || methods.isEmpty()) {
            return;
        }
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION);
View Full Code Here

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

            final AssemblyDescriptorMetaData assemblyDescriptor = ejbJarMetadata.getAssemblyDescriptor();
            if (assemblyDescriptor != null) {

                //handle exclude-list

                final ExcludeListMetaData excludeList = assemblyDescriptor.getExcludeListByEjbName(componentConfiguration.getEJBName());
                if (excludeList != null && excludeList.getMethods() != null) {
                    for (final MethodMetaData method : excludeList.getMethods()) {
                        final String methodName = method.getMethodName();
                        final MethodIntf methodIntf = this.getMethodIntf(method.getMethodIntf());
                        if (methodName.equals("*")) {
                            componentConfiguration.getMethodPermissions().setAttribute(methodIntf, null, EJBMethodSecurityAttribute.denyAll());
                        } else {
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.