|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.modules.wiki.WikiManager
public class WikiManager
Description:
This class handles several wiki's by storing them in a cache and also creates a new wikis.
It handles also the file operation to persist the data in the wiki pages which are stored on the file
system.
Initial Date: May 5, 2006
| Field Summary | |
|---|---|
static java.lang.String |
C_TIME
|
static java.lang.String |
FORUM_KEY
|
static java.lang.String |
INITIAL_AUTHOR
|
static java.lang.String |
M_TIME
|
static java.lang.String |
MODIFY_AUTHOR
|
static java.lang.String |
PAGENAME
|
static java.lang.String |
UPDATE_COMMENT
|
static java.lang.String |
VERSION
|
static java.lang.String |
VERSION_FOLDER_NAME
|
static java.lang.String |
VIEW_COUNT
|
static java.lang.String |
WIKI_FILE_SUFFIX
|
static java.lang.String |
WIKI_PROPERTIES_SUFFIX
|
static java.lang.String |
WIKI_RESOURCE_FOLDER_NAME
|
| Constructor Summary | |
|---|---|
WikiManager()
|
|
| Method Summary | |
|---|---|
static SubscriptionContext |
createTechnicalSubscriptionContextForCourse(CourseEnvironment cenv,
WikiCourseNode wikiCourseNode)
wiki subscription context for wikis in the course. |
FileResource |
createWiki()
|
WikiMainController |
createWikiMainController(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
WikiSecurityCallback securityCallback,
java.lang.String initialPageName)
|
Controller |
createWikiMainControllerDisposeOnOres(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
WikiSecurityCallback securityCallback,
java.lang.String initialPageName)
brasato:::: to discuss, are two methods needed at all? probably not, unless there are cases to launch this controller without an ores known. |
static java.lang.String |
generatePageId(java.lang.String pageName)
|
DifferenceService |
getDiffService()
|
static WikiManager |
getInstance()
return singleton |
OlatRootFolderImpl |
getMediaFolder(OLATResourceable ores)
Return Media folder for uploading files. |
Wiki |
getOrLoadWiki(OLATResourceable ores)
|
VFSContainer |
getWikiContainer(OLATResourceable ores,
java.lang.String folderName)
|
VFSContainer |
getWikiRootContainer(OLATResourceable ores)
Returns the root-container for certain OLAT-resourceable. |
void |
updateWikiPageProperties(OLATResourceable ores,
WikiPage page)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VIEW_COUNT
public static final java.lang.String MODIFY_AUTHOR
public static final java.lang.String M_TIME
public static final java.lang.String INITIAL_AUTHOR
public static final java.lang.String FORUM_KEY
public static final java.lang.String VERSION
public static final java.lang.String C_TIME
public static final java.lang.String PAGENAME
public static final java.lang.String WIKI_RESOURCE_FOLDER_NAME
public static final java.lang.String VERSION_FOLDER_NAME
public static final java.lang.String WIKI_FILE_SUFFIX
public static final java.lang.String WIKI_PROPERTIES_SUFFIX
public static final java.lang.String UPDATE_COMMENT
| Constructor Detail |
|---|
public WikiManager()
| Method Detail |
|---|
public static WikiManager getInstance()
public WikiMainController createWikiMainController(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
WikiSecurityCallback securityCallback,
java.lang.String initialPageName)
ureq - wControl - ores - either an OlatResourcable of an repository entry or of an BusinessGroupsecurityCallback - a callback to evaluate the permissionsinitialPageName - opens the wiki with an certain page, default is the index page if null is passedcourseContext - - a course context or null if used outside a coursecourseNodeContext - - a courseNode context or null if used outside a coursegroupContext - - a BusinessGroup or null if not used in group context
public Controller createWikiMainControllerDisposeOnOres(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
WikiSecurityCallback securityCallback,
java.lang.String initialPageName)
public FileResource createWiki()
public Wiki getOrLoadWiki(OLATResourceable ores)
ores -
public DifferenceService getDiffService()
public void updateWikiPageProperties(OLATResourceable ores,
WikiPage page)
ores - page - public static java.lang.String generatePageId(java.lang.String pageName)
pageName -
public VFSContainer getWikiContainer(OLATResourceable ores,
java.lang.String folderName)
ores - folderName -
public VFSContainer getWikiRootContainer(OLATResourceable ores)
ores -
public OlatRootFolderImpl getMediaFolder(OLATResourceable ores)
ores -
public static SubscriptionContext createTechnicalSubscriptionContextForCourse(CourseEnvironment cenv,
WikiCourseNode wikiCourseNode)
cenv - wikiCourseNode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||