SecurityIdentityNodepublic class SecurityIdentityNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode This node handles all information relative to security-indentity tag |
Constructors Summary |
---|
public SecurityIdentityNode()Creates new SecurityIdentityNode
super();
registerElementHandler(new XMLElement(EjbTagNames.RUNAS_SPECIFIED_IDENTITY), RunAsNode.class);
|
Methods Summary |
---|
public java.lang.Object | getDescriptor()
return null;
| protected java.util.Map | getDispatchTable()all sub-implementation of this class can use a dispatch table to map xml element to
method name on the descriptor class for setting the element value.
return null;
| public void | setElementValue(com.sun.enterprise.deployment.node.XMLElement element, java.lang.String value)receives notiification of the value for a particular tag
if (EjbTagNames.DESCRIPTION.equals(element.getQName())) {
((EjbDescriptor) getParentNode().getDescriptor()).setSecurityIdentityDescription(value);
} else {
super.setElementValue(element, value);
}
| public void | startElement(com.sun.enterprise.deployment.node.XMLElement element, org.xml.sax.Attributes attributes)
if( EjbTagNames.USE_CALLER_IDENTITY.equals(element.getQName()) ) {
((EjbDescriptor) getParentNode().getDescriptor()).
setUsesCallerIdentity(true);
} else {
super.startElement(element, attributes);
}
return;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.EjbDescriptor descriptor)write the descriptor class to a DOM tree and return it
Node subNode = appendChild(parent, nodeName);
appendTextChild(subNode, EjbTagNames.DESCRIPTION, descriptor.getSecurityIdentityDescription());
if (descriptor.getUsesCallerIdentity()) {
Node useCaller = subNode.getOwnerDocument().createElement(EjbTagNames.USE_CALLER_IDENTITY);
subNode.appendChild(useCaller);
} else {
RunAsNode runAs = new RunAsNode();
runAs.writeDescriptor(subNode, EjbTagNames.RUNAS_SPECIFIED_IDENTITY, descriptor.getRunAsIdentity());
}
return subNode;
|
|