public void replaceAttributeValues(String attrName,Set oldValues,Set newValues) throws SMSException, SSOException {
  validateServiceConfigImpl();
  Map attributes=getAttributes();
  Set newVals=new HashSet();
  Set oldVals=(Set)attributes.get(attrName);
  if (oldVals != null) {
    newVals.addAll(oldVals);
    newVals.removeAll(oldValues);
  }
  newVals.addAll(newValues);
  ss.validateAttrValues(token,attrName,newVals,true,sc.getOrganizationName());
  SMSEntry e=sc.getSMSEntry();
  SMSUtils.replaceAttributeValues(e,attrName,oldValues,newValues,ss.getSearchableAttributeNames());
  saveSMSEntry(e);
}

public void replaceAttributeValues ( String attrName , Set oldValues , Set newValues ) throws SMSException , SSOException { validateServiceConfigImpl ( ) ; Map attributes = getAttributes ( ) ; Set newVals = new HashSet ( ) ; Set oldVals = ( Set ) attributes . get ( attrName ) ; if ( oldVals != null ) { newVals . addAll ( oldVals ) ; newVals . removeAll ( oldValues ) ; } newVals . addAll ( newValues ) ; ss . validateAttrValues ( token , attrName , newVals , true , sc . getOrganizationName ( ) ) ; SMSEntry e = sc . getSMSEntry ( ) ; SMSUtils . replaceAttributeValues ( e , attrName , oldValues , newValues , ss . getSearchableAttributeNames ( ) ) ; saveSMSEntry ( e ) ; }
replaces the old values of the configuration parameter with the new values .
