@Override public Node writeDescriptor(Node parent, EjbBundleDescriptorImpl bundleDescriptor) { Node ejbs = super.writeDescriptor(parent, bundleDescriptor); // security-role-mapping* List<SecurityRoleMapping> roleMappings = bundleDescriptor.getSecurityRoleMappings(); for (int i = 0; i < roleMappings.size(); i++) { SecurityRoleMappingNode srmn = new SecurityRoleMappingNode(); srmn.writeDescriptor(ejbs, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings.get(i)); } // entreprise-beans EnterpriseBeansRuntimeNode ejbsNode = new EnterpriseBeansRuntimeNode(); ejbsNode.writeDescriptor(ejbs, RuntimeTagNames.EJBS, bundleDescriptor); // compatibility appendTextChild(ejbs, RuntimeTagNames.COMPATIBILITY, bundleDescriptor.getCompatibility()); //disable-nonportable-jndi-names Boolean djndi = bundleDescriptor.getDisableNonportableJndiNames(); if (djndi != null) { appendTextChild(ejbs, RuntimeTagNames.DISABLE_NONPORTABLE_JNDI_NAMES, String.valueOf(djndi)); } // keep-state appendTextChild(ejbs, RuntimeTagNames.KEEP_STATE, String.valueOf(bundleDescriptor.getKeepState())); return ejbs; } }
for (int i = 0; i < roleMappings.size(); i++) { SecurityRoleMappingNode srmn = new SecurityRoleMappingNode(); srmn.writeDescriptor(ejbs, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings.get(i));
for (int i = 0; i < roleMappings.size(); i++) { SecurityRoleMappingNode srmn = new SecurityRoleMappingNode(); srmn.writeDescriptor(appNode, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings.get(i));
for (int i = 0; i < roleMappings.size(); i++) { SecurityRoleMappingNode srmn = new SecurityRoleMappingNode(); srmn.writeDescriptor(appNode, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings.get(i));
SecurityRoleMappingNode srmn = new SecurityRoleMappingNode(); for (int i=0;i<roleMappings.length;i++) { srmn.writeDescriptor(web, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings[i]);