Search in sources :

Example 1 with WikiPageNameComparator

use of org.olat.modules.wiki.WikiPageSort.WikiPageNameComparator in project OpenOLAT by OpenOLAT.

the class WikiMainController method updateFileAndLinkList.

private void updateFileAndLinkList(Wiki wiki) {
    List<VFSItem> mediaFiles = wiki.getMediaFileList();
    Collections.sort(mediaFiles, new WikiFileComparator(getLocale()));
    editContent.contextPut("fileList", mediaFiles);
    List<String> allPages = wiki.getListOfAllPageNames();
    Collections.sort(allPages, new WikiPageNameComparator(getLocale()));
    editContent.contextPut("linkList", allPages);
}
Also used : VFSItem(org.olat.core.util.vfs.VFSItem) WikiPageNameComparator(org.olat.modules.wiki.WikiPageSort.WikiPageNameComparator) WikiFileComparator(org.olat.modules.wiki.WikiPageSort.WikiFileComparator)

Example 2 with WikiPageNameComparator

use of org.olat.modules.wiki.WikiPageSort.WikiPageNameComparator in project openolat by klemens.

the class WikiMainController method updateFileAndLinkList.

private void updateFileAndLinkList(Wiki wiki) {
    List<VFSItem> mediaFiles = wiki.getMediaFileList();
    Collections.sort(mediaFiles, new WikiFileComparator(getLocale()));
    editContent.contextPut("fileList", mediaFiles);
    List<String> allPages = wiki.getListOfAllPageNames();
    Collections.sort(allPages, new WikiPageNameComparator(getLocale()));
    editContent.contextPut("linkList", allPages);
}
Also used : VFSItem(org.olat.core.util.vfs.VFSItem) WikiPageNameComparator(org.olat.modules.wiki.WikiPageSort.WikiPageNameComparator) WikiFileComparator(org.olat.modules.wiki.WikiPageSort.WikiFileComparator)

Aggregations

VFSItem (org.olat.core.util.vfs.VFSItem)2 WikiFileComparator (org.olat.modules.wiki.WikiPageSort.WikiFileComparator)2 WikiPageNameComparator (org.olat.modules.wiki.WikiPageSort.WikiPageNameComparator)2