SecurityRoleNodepublic class SecurityRoleNode extends DeploymentDescriptorNode
Methods Summary |
---|
protected java.util.Map | getDispatchTable()Declare the setName method as an action on the SecurityRoleDescriptor, as initialized by the
DescriptorFactory.
The DeploymentDescriptorNode superclass specifies the setDescription method for the description
element, so we just add the setName action to that dispatch table.
Map table = super.getDispatchTable();
table.put(TagNames.ROLE_NAME, "setName");
return table;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.Role descriptor)write the descriptor class to a DOM tree and return it
Node roleNode = appendChild(parent, nodeName);
appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription());
appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName());
return roleNode;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.SecurityRoleDescriptor descriptor)write the descriptor class to a DOM tree and return it
Node roleNode = appendChild(parent, nodeName);
appendTextChild(roleNode, TagNames.DESCRIPTION, descriptor.getDescription());
appendTextChild(roleNode, TagNames.ROLE_NAME, descriptor.getName());
return roleNode;
|
|