* @return List of fieldIds.
*/
public final List<String> getTranslatedFieldIds(final String lang,
final String collection, final String filterText) {
try {
final BeeTranslationService srvc = new BeeTranslationService(_db);
final DBObject fTranslations = new BasicDBObject();
final Pattern pattern = Pattern.compile("^.*".concat(filterText).concat(".*$"), Pattern.CASE_INSENSITIVE);
fTranslations.put(BeeTranslation.COLL, collection);
fTranslations.put(BeeTranslation.LANG, lang);
fTranslations.put(BeeTranslation.VALUE, pattern);
return srvc.distinct(BeeTranslation.FIELD_ID, fTranslations);
} catch (Exception ex) {
this.getLogger().log(Level.SEVERE, ex.getMessage());
}
return new ArrayList<String>();
}