public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel model) throws PortletException, IOException {
return getMode()+BEFORE_ACTION;
}
private boolean loadFromRepository(RenderRequest request, String repository, String username, String password) throws IOException, PortletException {
PluginList data;
try {
data = PortletManager.getCurrentServer(request).getPluginInstaller().listPlugins(new URL(repository), username, password);
} catch (FailedLoginException e) {
throw new PortletException("Invalid login for Maven repository '"+repository+"'", e);
}
Map results = new HashMap();
if(data == null || data.getPlugins() == null) {
return false;
}
for (int i = 0; i < data.getPlugins().length; i++) {
PluginMetadata metadata = data.getPlugins()[i];
List values = (List) results.get(metadata.getCategory());
if(values == null) {
values = new ArrayList();
results.put(metadata.getCategory(), values);
}