1 27 package org.objectweb.jonas_ear.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 36 37 public class JonasSecurityRoleMappingRuleSet extends JRuleSetBase { 38 39 43 public JonasSecurityRoleMappingRuleSet(String prefix) { 44 super(prefix); 45 } 46 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "security-role-mapping", 54 "org.objectweb.jonas_ear.deployment.xml.SecurityRoleMapping"); 55 digester.addSetNext(prefix + "security-role-mapping", "addSecurityRoleMapping", 56 "org.objectweb.jonas_ear.deployment.xml.SecurityRoleMapping"); 57 digester.addCallMethod(prefix + "security-role-mapping/role-name", "setRoleName", 0); 58 digester.addCallMethod(prefix + "security-role-mapping/principal-name", "addPrincipalName", 0); 59 60 } 61 } | Popular Tags |