public interface DataStorage
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachmentToPage(Attachment attachment,
Page page) |
void |
addPageVersion(Page page) |
void |
addRelatedPage(Page page,
Page relatedPage) |
void |
addWatcherToPage(String username,
Page page) |
void |
createDraftPageForUser(DraftPage draftPage,
String username) |
void |
createEmotionIcon(EmotionIcon emotionIcon) |
Page |
createPage(Wiki wiki,
Page parentPage,
Page page) |
void |
createTemplatePage(Wiki wiki,
Template template) |
Wiki |
createWiki(Wiki wiki) |
void |
deleteAttachmentOfPage(String attachmentId,
Page page) |
void |
deleteDraftByName(String newDraftPageName,
String username) |
void |
deleteDraftOfPage(Page page,
String username) |
void |
deletePage(String wikiType,
String wikiOwner,
String pageId) |
void |
deleteTemplatePage(String wikiType,
String wikiOwner,
String templateName) |
void |
deleteWatcherOfPage(String username,
Page page) |
List<Attachment> |
getAttachmentsOfPage(Page page) |
List<Page> |
getChildrenPageOf(Page page) |
DraftPage |
getDraft(String draftName,
String username) |
DraftPage |
getDraft(WikiPageParams param,
String username) |
DraftPage |
getDraftPageById(String id) |
List<DraftPage> |
getDraftPagesOfUser(String username) |
EmotionIcon |
getEmotionIconByName(String name) |
List<EmotionIcon> |
getEmotionIcons() |
Page |
getExsitedOrNewDraftPageById(String wikiType,
String wikiOwner,
String pageId,
String username) |
Page |
getHelpSyntaxPage(String syntaxId,
boolean fullContent,
List<org.exoplatform.container.xml.ValuesParam> syntaxHelpParams,
org.exoplatform.container.configuration.ConfigurationManager configurationManager) |
DraftPage |
getLastestDraft(String username) |
Page |
getPageById(String id)
Get a wiki page by its unique id
|
Page |
getPageOfWikiByName(String wikiType,
String wikiOwner,
String pageName)
Get a wiki page by its unique name in the wiki
|
List<Page> |
getPagesOfWiki(String wikiType,
String wikiOwner)
Retrieve the all pages contained in wiki
|
Page |
getParentPageOf(Page page) |
List<String> |
getPreviousNamesOfPage(Page page) |
Page |
getRelatedPage(String wikiType,
String wikiOwner,
String pageId) |
List<Page> |
getRelatedPagesOfPage(Page page) |
Template |
getTemplatePage(WikiPageParams params,
String templateId) |
Map<String,Template> |
getTemplates(WikiPageParams params) |
List<PageVersion> |
getVersionsOfPage(Page page) |
List<String> |
getWatchersOfPage(Page page) |
Wiki |
getWikiByTypeAndOwner(String wikiType,
String owner) |
List<PermissionEntry> |
getWikiPermission(String wikiType,
String wikiOwner) |
List<Wiki> |
getWikisByType(String wikiType) |
boolean |
hasAdminPagePermission(String wikiType,
String owner,
org.exoplatform.services.security.Identity user) |
boolean |
hasAdminSpacePermission(String wikiType,
String owner,
org.exoplatform.services.security.Identity user) |
boolean |
hasPermissionOnPage(Page page,
PermissionType permissionType,
org.exoplatform.services.security.Identity user)
Check if the identity has the given permission type on a page
|
boolean |
hasPermissionOnWiki(Wiki wiki,
PermissionType permissionType,
org.exoplatform.services.security.Identity identity)
Check if the identity has the given permission type on a wiki
|
void |
movePage(WikiPageParams currentLocationParams,
WikiPageParams newLocationParams) |
void |
removeRelatedPage(Page page,
Page relatedPage) |
void |
renamePage(String wikiType,
String wikiOwner,
String pageName,
String newName,
String newTitle) |
void |
restoreVersionOfPage(String versionName,
Page page) |
org.exoplatform.commons.utils.PageList<SearchResult> |
search(WikiSearchData data) |
List<TemplateSearchResult> |
searchTemplate(TemplateSearchData data) |
void |
updatePage(Page page) |
void |
updateTemplatePage(Template template) |
void |
updateWikiPermission(String wikiType,
String wikiOwner,
List<PermissionEntry> permissionEntries) |
Wiki getWikiByTypeAndOwner(String wikiType, String owner) throws WikiException
WikiExceptionList<Wiki> getWikisByType(String wikiType) throws WikiException
WikiExceptionWiki createWiki(Wiki wiki) throws WikiException
WikiExceptionPage createPage(Wiki wiki, Page parentPage, Page page) throws WikiException
WikiExceptionPage getPageOfWikiByName(String wikiType, String wikiOwner, String pageName) throws WikiException
pageName - The unique name of the page in the wikiWikiExceptionPage getPageById(String id) throws WikiException
id - The unique id of wiki pageWikiExceptionDraftPage getDraftPageById(String id) throws WikiException
WikiExceptionPage getParentPageOf(Page page) throws WikiException
WikiExceptionList<Page> getChildrenPageOf(Page page) throws WikiException
WikiExceptionvoid createTemplatePage(Wiki wiki, Template template) throws WikiException
WikiExceptionvoid updateTemplatePage(Template template) throws WikiException
WikiExceptionvoid deleteTemplatePage(String wikiType, String wikiOwner, String templateName) throws WikiException
WikiExceptionvoid deletePage(String wikiType, String wikiOwner, String pageId) throws WikiException
WikiExceptionTemplate getTemplatePage(WikiPageParams params, String templateId) throws WikiException
WikiExceptionMap<String,Template> getTemplates(WikiPageParams params) throws WikiException
WikiExceptionvoid deleteDraftOfPage(Page page, String username) throws WikiException
WikiExceptionvoid deleteDraftByName(String newDraftPageName, String username) throws WikiException
WikiExceptionvoid renamePage(String wikiType, String wikiOwner, String pageName, String newName, String newTitle) throws WikiException
WikiExceptionvoid movePage(WikiPageParams currentLocationParams, WikiPageParams newLocationParams) throws WikiException
WikiExceptionList<PermissionEntry> getWikiPermission(String wikiType, String wikiOwner) throws WikiException
WikiExceptionvoid updateWikiPermission(String wikiType, String wikiOwner, List<PermissionEntry> permissionEntries) throws WikiException
WikiExceptionList<Page> getRelatedPagesOfPage(Page page) throws WikiException
WikiExceptionPage getRelatedPage(String wikiType, String wikiOwner, String pageId) throws WikiException
WikiExceptionvoid addRelatedPage(Page page, Page relatedPage) throws WikiException
WikiExceptionvoid removeRelatedPage(Page page, Page relatedPage) throws WikiException
WikiExceptionPage getExsitedOrNewDraftPageById(String wikiType, String wikiOwner, String pageId, String username) throws WikiException
WikiExceptionDraftPage getDraft(WikiPageParams param, String username) throws WikiException
WikiExceptionDraftPage getLastestDraft(String username) throws WikiException
WikiExceptionDraftPage getDraft(String draftName, String username) throws WikiException
WikiExceptionList<DraftPage> getDraftPagesOfUser(String username) throws WikiException
WikiExceptionvoid createDraftPageForUser(DraftPage draftPage, String username) throws WikiException
WikiExceptionorg.exoplatform.commons.utils.PageList<SearchResult> search(WikiSearchData data) throws WikiException
WikiExceptionList<TemplateSearchResult> searchTemplate(TemplateSearchData data) throws WikiException
WikiExceptionList<Attachment> getAttachmentsOfPage(Page page) throws WikiException
WikiExceptionvoid addAttachmentToPage(Attachment attachment, Page page) throws WikiException
WikiExceptionvoid deleteAttachmentOfPage(String attachmentId, Page page) throws WikiException
WikiExceptionPage getHelpSyntaxPage(String syntaxId, boolean fullContent, List<org.exoplatform.container.xml.ValuesParam> syntaxHelpParams, org.exoplatform.container.configuration.ConfigurationManager configurationManager) throws WikiException
WikiExceptionvoid createEmotionIcon(EmotionIcon emotionIcon) throws WikiException
WikiExceptionList<EmotionIcon> getEmotionIcons() throws WikiException
WikiExceptionEmotionIcon getEmotionIconByName(String name) throws WikiException
WikiExceptionboolean hasPermissionOnPage(Page page, PermissionType permissionType, org.exoplatform.services.security.Identity user) throws WikiException
page - PagepermissionType - Permission type to checkuser - Identity of the userWikiExceptionboolean hasPermissionOnWiki(Wiki wiki, PermissionType permissionType, org.exoplatform.services.security.Identity identity) throws WikiException
wiki - WikipermissionType - Permission type to checkidentity - Identity of the userWikiExceptionboolean hasAdminSpacePermission(String wikiType, String owner, org.exoplatform.services.security.Identity user) throws WikiException
WikiExceptionboolean hasAdminPagePermission(String wikiType, String owner, org.exoplatform.services.security.Identity user) throws WikiException
WikiExceptionList<PageVersion> getVersionsOfPage(Page page) throws WikiException
WikiExceptionvoid addPageVersion(Page page) throws WikiException
WikiExceptionvoid restoreVersionOfPage(String versionName, Page page) throws WikiException
WikiExceptionvoid updatePage(Page page) throws WikiException
WikiExceptionList<String> getPreviousNamesOfPage(Page page) throws WikiException
WikiExceptionList<String> getWatchersOfPage(Page page) throws WikiException
WikiExceptionvoid addWatcherToPage(String username, Page page) throws WikiException
WikiExceptionvoid deleteWatcherOfPage(String username, Page page) throws WikiException
WikiExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.