Package org.exoplatform.wiki.service
Interface WikiService
- All Known Implementing Classes:
WikiServiceImpl
public interface WikiService
Provides functions for processing database
with wikis and pages, including: adding, editing, removing and searching for data.
- eXo level API
- Provisional
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin) Registers a component plugin into the Wiki service.booleancanManageWiki(String wikiType, String wikiOwner, String username) Checks whether a user can manage aWikior notcreateWiki(String wikiType, String owner) Creates a wiki with the given type and ownerGets Id of a default Wiki syntax.getOrCreateUserWiki(String username) Gets a user Wiki.Gets listeners of all wiki pages that are registered into the Wiki service.getSpaceNameByGroupId(String groupId) Gets a space name by a given group Id.getWikiById(String wikiId) Gets a Wiki by its Id.getWikiByTypeAndOwner(String wikiType, String owner) Gets a Wiki which is defined by its type and owner.Gets parameters of a wiki page based on the data stored in the breadcrumb.getWikisByType(String wikiType) Gets all wikis of the given typeGets a Wiki webapp URI.
-
Method Details
-
getWikiPageParams
Gets parameters of a wiki page based on the data stored in the breadcrumb.- Parameters:
data- The data in the breadcrumb that identifies the wiki page.- Returns:
- The parameters identifying the wiki page.
- Throws:
WikiException- if an error occured if an error occured
-
getDefaultWikiSyntaxId
String getDefaultWikiSyntaxId()Gets Id of a default Wiki syntax.- Returns:
- The Id.
-
addComponentPlugin
void addComponentPlugin(org.exoplatform.container.component.ComponentPlugin plugin) Registers a component plugin into the Wiki service.- Parameters:
plugin- The component plugin to be registered.
-
getPageListeners
List<PageWikiListener> getPageListeners()Gets listeners of all wiki pages that are registered into the Wiki service.- Returns:
- The list of listeners.
-
getOrCreateUserWiki
Gets a user Wiki. If it does not exist, the new one will be created.- Parameters:
username- Name of the user.- Returns:
- The user Wiki.
- Throws:
WikiException- if an error occured
-
getSpaceNameByGroupId
Gets a space name by a given group Id.- Parameters:
groupId- The group Id.- Returns:
- The space name.
-
getWikiByTypeAndOwner
Gets a Wiki which is defined by its type and owner.- Parameters:
wikiType- It can be Portal, Group, or User.owner- The Wiki owner.- Returns:
- The Wiki.
- Throws:
WikiException- if an error occured
-
getWikisByType
Gets all wikis of the given type- Parameters:
wikiType- Type of wiki- Returns:
- Wikis of the given type
- Throws:
WikiException- if an error occured
-
createWiki
Creates a wiki with the given type and owner- Parameters:
wikiType- It can be Portal, Group, or User.owner- The Wiki owner.- Returns:
- Wiki created
- Throws:
WikiException- if an error occured
-
getWikiWebappUri
String getWikiWebappUri()Gets a Wiki webapp URI.- Returns:
- The Wiki webapp URI.
-
getWikiById
Gets a Wiki by its Id.- Parameters:
wikiId- The Wiki Id.- Returns:
- The Wiki.
- Throws:
WikiException- if an error occured
-
canManageWiki
Checks whether a user can manage aWikior not
-