|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WikiService
Created by The eXo Platform SARL.
WikiService is interface provide functions for processing database with wikis and pages include: add, edit, remove and searching data
| Method Summary | |
|---|---|
void |
addComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
register a PageWikiListener |
boolean |
addRelatedPage(WikiPageParams orginaryPageParams,
WikiPageParams relatedPageParams)
|
void |
addWikiTemplatePagePlugin(WikiTemplatePagePlugin templatePlugin)
|
DraftPage |
createDraftForExistPage(WikiPageParams param,
String revision,
long clientTime)
Create a draft page for a wiki page which is specified by the wiki page param |
DraftPage |
createDraftForNewPage(WikiPageParams parentPageParam,
long clientTime)
Create a draft page for a new wiki page which parent is specified by the wiki page param |
Page |
createPage(String wikiType,
String wikiOwner,
String title,
String parentId)
|
Template |
createTemplatePage(String title,
WikiPageParams params)
|
void |
deleteDraftNewPage(String draftNewPageId)
|
boolean |
deletePage(String wikiType,
String wikiOwner,
String pageId)
|
void |
deleteTemplatePage(String wikiType,
String wikiOwner,
String templateId)
|
Object |
findByPath(String path,
String objectNodeType)
|
InputStream |
getAttachmentAsStream(String path)
|
List<BreadcrumbData> |
getBreadcumb(String wikiType,
String wikiOwner,
String pageId)
|
String |
getDefaultWikiSyntaxId()
|
DraftPage |
getDraft(String draftName)
Get draft by draft name |
DraftPage |
getDraft(WikiPageParams param)
Achieve a draft page for a wiki page which is specified by the wiki page param |
List<DraftPage> |
getDrafts(String username)
Get collection of draft page belong to a user |
List<PageImpl> |
getDuplicatePages(PageImpl parentPage,
Wiki targetWiki,
List<PageImpl> resultList)
Get a list of duppilcated page between all children pages of parentPage and targetWiki before execute moving page |
Page |
getExsitedOrNewDraftPageById(String wikiType,
String wikiOwner,
String pageId)
|
PageImpl |
getHelpSyntaxPage(String syntaxId)
|
DraftPage |
getLastestDraft()
Get the draft that's created lastest |
Page |
getMetaDataPage(MetaDataPage metaPage)
|
UserWiki |
getOrCreateUserWiki(String username)
Get user wiki, and if it did not create yet then create new one |
Page |
getPageById(String wikiType,
String wikiOwner,
String pageId)
|
Page |
getPageByRootPermission(String wikiType,
String wikiOwner,
String pageId)
|
Page |
getPageByUUID(String uuid)
|
List<PageWikiListener> |
getPageListeners()
|
String |
getPageTitleOfAttachment(String path)
|
String |
getPortalOwner()
Get portal owner |
Page |
getRelatedPage(String wikiType,
String wikiOwner,
String pageId)
|
List<Page> |
getRelatedPage(WikiPageParams pageParams)
|
long |
getSaveDraftSequenceTime()
Get the draft save sequence time from config file |
String |
getSpaceNameByGroupId(String groupId)
Get space name by group Id |
Template |
getTemplatePage(WikiPageParams params,
String templateId)
|
Map<String,Template> |
getTemplates(WikiPageParams params)
|
TemplateContainer |
getTemplatesContainer(WikiPageParams params)
|
Wiki |
getWiki(String wikiType,
String owner)
Get a wiki that definds by wikiType and owner |
Wiki |
getWikiById(String wikiId)
Get wiki by Id |
List<String> |
getWikiDefaultPermissions(String wikiType,
String wikiOwner)
Get wiki default permission |
String |
getWikiNameById(String wikiId)
Get wiki name by wiki id |
Page |
getWikiPageByUUID(String uuid)
Get wiki page by page UUID |
WikiPageParams |
getWikiPageParams(BreadcrumbData data)
|
List<PermissionEntry> |
getWikiPermission(String wikiType,
String wikiOwner)
|
String |
getWikiWebappUri()
Get the uri of wiki webapp |
boolean |
hasAdminPagePermission(String wikiType,
String owner)
Check if the current user has addmin permission on the page |
boolean |
hasAdminSpacePermission(String wikiType,
String owner)
Check if the current user has addmin permission on the space |
void |
initDefaultTemplatePage(String path)
|
boolean |
isExisting(String wikiType,
String wikiOwner,
String pageId)
|
boolean |
isHiddenSpace(String groupId)
Check if the space is hidden or not |
boolean |
isSpaceMember(String spaceId,
String userId)
Checks whether a user is a space's member or not. |
void |
modifyTemplate(WikiPageParams params,
Template template,
String newName,
String newDescription,
String newContent,
String newSyntaxId)
|
boolean |
movePage(WikiPageParams currentLocationParams,
WikiPageParams newLocationParams)
|
void |
removeDraft(String draftName)
Remove a draft page by draft name |
void |
removeDraft(WikiPageParams param)
Remove a draft page for a wiki page which is specified by the wiki page param |
boolean |
removeRelatedPage(WikiPageParams orginaryPageParams,
WikiPageParams relatedPageParams)
|
boolean |
renamePage(String wikiType,
String wikiOwner,
String pageName,
String newName,
String newTitle)
|
org.exoplatform.commons.utils.PageList<SearchResult> |
search(WikiSearchData data)
|
org.exoplatform.commons.utils.PageList<SearchResult> |
searchContent(WikiSearchData data)
|
List<TitleSearchResult> |
searchDataByTitle(WikiSearchData data)
|
List<SearchResult> |
searchRenamedPage(String wikiType,
String wikiOwner,
String pageId)
|
List<SpaceBean> |
searchSpaces(String keyword)
Search for spaces by keyword |
List<TemplateSearchResult> |
searchTemplate(TemplateSearchData data)
|
void |
setWikiPermission(String wikiType,
String wikiOwner,
List<PermissionEntry> permissionEntries)
|
| Method Detail |
|---|
Page createPage(String wikiType,
String wikiOwner,
String title,
String parentId)
throws Exception
Exception
Template createTemplatePage(String title,
WikiPageParams params)
throws Exception
Exceptionvoid initDefaultTemplatePage(String path)
boolean deletePage(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
void deleteTemplatePage(String wikiType,
String wikiOwner,
String templateId)
throws Exception
Exception
void deleteDraftNewPage(String draftNewPageId)
throws Exception
Exception
boolean renamePage(String wikiType,
String wikiOwner,
String pageName,
String newName,
String newTitle)
throws Exception
Exception
boolean movePage(WikiPageParams currentLocationParams,
WikiPageParams newLocationParams)
throws Exception
Exception
List<PermissionEntry> getWikiPermission(String wikiType,
String wikiOwner)
throws Exception
Exception
void setWikiPermission(String wikiType,
String wikiOwner,
List<PermissionEntry> permissionEntries)
throws Exception
Exception
Page getPageById(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
Page getPageByRootPermission(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
Page getRelatedPage(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
Page getExsitedOrNewDraftPageById(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
Page getPageByUUID(String uuid)
throws Exception
Exception
Template getTemplatePage(WikiPageParams params,
String templateId)
throws Exception
Exception
org.exoplatform.commons.utils.PageList<SearchResult> searchContent(WikiSearchData data)
throws Exception
Exception
List<BreadcrumbData> getBreadcumb(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
WikiPageParams getWikiPageParams(BreadcrumbData data)
throws Exception
Exception
org.exoplatform.commons.utils.PageList<SearchResult> search(WikiSearchData data)
throws Exception
Exception
List<TemplateSearchResult> searchTemplate(TemplateSearchData data)
throws Exception
Exception
List<SearchResult> searchRenamedPage(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
List<TitleSearchResult> searchDataByTitle(WikiSearchData data)
throws Exception
Exception
List<PageImpl> getDuplicatePages(PageImpl parentPage,
Wiki targetWiki,
List<PageImpl> resultList)
throws Exception
parentPage - The page to check before execute movingtargetWiki - The target wiki to move page toresultList - The list of duppicate wiki page
Exception
Object findByPath(String path,
String objectNodeType)
throws Exception
ExceptionString getDefaultWikiSyntaxId()
long getSaveDraftSequenceTime()
String getPageTitleOfAttachment(String path)
throws Exception
Exception
InputStream getAttachmentAsStream(String path)
throws Exception
Exception
PageImpl getHelpSyntaxPage(String syntaxId)
throws Exception
Exception
Page getMetaDataPage(MetaDataPage metaPage)
throws Exception
Exception
Map<String,Template> getTemplates(WikiPageParams params)
throws Exception
Exception
TemplateContainer getTemplatesContainer(WikiPageParams params)
throws Exception
Exception
void modifyTemplate(WikiPageParams params,
Template template,
String newName,
String newDescription,
String newContent,
String newSyntaxId)
throws Exception
Exception
boolean isExisting(String wikiType,
String wikiOwner,
String pageId)
throws Exception
Exception
List<String> getWikiDefaultPermissions(String wikiType,
String wikiOwner)
throws Exception
wikiType - The type of wikiwikiOwner - The owner of wiki
Exceptionvoid addComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
PageWikiListener
listener - void addWikiTemplatePagePlugin(WikiTemplatePagePlugin templatePlugin)
List<PageWikiListener> getPageListeners()
PageWikiListener
boolean addRelatedPage(WikiPageParams orginaryPageParams,
WikiPageParams relatedPageParams)
throws Exception
Exception
List<Page> getRelatedPage(WikiPageParams pageParams)
throws Exception
Exception
boolean removeRelatedPage(WikiPageParams orginaryPageParams,
WikiPageParams relatedPageParams)
throws Exception
Exception
DraftPage createDraftForExistPage(WikiPageParams param,
String revision,
long clientTime)
throws Exception
param - wiki page paramrevision - the target revision, null if it's the lastest revisionclientTime - The time of client when save draft
Exception - if create draft not success
DraftPage createDraftForNewPage(WikiPageParams parentPageParam,
long clientTime)
throws Exception
param - parent wiki page paramclientTime - The time of client when save draft
Exception - if create draft not success
DraftPage getDraft(WikiPageParams param)
throws Exception
param - wiki page param
Exception
DraftPage getDraft(String draftName)
throws Exception
draftName - draft name
Exception
void removeDraft(WikiPageParams param)
throws Exception
param - wiki page param
Exception
void removeDraft(String draftName)
throws Exception
draftName - draft name
Exception
List<DraftPage> getDrafts(String username)
throws Exception
username - user name
Exception
Page getWikiPageByUUID(String uuid)
throws Exception
uuid - of wiki page
Exception
DraftPage getLastestDraft()
throws Exception
ExceptionUserWiki getOrCreateUserWiki(String username)
username - The user name
String getSpaceNameByGroupId(String groupId)
throws Exception
groupId - The group Id to get space name
Exception
List<SpaceBean> searchSpaces(String keyword)
throws Exception
keyword - The keyword to search spaces
Exception
Wiki getWiki(String wikiType,
String owner)
wikiType - The wiki typeowner - Wiki owner
String getPortalOwner()
String getWikiWebappUri()
boolean isSpaceMember(String spaceId,
String userId)
spaceId - the existing space iduserId - the remote user id
boolean isHiddenSpace(String groupId)
throws Exception
groupId - The group Id to check
Exception
boolean hasAdminSpacePermission(String wikiType,
String owner)
throws Exception
wikiType - The wiki type of the spaceowner - The owner of the space
Exception
boolean hasAdminPagePermission(String wikiType,
String owner)
throws Exception
wikiType - The wiki type of the spaceowner - The owner of the space
ExceptionWiki getWikiById(String wikiId)
wikiId - The wiki id
String getWikiNameById(String wikiId)
throws Exception
wikiId - The wiki id
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||