Search in sources :

Example 6 with WikiResource

use of org.olat.fileresource.types.WikiResource in project OpenOLAT by OpenOLAT.

the class WikiManager method createWiki.

// ---- end controller factory -----
/**
 * @return the new created resource
 */
public WikiResource createWiki() {
    WikiResource resource = new WikiResource();
    createFolders(resource);
    OLATResourceManager rm = getResourceManager();
    OLATResource ores = rm.createOLATResourceInstance(resource);
    rm.saveOLATResource(ores);
    return resource;
}
Also used : WikiResource(org.olat.fileresource.types.WikiResource) OLATResourceManager(org.olat.resource.OLATResourceManager) OLATResource(org.olat.resource.OLATResource)

Aggregations

WikiResource (org.olat.fileresource.types.WikiResource)6 OLATResource (org.olat.resource.OLATResource)6 RepositoryEntry (org.olat.repository.RepositoryEntry)4 RepositoryService (org.olat.repository.RepositoryService)4 File (java.io.File)2 OLATResourceManager (org.olat.resource.OLATResourceManager)2