public static final String PARAM_EXTRAS = "extras";
public String execute(WikiContext context, Map<String, String> params) throws PluginException {
ResourceBundle rb = Preferences.getBundle(context, WikiPlugin.CORE_PLUGINS_RESOURCEBUNDLE);
ReferenceManager referenceManager = context.getEngine().getReferenceManager();
int items = TextUtil.parseIntParameter(params.get(PARAM_MAX), ALL_ITEMS);
String extras = params.get(PARAM_EXTRAS);
if (extras == null) {
extras = rb.getString("referringundefinedpagesplugin.more");
}
StringBuilder resultHTML = new StringBuilder();
Collection<String> uncreatedPages = referenceManager.findUncreated();
super.initialize(context, params);
Collection<String> result = null;
TreeMap sortedMap = new TreeMap();
if (uncreatedPages != null) {
for (String uncreatedPageName : uncreatedPages) {
Collection<String> referrers = referenceManager.findReferrers(uncreatedPageName);
if (referrers != null) {
for (String referringPage : referrers) {
sortedMap.put(referringPage, "");
}
}