/** * Get the ejb name * * @return the ejb name */ public String getEjbName() { return methodDelegate.getEjbName(); }
/** * Get the ejb name * * @return the ejb name */ public String getEjbName() { return methodDelegate.getEjbName(); }
/** * Get the methods for an ejb * * @param ejbName the ejb name * @return the methods or null for no methods * @throws IllegalArgumentException for a null ejb name */ public MethodsMetaData getMethodsByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); MethodsMetaData result = null; for (MethodMetaData method : this) { if (ejbName.equals(method.getEjbName())) { if (result == null) result = new MethodsMetaData(); result.add(method); } } return result; }
/** * Get the methods for an ejb * * @param ejbName the ejb name * @return the methods or null for no methods * @throws IllegalArgumentException for a null ejb name */ public MethodsMetaData getMethodsByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); MethodsMetaData result = null; for (MethodMetaData method : this) { if (ejbName.equals(method.getEjbName())) { if (result == null) result = new MethodsMetaData(); result.add(method); } } return result; }
private void addExcludeAnnotations(EJBContainer container, ExcludeListMetaData list, String ejbName) throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException { if (list != null && list.getMethods() != null) { for(MethodMetaData method : list.getMethods()) { if (method.getEjbName().equals(ejbName)) { DenyAllImpl annotation = new DenyAllImpl(); addAnnotations(DenyAll.class, annotation, container, method); } } } }
if (method.getEjbName().equals(ejbName)) + method.getMethodParams() + ") of EJB " + method.getEjbName() + ": " + Arrays.asList(annotation.value())); addAnnotations(RolesAllowed.class, annotation, container, method);
MethodInterfaceType miType = mmd.getMethodIntf(); String iface = miType != null ? miType.name() : null; EJBMethodPermission p = new EJBMethodPermission(mmd.getEjbName(), methodName, iface, params); if (perm.getUnchecked() != null) MethodInterfaceType miType = mmd.getMethodIntf(); String iface = miType != null ? miType.name() : null; EJBMethodPermission p = new EJBMethodPermission(mmd.getEjbName(), methodName, iface, params); pc.addToExcludedPolicy(p);
if (method.getEjbName().equals(ejbName))