public interface WikiService
Modifier and Type | Method and Description |
---|---|
void |
addAttachmentToPage(org.exoplatform.wiki.mow.api.Attachment attachment,
org.exoplatform.wiki.mow.api.Page page)
Add the given attachment to the given page
|
void |
addComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Registers a component plugin into the Wiki service.
|
void |
addEmotionIconsPlugin(org.exoplatform.wiki.plugin.WikiEmotionIconsPlugin plugin)
Adds a Wiki emotion icons as plugin.
|
void |
addPageLink(org.exoplatform.wiki.service.WikiPageParams param,
org.exoplatform.wiki.service.WikiPageParams entity)
Add a link between 2 pages
|
void |
addRelatedPage(org.exoplatform.wiki.service.WikiPageParams orginaryPageParams,
org.exoplatform.wiki.service.WikiPageParams relatedPageParams)
Adds a related page to the current wiki page.
|
void |
addWatcherToPage(String username,
org.exoplatform.wiki.mow.api.Page page)
Add the given user as watcher of the wiki page
|
void |
addWikiTemplatePagePlugin(org.exoplatform.wiki.plugin.WikiTemplatePagePlugin templatePlugin)
Adds a Wiki template as plugin.
|
boolean |
canModifyPagePermission(org.exoplatform.wiki.mow.api.Page currentPage,
String currentUser)
Check if the given user can update the page
|
boolean |
canPublicAndRetrictPage(org.exoplatform.wiki.mow.api.Page currentPage,
String currentUser)
Check if the given user can public or restrict the page
|
org.exoplatform.wiki.mow.api.DraftPage |
createDraftForExistPage(org.exoplatform.wiki.mow.api.DraftPage draftPage,
org.exoplatform.wiki.mow.api.Page targetPage,
String revision,
long clientTime)
Creates a draft page for a wiki page which is specified by a given param object.
|
org.exoplatform.wiki.mow.api.DraftPage |
createDraftForNewPage(org.exoplatform.wiki.mow.api.DraftPage draftPage,
org.exoplatform.wiki.mow.api.Page parentPage,
long clientTime)
Creates a draft page for a new wiki page whose parent is specified by a given param object.
|
void |
createEmotionIcon(org.exoplatform.wiki.mow.api.EmotionIcon emotionIcon)
Creates a emotion icon
|
org.exoplatform.wiki.mow.api.Page |
createPage(org.exoplatform.wiki.mow.api.Wiki wiki,
String parentPageName,
org.exoplatform.wiki.mow.api.Page page)
Create a new wiki page in the given wiki, under the given parent page.
|
void |
createTemplatePage(org.exoplatform.wiki.mow.api.Wiki wiki,
org.exoplatform.wiki.mow.api.Template template)
Creates a new Wiki template.
|
void |
createVersionOfPage(org.exoplatform.wiki.mow.api.Page page)
Creates a version of a page.
|
org.exoplatform.wiki.mow.api.Wiki |
createWiki(String wikiType,
String owner)
Creates a wiki with the given type and owner
|
void |
deleteAttachmentOfPage(String attachmentId,
org.exoplatform.wiki.mow.api.Page page)
Deletes the given attachment of the given page
|
boolean |
deletePage(String wikiType,
String wikiOwner,
String pageId)
Deletes a wiki page.
|
void |
deleteTemplatePage(String wikiType,
String wikiOwner,
String templateName)
Deletes a Wiki template.
|
void |
deleteWatcherOfPage(String username,
org.exoplatform.wiki.mow.api.Page page)
Delete a user as watcher of the given page
|
List<org.exoplatform.wiki.service.listener.AttachmentWikiListener> |
getAttachmentListeners()
Gets attachment listeners that are registered into the Wiki service.
|
org.exoplatform.wiki.mow.api.Attachment |
getAttachmentOfPageByName(String attachmentName,
org.exoplatform.wiki.mow.api.Page page)
Get a attachment of a ther given page by name
|
List<org.exoplatform.wiki.mow.api.Attachment> |
getAttachmentsOfPage(org.exoplatform.wiki.mow.api.Page page)
Gets attachments of the given page
|
List<org.exoplatform.wiki.service.BreadcrumbData> |
getBreadcumb(String wikiType,
String wikiOwner,
String pageId)
Gets a list of data which is used for composing the breadcrumb.
|
List<org.exoplatform.wiki.mow.api.Page> |
getChildrenPageOf(org.exoplatform.wiki.mow.api.Page page)
Get all the children pages of a wiki page
|
String |
getDefaultWikiSyntaxId()
Gets Id of a default Wiki syntax.
|
org.exoplatform.wiki.mow.api.DraftPage |
getDraft(String draftName)
Gets a draft page by its name.
|
org.exoplatform.wiki.service.diff.DiffResult |
getDraftChanges(org.exoplatform.wiki.mow.api.DraftPage draftPage)
Gets the changes between the draft page and the target page
|
org.exoplatform.wiki.mow.api.DraftPage |
getDraftOfPage(org.exoplatform.wiki.mow.api.Page page)
Gets a draft page of a wiki page which is specified by a given param object.
|
List<org.exoplatform.wiki.mow.api.DraftPage> |
getDraftsOfUser(String username)
Gets a list of draft pages belonging to a given user.
|
List<org.exoplatform.wiki.mow.api.Page> |
getDuplicatePages(org.exoplatform.wiki.mow.api.Page parentPage,
org.exoplatform.wiki.mow.api.Wiki targetWiki,
List<org.exoplatform.wiki.mow.api.Page> resultList)
Checks if a page and its children are duplicated with ones in the target Wiki or not,
then gets a list of duplicated pages if any.
|
long |
getEditPageLivingTime()
Get the living time of edited page
|
org.exoplatform.wiki.mow.api.EmotionIcon |
getEmotionIconByName(String name)
Gets an emotion icon by name
|
List<org.exoplatform.wiki.mow.api.EmotionIcon> |
getEmotionIcons()
Gets all the emotion icons
|
org.exoplatform.wiki.mow.api.Page |
getExsitedOrNewDraftPageById(String wikiType,
String wikiOwner,
String pageId)
Gets a wiki page or its draft if existing by its Id.
|
org.exoplatform.wiki.mow.api.Page |
getHelpSyntaxPage(String syntaxId,
boolean fullContent)
Gets a Help wiki page based on a given syntax Id.
|
org.exoplatform.wiki.mow.api.DraftPage |
getLastestDraft()
Gets the last created draft of a wiki page.
|
int |
getNbOfAttachmentsOfPage(org.exoplatform.wiki.mow.api.Page page)
Get the number of attachment of the given page
|
org.exoplatform.wiki.mow.api.Wiki |
getOrCreateUserWiki(String username)
Gets a user Wiki.
|
org.exoplatform.wiki.mow.api.Page |
getPageById(String id)
Gets a wiki page based on its unique id.
|
org.exoplatform.wiki.mow.api.Page |
getPageByRootPermission(String wikiType,
String wikiOwner,
String pageId)
Gets a wiki page regardless of the current user's permission.
|
List<org.exoplatform.wiki.service.listener.PageWikiListener> |
getPageListeners()
Gets listeners of all wiki pages that are registered into the Wiki service.
|
org.exoplatform.wiki.mow.api.Page |
getPageOfWikiByName(String wikiType,
String wikiOwner,
String pageName)
Gets a wiki page by its unique name in the wiki.
|
String |
getPageRenderedContent(org.exoplatform.wiki.mow.api.Page page,
String targetSyntax)
Get renderd content of a page
|
org.exoplatform.wiki.mow.api.Page |
getParentPageOf(org.exoplatform.wiki.mow.api.Page page)
Get parent page of a wiki page
|
List<String> |
getPreviousNamesOfPage(org.exoplatform.wiki.mow.api.Page page)
Get previous names of a page
|
org.exoplatform.wiki.mow.api.Page |
getRelatedPage(String wikiType,
String wikiOwner,
String pageId)
Gets a related page of a wiki page which is specified by a given Id.
|
List<org.exoplatform.wiki.mow.api.Page> |
getRelatedPagesOfPage(org.exoplatform.wiki.mow.api.Page page)
Gets a list of related pages based on a given param.
|
long |
getSaveDraftSequenceTime()
Gets an interval which specifies the periodical auto-saving for pages in Wiki.
|
String |
getSpaceNameByGroupId(String groupId)
Gets a space name by a given group Id.
|
org.exoplatform.wiki.mow.api.Template |
getTemplatePage(org.exoplatform.wiki.service.WikiPageParams params,
String templateId)
Gets a Wiki template.
|
Map<String,org.exoplatform.wiki.mow.api.Template> |
getTemplates(org.exoplatform.wiki.service.WikiPageParams params)
Gets a map of wiki templates based on a given params object.
|
org.exoplatform.wiki.mow.api.PageVersion |
getVersionOfPageByName(String versionName,
org.exoplatform.wiki.mow.api.Page page)
Gets a specific version by name of the given page
|
List<org.exoplatform.wiki.mow.api.PageVersion> |
getVersionsOfPage(org.exoplatform.wiki.mow.api.Page page)
Gets all the versions of the given page
|
List<String> |
getWatchersOfPage(org.exoplatform.wiki.mow.api.Page page)
Get all the watchers of a page
|
org.exoplatform.wiki.mow.api.Wiki |
getWikiById(String wikiId)
Gets a Wiki by its Id.
|
org.exoplatform.wiki.mow.api.Wiki |
getWikiByTypeAndOwner(String wikiType,
String owner)
Gets a Wiki which is defined by its type and owner.
|
List<org.exoplatform.wiki.mow.api.PermissionEntry> |
getWikiDefaultPermissions(String wikiType,
String wikiOwner)
Gets a list of Wiki default permissions.
|
String |
getWikiNameById(String wikiId)
Gets a Wiki name by its Id.
|
org.exoplatform.wiki.service.WikiPageParams |
getWikiPageParams(org.exoplatform.wiki.service.BreadcrumbData data)
Gets parameters of a wiki page based on the data stored in the breadcrumb.
|
List<org.exoplatform.wiki.mow.api.PermissionEntry> |
getWikiPermission(String wikiType,
String wikiOwner)
Gets a list of Wiki permissions based on its type and owner.
|
List<org.exoplatform.wiki.mow.api.Wiki> |
getWikisByType(String wikiType)
Gets all wikis of the given type
|
String |
getWikiWebappUri()
Gets a Wiki webapp URI.
|
boolean |
hasAdminPagePermission(String wikiType,
String owner)
Checks if the current user has the admin permission on a wiki page.
|
boolean |
hasAdminSpacePermission(String wikiType,
String owner)
Checks if the current user has the admin permission on a space or not.
|
boolean |
hasPermissionOnPage(org.exoplatform.wiki.mow.api.Page page,
org.exoplatform.wiki.mow.api.PermissionType permissionType,
Identity user)
Checks if the given user has the permission on a page
|
boolean |
isDraftOutDated(org.exoplatform.wiki.mow.api.DraftPage draftPage)
Check if a draft page is outdated
|
boolean |
isExisting(String wikiType,
String wikiOwner,
String pageId)
Checks if a wiki page exists or not.
|
boolean |
isHiddenSpace(String groupId)
Checks if a space is hidden or not.
|
boolean |
isSpaceMember(String spaceId,
String userId)
Checks if a given user is member of space or not.
|
boolean |
movePage(org.exoplatform.wiki.service.WikiPageParams currentLocationParams,
org.exoplatform.wiki.service.WikiPageParams newLocationParams)
Move a wiki Page
|
void |
removeDraft(String draftName)
Removes a draft page by its name.
|
void |
removeDraftOfPage(org.exoplatform.wiki.service.WikiPageParams param)
Removes a draft page of a wiki page which is specified by the wiki page param.
|
void |
removeRelatedPage(org.exoplatform.wiki.service.WikiPageParams orginaryPageParams,
org.exoplatform.wiki.service.WikiPageParams relatedPageParams)
Removes a related page of the current wiki page.
|
boolean |
renamePage(String wikiType,
String wikiOwner,
String pageName,
String newName,
String newTitle)
Renames a wiki page.
|
void |
restoreVersionOfPage(String versionName,
org.exoplatform.wiki.mow.api.Page page)
Restores a version of a page
|
org.exoplatform.commons.utils.PageList<org.exoplatform.wiki.service.search.SearchResult> |
search(org.exoplatform.wiki.service.search.WikiSearchData data)
Searches in all wiki pages.
|
List<org.exoplatform.wiki.service.impl.SpaceBean> |
searchSpaces(String keyword)
Searches for spaces by a given keyword.
|
List<org.exoplatform.wiki.service.search.TemplateSearchResult> |
searchTemplate(org.exoplatform.wiki.service.search.TemplateSearchData data)
Searches in all templates.
|
void |
updatePage(org.exoplatform.wiki.mow.api.Page page,
org.exoplatform.wiki.service.PageUpdateType type)
Update the given page.
|
void |
updateTemplate(org.exoplatform.wiki.mow.api.Template template)
Modifies an existing wiki template.
|
void |
updateWikiPermission(String wikiType,
String wikiOwner,
List<org.exoplatform.wiki.mow.api.PermissionEntry> permissionEntries)
Adds a list of permissions to Wiki.
|
org.exoplatform.wiki.mow.api.Page createPage(org.exoplatform.wiki.mow.api.Wiki wiki, String parentPageName, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
wiki
- It can be Portal, Group, or User.parentPageName
- Name of the parent wiki page.org.exoplatform.wiki.WikiException
void createTemplatePage(org.exoplatform.wiki.mow.api.Wiki wiki, org.exoplatform.wiki.mow.api.Template template) throws org.exoplatform.wiki.WikiException
wiki
- Wiki of the templatetemplate
- The params object which is used for creating the new Wiki template.org.exoplatform.wiki.WikiException
boolean deletePage(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page.org.exoplatform.wiki.WikiException
void deleteTemplatePage(String wikiType, String wikiOwner, String templateName) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.templateName
- Name of the Wiki template.org.exoplatform.wiki.WikiException
boolean renamePage(String wikiType, String wikiOwner, String pageName, String newName, String newTitle) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageName
- Old name of the wiki page.newName
- New name of the wiki page.newTitle
- New title of the wiki page.org.exoplatform.wiki.WikiException
boolean movePage(org.exoplatform.wiki.service.WikiPageParams currentLocationParams, org.exoplatform.wiki.service.WikiPageParams newLocationParams) throws org.exoplatform.wiki.WikiException
currentLocationParams
- The current location of the wiki page.newLocationParams
- The new location of the wiki page.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.PermissionEntry> getWikiPermission(String wikiType, String wikiOwner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.org.exoplatform.wiki.WikiException
void updateWikiPermission(String wikiType, String wikiOwner, List<org.exoplatform.wiki.mow.api.PermissionEntry> permissionEntries) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.permissionEntries
- The list of permissions.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getPageOfWikiByName(String wikiType, String wikiOwner, String pageName) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageName
- Id of the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getPageByRootPermission(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getRelatedPage(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getExsitedOrNewDraftPageById(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getPageById(String id) throws org.exoplatform.wiki.WikiException
id
- Unique id of the wiki page.org.exoplatform.wiki.WikiException
String getPageRenderedContent(org.exoplatform.wiki.mow.api.Page page, String targetSyntax)
page
- The wiki pagetargetSyntax
- The syntaxvoid addPageLink(org.exoplatform.wiki.service.WikiPageParams param, org.exoplatform.wiki.service.WikiPageParams entity)
param
- First pageentity
- Second pageorg.exoplatform.wiki.mow.api.Page getParentPageOf(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- Wiki page.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.Page> getChildrenPageOf(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- Wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Template getTemplatePage(org.exoplatform.wiki.service.WikiPageParams params, String templateId) throws org.exoplatform.wiki.WikiException
params
- The params object which is used for creating the Wiki template.templateId
- Id of the wiki template.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.service.BreadcrumbData> getBreadcumb(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page to which the breadcrumb points.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.service.WikiPageParams getWikiPageParams(org.exoplatform.wiki.service.BreadcrumbData data) throws org.exoplatform.wiki.WikiException
data
- The data in the breadcrumb that identifies the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.commons.utils.PageList<org.exoplatform.wiki.service.search.SearchResult> search(org.exoplatform.wiki.service.search.WikiSearchData data) throws org.exoplatform.wiki.WikiException
data
- The data to search.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.service.search.TemplateSearchResult> searchTemplate(org.exoplatform.wiki.service.search.TemplateSearchData data) throws org.exoplatform.wiki.WikiException
data
- The data to search.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.Page> getDuplicatePages(org.exoplatform.wiki.mow.api.Page parentPage, org.exoplatform.wiki.mow.api.Wiki targetWiki, List<org.exoplatform.wiki.mow.api.Page> resultList) throws org.exoplatform.wiki.WikiException
parentPage
- The page to check.targetWiki
- The target Wiki to check.resultList
- The list of duplicated wiki pages.org.exoplatform.wiki.WikiException
String getDefaultWikiSyntaxId()
long getSaveDraftSequenceTime()
long getEditPageLivingTime()
List<org.exoplatform.wiki.mow.api.Attachment> getAttachmentsOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
int getNbOfAttachmentsOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Attachment getAttachmentOfPageByName(String attachmentName, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
attachmentName
- The name of the attachmentpage
- The wiki pageorg.exoplatform.wiki.WikiException
void addAttachmentToPage(org.exoplatform.wiki.mow.api.Attachment attachment, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
attachment
- The attachment to addpage
- The wiki pageorg.exoplatform.wiki.WikiException
void deleteAttachmentOfPage(String attachmentId, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
attachmentId
- Id of the attachmentpage
- The wiki pageorg.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Page getHelpSyntaxPage(String syntaxId, boolean fullContent) throws org.exoplatform.wiki.WikiException
syntaxId
- Id of the syntax.fullContent
- true to get the full help page content, false to get an excerptorg.exoplatform.wiki.WikiException
Map<String,org.exoplatform.wiki.mow.api.Template> getTemplates(org.exoplatform.wiki.service.WikiPageParams params) throws org.exoplatform.wiki.WikiException
params
- The params object which is used for getting the wiki templates.org.exoplatform.wiki.WikiException
void updateTemplate(org.exoplatform.wiki.mow.api.Template template) throws org.exoplatform.wiki.WikiException
template
- The updated wiki template.org.exoplatform.wiki.WikiException
boolean isExisting(String wikiType, String wikiOwner, String pageId) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.pageId
- Id of the wiki page.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.PermissionEntry> getWikiDefaultPermissions(String wikiType, String wikiOwner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.wikiOwner
- The Wiki owner.org.exoplatform.wiki.WikiException
void addComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin
- The component plugin to be registered.void addWikiTemplatePagePlugin(org.exoplatform.wiki.plugin.WikiTemplatePagePlugin templatePlugin)
templatePlugin
- The wiki template plugin to be added.void addEmotionIconsPlugin(org.exoplatform.wiki.plugin.WikiEmotionIconsPlugin plugin)
plugin
- The wiki emotion icons plugin to be added.List<org.exoplatform.wiki.service.listener.PageWikiListener> getPageListeners()
List<org.exoplatform.wiki.service.listener.AttachmentWikiListener> getAttachmentListeners()
void addRelatedPage(org.exoplatform.wiki.service.WikiPageParams orginaryPageParams, org.exoplatform.wiki.service.WikiPageParams relatedPageParams) throws org.exoplatform.wiki.WikiException
orginaryPageParams
- The params object of the current wiki page.relatedPageParams
- The params object of the related page.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.Page> getRelatedPagesOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki page.org.exoplatform.wiki.WikiException
void removeRelatedPage(org.exoplatform.wiki.service.WikiPageParams orginaryPageParams, org.exoplatform.wiki.service.WikiPageParams relatedPageParams) throws org.exoplatform.wiki.WikiException
orginaryPageParams
- The params object of the current wiki page.relatedPageParams
- The params object of the related page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.DraftPage createDraftForExistPage(org.exoplatform.wiki.mow.api.DraftPage draftPage, org.exoplatform.wiki.mow.api.Page targetPage, String revision, long clientTime) throws org.exoplatform.wiki.WikiException
targetPage
- The target wiki page.revision
- The revision which is used for creating the draft page. If "null", this will be the last revision.clientTime
- The time of client when the draft page is saved.org.exoplatform.wiki.WikiException
- if the draft page cannot be created.org.exoplatform.wiki.mow.api.DraftPage createDraftForNewPage(org.exoplatform.wiki.mow.api.DraftPage draftPage, org.exoplatform.wiki.mow.api.Page parentPage, long clientTime) throws org.exoplatform.wiki.WikiException
parentPage
- The parent wiki page.clientTime
- The time of client when the draft page is saved.org.exoplatform.wiki.WikiException
- if the draft page cannot be created.org.exoplatform.wiki.mow.api.DraftPage getDraftOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.DraftPage getDraft(String draftName) throws org.exoplatform.wiki.WikiException
draftName
- Name of the draft page.org.exoplatform.wiki.WikiException
void removeDraftOfPage(org.exoplatform.wiki.service.WikiPageParams param) throws org.exoplatform.wiki.WikiException
param
- The param object of the wiki page param.org.exoplatform.wiki.WikiException
void removeDraft(String draftName) throws org.exoplatform.wiki.WikiException
draftName
- Name of the draft page.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.DraftPage> getDraftsOfUser(String username) throws org.exoplatform.wiki.WikiException
username
- Name of the user.org.exoplatform.wiki.WikiException
boolean isDraftOutDated(org.exoplatform.wiki.mow.api.DraftPage draftPage) throws org.exoplatform.wiki.WikiException
draftPage
- org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.DraftPage getLastestDraft() throws org.exoplatform.wiki.WikiException
org.exoplatform.wiki.WikiException
org.exoplatform.wiki.service.diff.DiffResult getDraftChanges(org.exoplatform.wiki.mow.api.DraftPage draftPage) throws org.exoplatform.wiki.WikiException
org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Wiki getOrCreateUserWiki(String username) throws org.exoplatform.wiki.WikiException
username
- Name of the user.org.exoplatform.wiki.WikiException
String getSpaceNameByGroupId(String groupId)
groupId
- The group Id.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.service.impl.SpaceBean> searchSpaces(String keyword) throws org.exoplatform.wiki.WikiException
keyword
- The keyword to search for spaces.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Wiki getWikiByTypeAndOwner(String wikiType, String owner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.owner
- The Wiki owner.org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.Wiki> getWikisByType(String wikiType) throws org.exoplatform.wiki.WikiException
wikiType
- Type of wikiorg.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Wiki createWiki(String wikiType, String owner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.owner
- The Wiki owner.org.exoplatform.wiki.WikiException
String getWikiWebappUri()
boolean isSpaceMember(String spaceId, String userId)
spaceId
- Id of the space.userId
- The username.boolean isHiddenSpace(String groupId)
groupId
- Id of the group.org.exoplatform.wiki.WikiException
boolean hasPermissionOnPage(org.exoplatform.wiki.mow.api.Page page, org.exoplatform.wiki.mow.api.PermissionType permissionType, Identity user) throws org.exoplatform.wiki.WikiException
user
- page
- permissionType
- org.exoplatform.wiki.WikiException
boolean hasAdminSpacePermission(String wikiType, String owner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.owner
- Owner of the space.org.exoplatform.wiki.WikiException
boolean hasAdminPagePermission(String wikiType, String owner) throws org.exoplatform.wiki.WikiException
wikiType
- It can be Portal, Group, or User.owner
- Owner of the wiki page.org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.Wiki getWikiById(String wikiId) throws org.exoplatform.wiki.WikiException
wikiId
- The Wiki Id.org.exoplatform.wiki.WikiException
String getWikiNameById(String wikiId) throws org.exoplatform.wiki.WikiException
wikiId
- The Wiki Id.org.exoplatform.wiki.WikiException
boolean canModifyPagePermission(org.exoplatform.wiki.mow.api.Page currentPage, String currentUser) throws org.exoplatform.wiki.WikiException
currentPage
- The page to updatecurrentUser
- The user that needs to update the pageorg.exoplatform.wiki.WikiException
boolean canPublicAndRetrictPage(org.exoplatform.wiki.mow.api.Page currentPage, String currentUser) throws org.exoplatform.wiki.WikiException
currentPage
- currentUser
- org.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.PageVersion> getVersionsOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.PageVersion getVersionOfPageByName(String versionName, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
versionName
- The name of the versionpage
- The wiki pageorg.exoplatform.wiki.WikiException
void createVersionOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
void restoreVersionOfPage(String versionName, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
versionName
- The name of the version to restorepage
- The wiki pageorg.exoplatform.wiki.WikiException
void updatePage(org.exoplatform.wiki.mow.api.Page page, org.exoplatform.wiki.service.PageUpdateType type) throws org.exoplatform.wiki.WikiException
page
- Updated pagetype
- Type of updateorg.exoplatform.wiki.WikiException
List<String> getPreviousNamesOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
void createEmotionIcon(org.exoplatform.wiki.mow.api.EmotionIcon emotionIcon) throws org.exoplatform.wiki.WikiException
emotionIcon
- The emotion icon to addorg.exoplatform.wiki.WikiException
List<org.exoplatform.wiki.mow.api.EmotionIcon> getEmotionIcons() throws org.exoplatform.wiki.WikiException
org.exoplatform.wiki.WikiException
org.exoplatform.wiki.mow.api.EmotionIcon getEmotionIconByName(String name) throws org.exoplatform.wiki.WikiException
name
- The name of the emotion iconorg.exoplatform.wiki.WikiException
List<String> getWatchersOfPage(org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
page
- The wiki pageorg.exoplatform.wiki.WikiException
void addWatcherToPage(String username, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
username
- Username of the user to add as watcherpage
- The wiki pageorg.exoplatform.wiki.WikiException
void deleteWatcherOfPage(String username, org.exoplatform.wiki.mow.api.Page page) throws org.exoplatform.wiki.WikiException
username
- Username of the user to delete as watcherpage
- The wiki pageorg.exoplatform.wiki.WikiException
Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.