private void populateFrequencies(){
  frequencies=new LinkedHashMap<String,String>();
  if (resource.usesAutoPublishing()) {
    frequencies.put("off",getText("autopublish.off"));
  }
 else {
    frequencies.put("",getText("autopublish.interval"));
  }
  Map<String,String> filteredFrequencies=vocabManager.getI18nVocab(Constants.VOCAB_URI_UPDATE_FREQUENCIES,getLocaleLanguage(),false);
  MapUtils.removeNonMatchingKeys(filteredFrequencies,MaintenanceUpdateFrequency.NON_ZERO_DAYS_UPDATE_PERIODS);
  frequencies.putAll(filteredFrequencies);
}

private void populateFrequencies ( ) { frequencies = new LinkedHashMap < String , String > ( ) ; if ( resource . usesAutoPublishing ( ) ) { frequencies . put ( "off" , getText ( "autopublish.off" ) ) ; } else { frequencies . put ( "" , getText ( "autopublish.interval" ) ) ; } Map < String , String > filteredFrequencies = vocabManager . getI18nVocab ( Constants . VOCAB_URI_UPDATE_FREQUENCIES , getLocaleLanguage ( ) , false ) ; MapUtils . removeNonMatchingKeys ( filteredFrequencies , MaintenanceUpdateFrequency . NON_ZERO_DAYS_UPDATE_PERIODS ) ; frequencies . putAll ( filteredFrequencies ) ; }
populate frequencies map , representing the publishing interval choices uses have when configuring auto - publishing . the frequencies list is derived from an xml vocabulary , and will contain values in the requested locale , defaulting to english .
