protected void buildLocationName( Location location, SolrInputDocument solrInputDocument, StringBuffer loactionLevelStr) { if (location != null) { buildLocation(location.getLocationLevel(), solrInputDocument, loactionLevelStr); } }
public Location getLocationDetails(String locationName, String locationLevelName) { Location location = new Location(); LocationLevel locationLevel = createLocationLevel(locationName, locationLevelName); location.setLocationLevel(locationLevel); return location; }
protected void buildLocationNameAndLocationLevel( Location location, StringBuffer locationName, StringBuffer locationLevel) { if (location != null && location.getLocationLevel() != null) { locationName = locationName.append(location.getLocationLevel().getName()); locationLevel = locationLevel.append(location.getLocationLevel().getLevel()); if (location.getLocationLevel().getLocationLevel() != null) { locationName = locationName .append("/") .append(location.getLocationLevel().getLocationLevel().getName()); locationLevel = locationLevel .append("/") .append(location.getLocationLevel().getLocationLevel().getLevel()); if (location.getLocationLevel().getLocationLevel().getLocationLevel() != null) { locationName = locationName .append("/") .append( location.getLocationLevel().getLocationLevel().getLocationLevel().getName()); locationLevel = locationLevel .append("/") .append( location.getLocationLevel().getLocationLevel().getLocationLevel().getLevel()); if (location.getLocationLevel().getLocationLevel().getLocationLevel().getLocationLevel() != null) { locationName = locationName .append("/") .append( location .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getName()); locationLevel = locationLevel .append("/") .append( location .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLevel()); if (location .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() != null) { locationName = locationName .append("/") .append( location .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getName()); locationLevel = locationLevel .append("/") .append( location .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLocationLevel() .getLevel()); } } } } } }