public static void removeAttributeDefaultValues(String serviceName,String schemaType,String attrName,Set defaultValues,boolean isOrgAttrSchema) throws UpgradeException {
  String classMethod="UpgradeUtils:removeAttributeDefaultValues : ";
  ServiceSchema ss=null;
  if (debug.messageEnabled()) {
    debug.message(classMethod + "serviceName : " + serviceName);
    debug.message(classMethod + "schemaTpe :" + schemaType);
    debug.message(classMethod + "attrName : " + attrName);
    debug.message(classMethod + "defaltValues :" + defaultValues);
    debug.message(classMethod + "isOrgAttrSchema :" + isOrgAttrSchema);
  }
  try {
    if (isOrgAttrSchema) {
      ServiceSchemaManager sm=getServiceSchemaManager(serviceName);
      ss=sm.getOrganizationCreationSchema();
    }
 else {
      ss=getServiceSchema(serviceName,null,schemaType);
    }
    if (ss != null) {
      AttributeSchema attrSchema=ss.getAttributeSchema(attrName);
      for (Iterator i=defaultValues.iterator(); i.hasNext(); ) {
        String defaultValue=(String)i.next();
        attrSchema.removeDefaultValue(defaultValue);
      }
    }
  }
 catch (  SMSException sme) {
    debug.error(classMethod + "Error removing default values ",sme);
  }
catch (  SSOException ssoe) {
    debug.error(classMethod + "Invalid SSO Token",ssoe);
  }
}

public static void removeAttributeDefaultValues ( String serviceName , String schemaType , String attrName , Set defaultValues , boolean isOrgAttrSchema ) throws UpgradeException { String classMethod = "UpgradeUtils:removeAttributeDefaultValues : " ; ServiceSchema ss = null ; if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + "serviceName : " + serviceName ) ; debug . message ( classMethod + "schemaTpe :" + schemaType ) ; debug . message ( classMethod + "attrName : " + attrName ) ; debug . message ( classMethod + "defaltValues :" + defaultValues ) ; debug . message ( classMethod + "isOrgAttrSchema :" + isOrgAttrSchema ) ; } try { if ( isOrgAttrSchema ) { ServiceSchemaManager sm = getServiceSchemaManager ( serviceName ) ; ss = sm . getOrganizationCreationSchema ( ) ; } else { ss = getServiceSchema ( serviceName , null , schemaType ) ; } if ( ss != null ) { AttributeSchema attrSchema = ss . getAttributeSchema ( attrName ) ; for ( Iterator i = defaultValues . iterator ( ) ; i . hasNext ( ) ; ) { String defaultValue = ( String ) i . next ( ) ; attrSchema . removeDefaultValue ( defaultValue ) ; } } } catch ( SMSException sme ) { debug . error ( classMethod + "Error removing default values " , sme ) ; } catch ( SSOException ssoe ) { debug . error ( classMethod + "Invalid SSO Token" , ssoe ) ; } }
removes attribute default values from service schema .
