/** * Set the JNDI name of this resource reference. * @param the JNDI name of the resource reference. */ public void setJndiName(String jndiName) { super.setValue(jndiName); }
/** * Set the JNDI name of this resource reference. * @param the JNDI name of the resource reference. */ public void setJndiName(String jndiName) { super.setValue(jndiName); }
/** * Sets the rolename. * @param the rolename. */ public void setSecurityRoleLink(SecurityRole securityRole) { super.setValue(securityRole.getName()); }
/** * Sets the rolename. * @param the rolename. */ public void setSecurityRoleLink(SecurityRole securityRole) { super.setValue(securityRole.getName()); }
/** * Set the value for the reference. * @param the role */ void setRole(Role role) { super.setValue(role.getName()); }
/** * Set the value for the reference. * @param the role */ void setRole(Role role) { super.setValue(role.getName()); }
protected void combineEnvironmentEntries(JndiNameEnvironment env) { for (Object oenve: env.getEnvironmentProperties()) { EnvironmentEntry enve = (EnvironmentEntry)oenve; EnvironmentProperty envProp = _getEnvironmentPropertyByName(enve.getName()); if (envProp != null) { combineInjectionTargets(envProp, (EnvironmentProperty)enve); EnvironmentProperty envP = (EnvironmentProperty)enve; if (!envProp.hasInjectionTargetFromXml() && (!envProp.isSetValueCalled()) && envP.isSetValueCalled()) { envProp.setValue(enve.getValue()); } } else { if (env instanceof WebBundleDescriptor && ((WebBundleDescriptor)env).conflictEnvironmentEntry) { throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionconflictenventry", "There are more than one environment entries defined in web fragments with the same name, but not overrided in web.xml")); } else { addEnvironmentEntry(enve); } } } }
envs[i].getDescription(), envs[i].getType()); if (envs[i].getValue()!=null) { envEntry.setValue(envs[i].getValue());