private List<String> getDeclaredClassPermissions(final AssemblyDescriptor assemblyDescriptor, final String ejbName) { final List<MethodPermission> permissions = assemblyDescriptor.getMethodPermission(); final List<String> classPermissions = new ArrayList<String>(); for (final MethodPermission permission : permissions) { for (final org.apache.openejb.jee.Method method : permission.getMethod()) { if (!method.getEjbName().equals(ejbName)) { continue; } if (!"*".equals(method.getMethodName())) { continue; } String className = method.getClassName(); if (className == null) { className = "*"; } classPermissions.add(className); } } return classPermissions; }
private List<String> getDeclaredClassPermissions(AssemblyDescriptor assemblyDescriptor, String ejbName) { List<MethodPermission> permissions = assemblyDescriptor.getMethodPermission(); List<String> classPermissions = new ArrayList<String>(); for (MethodPermission permission : permissions) { for (org.apache.openejb.jee.Method method : permission.getMethod()) { if (!method.getEjbName().equals(ejbName)) continue; if (!"*".equals(method.getMethodName())) continue; String className = method.getClassName(); if (className == null) { className = "*"; } classPermissions.add(className); } } return classPermissions; }
private List<String> getDeclaredClassPermissions(final AssemblyDescriptor assemblyDescriptor, final String ejbName) { final List<MethodPermission> permissions = assemblyDescriptor.getMethodPermission(); final List<String> classPermissions = new ArrayList<String>(); for (final MethodPermission permission : permissions) { for (final org.apache.openejb.jee.Method method : permission.getMethod()) { if (!method.getEjbName().equals(ejbName)) { continue; } if (!"*".equals(method.getMethodName())) { continue; } String className = method.getClassName(); if (className == null) { className = "*"; } classPermissions.add(className); } } return classPermissions; }
public MethodAttribute(final A attribute, final Method method) { this.attribute = attribute; this.ejbName = method.getEjbName(); this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
public MethodAttribute(A attribute, Method method) { this.attribute = attribute; this.ejbName = method.getEjbName(); this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
public MethodAttribute(final A attribute, final Method method) { this.attribute = attribute; this.ejbName = method.getEjbName(); this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
private MethodInfo getMethodInfo(final Method method, final Map ejbds) { final MethodInfo methodInfo = new MethodInfo(); final EjbDeployment d = (EjbDeployment) ejbds.get(method.getEjbName()); methodInfo.description = method.getDescription(); methodInfo.ejbDeploymentId = d == null ? null : d.getDeploymentId(); methodInfo.ejbName = method.getEjbName(); methodInfo.methodIntf = method.getMethodIntf() == null ? null : method.getMethodIntf().toString(); methodInfo.methodName = method.getMethodName(); if (methodInfo.methodName == null || methodInfo.methodName.equals("")) { methodInfo.methodName = "*"; } methodInfo.className = method.getClassName(); if (methodInfo.className == null || methodInfo.className.equals("")) { methodInfo.className = "*"; } final MethodParams mp = method.getMethodParams(); if (mp != null) { methodInfo.methodParams = mp.getMethodParam(); } return methodInfo; }
private MethodInfo getMethodInfo(final Method method, final Map ejbds) { final MethodInfo methodInfo = new MethodInfo(); final EjbDeployment d = (EjbDeployment) ejbds.get(method.getEjbName()); methodInfo.description = method.getDescription(); methodInfo.ejbDeploymentId = d == null ? null : d.getDeploymentId(); methodInfo.ejbName = method.getEjbName(); methodInfo.methodIntf = method.getMethodIntf() == null ? null : method.getMethodIntf().toString(); methodInfo.methodName = method.getMethodName(); if (methodInfo.methodName == null || methodInfo.methodName.equals("")) { methodInfo.methodName = "*"; } methodInfo.className = method.getClassName(); if (methodInfo.className == null || methodInfo.className.equals("")) { methodInfo.className = "*"; } final MethodParams mp = method.getMethodParams(); if (mp != null) { methodInfo.methodParams = mp.getMethodParam(); } return methodInfo; }
private MethodInfo getMethodInfo(Method method, Map ejbds) { MethodInfo methodInfo = new MethodInfo(); EjbDeployment d = (EjbDeployment) ejbds.get(method.getEjbName()); methodInfo.description = method.getDescription(); methodInfo.ejbDeploymentId = (d == null)?null:d.getDeploymentId(); methodInfo.ejbName = method.getEjbName(); methodInfo.methodIntf = (method.getMethodIntf() == null) ? null : method.getMethodIntf().toString(); methodInfo.methodName = method.getMethodName(); if (methodInfo.methodName == null || methodInfo.methodName.equals("")){ methodInfo.methodName = "*"; } methodInfo.className = method.getClassName(); if (methodInfo.className == null || methodInfo.className.equals("")){ methodInfo.className = "*"; } MethodParams mp = method.getMethodParams(); if (mp != null) { methodInfo.methodParams = mp.getMethodParam(); } return methodInfo; }