private String getAllView(BrowseContext browseContext, HttpServletRequest req, CustomField customField, Collection<CustomField> labelFields)
throws Exception
{
setView(ALL_LABELS_VIEW);
String result;
Collection<String> labels = LabelUtils.getLabels(browseContext.getUser(), customField, browseContext.getProject().getId());
HashSet<String> uniqueLabels = new HashSet<String>();
uniqueLabels.addAll(labels);
AlphabeticalLabelGroupingSupport alphaSupport = new AlphabeticalLabelGroupingSupport(uniqueLabels);
Map<String, Object> startingParams = new HashMap<String, Object>();
startingParams.put("labelCount", uniqueLabels.size());
startingParams.put("alphaSupport", alphaSupport);
startingParams.put("customField", customField);
startingParams.put("labelFields", labelFields);
startingParams.put("labelUtils", new LabelUtils());
startingParams.put("searchService", searchService);
startingParams.put("projectId", browseContext.getProject().getId());
startingParams.put("currentView", getCurrentView(req));
result = descriptor.getHtml("view-all", startingParams);
return result;
}