" is not mapped to a principal."); runAs.setPrincipal(principalName);
" is not mapped to a principal."); runAs.setPrincipal(principalName);
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { String name = element.getQName(); if (name.equals(RuntimeTagNames.SERVLET_NAME)) { Object parentDesc = ((WLWebBundleRuntimeNode)getParentNode()).getDescriptor(); if (parentDesc instanceof WebBundleDescriptor) { descriptor = ((WebBundleDescriptor)parentDesc).getWebComponentByCanonicalName(value); } } else if (name.equals(RuntimeTagNames.RUN_AS_PRINCIPAL_NAME)) { if (descriptor != null && descriptor.getRunAsIdentity() != null) { descriptor.getRunAsIdentity().setPrincipal(value); } } else { super.setElementValue(element, value); } }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (RuntimeTagNames.SERVLET_NAME.equals(element.getQName())) { Object parentDesc = ((WebBundleRuntimeNode) getParentNode()).getWebBundleDescriptor(); if (parentDesc instanceof WebBundleDescriptor) { descriptor = ((WebBundleDescriptor) parentDesc).getWebComponentByCanonicalName(value); } } else if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) { if (descriptor!=null && descriptor.getRunAsIdentity()!=null) { descriptor.getRunAsIdentity().setPrincipal(value); } } else super.setElementValue(element, value); }
descriptor.getRunAsIdentity().setPrincipal(value);
descriptor.getRunAsIdentity().setPrincipal(value);