You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BasicAttribute will be deprecated in the next major release and is causing a warning. The following new script remove the reference to BasicAttribute and thus the warning message...
<Script><![CDATA[
var HashSet = Java.type("java.util.HashSet");
var StringAttributeValue = Java.type("net.shibboleth.idp.attribute.StringAttributeValue");
var newAffiliations = new HashSet();
add_member = false;
if (typeof eduPersonAffiliation != "undefined" && eduPersonAffiliation.getValues().size() >= 1) {
for ( i = 0; i < eduPersonAffiliation.getValues().size(); i++){
value = eduPersonAffiliation.getValues().get(i).toLowerCase();
if ( value.equals("affiliate") ||
value.equals("alum") ||
value.equals("member") ||
value.equals("library-walk-in")) {
newAffiliations.add(new StringAttributeValue(value));
}
if (value.equals("student") ||
value.equals("faculty") ||
value.equals("staff") ||
value.equals("employee")) {
newAffiliations.add(new StringAttributeValue(value));
add_member = true;
}
}
}
if (add_member) { newAffiliations.add(new StringAttributeValue("member")); }
if (newAffiliations.size() < 1) {
newAffiliations.add(new StringAttributeValue("affiliate"));
}
eduPersonAffiliation.getValues().clear();
itr = newAffiliations.iterator();
while(itr.hasNext()){
eduPersonAffiliation.addValue(itr.next());
}
]]></Script>
The text was updated successfully, but these errors were encountered:
The BasicAttribute will be deprecated in the next major release and is causing a warning. The following new script remove the reference to BasicAttribute and thus the warning message...
The text was updated successfully, but these errors were encountered: