/**
* @see org.olat.core.gui.components.Component#dispatchRequest(org.olat.core.gui.UserRequest)
*/
protected void doDispatchRequest(UserRequest ureq) {
if (ureq.getParameter(ListRenderer.PARAM_EDTID) != null) {
fireEvent(ureq, new Event(FolderCommandFactory.COMMAND_EDIT));
return;
} else if (ureq.getParameter(ListRenderer.PARAM_CONTENTEDITID) != null) {
fireEvent(ureq, new Event(FolderCommandFactory.COMMAND_EDIT_CONTENT));
return;
} else if (ureq.getParameter(ListRenderer.PARAM_SERV) != null) {
// this is a link on a file... deliver it
fireEvent(ureq, new Event(FolderCommandFactory.COMMAND_SERV));
// don't redraw the file listing when serving a resource -> timestamp not consumed
setDirty(false);
return;
} else if (ureq.getParameter(ListRenderer.PARAM_SORTID) != null) { // user clicked on table header for sorting column
setSortAsc(ureq.getParameter(ListRenderer.PARAM_SORTID));
sort(ureq.getParameter(ListRenderer.PARAM_SORTID)); // just pass selected column
return;
} else if (ureq.getParameter("cid") != null) { // user clicked add layer...
fireEvent(ureq, new Event(ureq.getParameter("cid")));
return;
} else if (ureq.getParameter(ListRenderer.PARAM_VERID) != null) {
fireEvent(ureq, new Event(FolderCommandFactory.COMMAND_VIEW_VERSION));
return;
}
// regular browsing, set current container
setCurrentContainerPath(ureq.getModuleURI());
fireEvent(ureq, new Event(FolderCommandFactory.COMMAND_BROWSE));
}