com.sap.netweaver.coll.wiki

Class WikiFactory

java.lang.Object
  extended by com.sap.netweaver.coll.wiki.WikiFactory

public class WikiFactory
extends Object

A WikiFactory provides access to and management of Wiki. It is the point of entry for the entire system. A concrete instance of the WikiFactory can be obtained by calling the constructor and passing WikiContext.


Constructor Summary
WikiFactory(WikiContext context)
          Constructs WikiFactory object
 
Method Summary
 IWikiAttachmentManager getAttachmentManager()
          Returns attachment manager
 IWikiCommentManager getAuthorCommentManager()
          Returns author comment manager
 IWikiCommentManager getCommentManager()
          Returns comment manager
static WikiFactory getInstance()
          Returns WikiFactory with default context.
static WikiFactory getInstance(WikiContext context)
          Returns WikiFactory with specific context.
 IWikiPageManager getPageManager()
          Returns page manager
 IWikiPermissionManager getPermissionManager()
          Returns permission manager
 IWikiSpaceManager getSpaceManager()
          Returns space manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiFactory

public WikiFactory(WikiContext context)
            throws com.sap.netweaver.coll.wiki.exception.InvalidWikiContextException
Constructs WikiFactory object

Parameters:
context - the wiki context used to authenticate against wiki application
Throws:
com.sap.netweaver.coll.wiki.exception.InvalidWikiContextException
Method Detail

getInstance

public static WikiFactory getInstance()
Returns WikiFactory with default context.

Returns:
wiki factory
See Also:
WikiContext.WikiContext()

getInstance

public static WikiFactory getInstance(WikiContext context)
                               throws com.sap.netweaver.coll.wiki.exception.InvalidWikiContextException
Returns WikiFactory with specific context. This instance is cached and later calls will return it. Note that in such case null might be passed as value of the context parameter.

Parameters:
context - the context
Returns:
wiki factory
Throws:
com.sap.netweaver.coll.wiki.exception.InvalidWikiContextException

getSpaceManager

public IWikiSpaceManager getSpaceManager()
Returns space manager

Returns:
space manager

getPageManager

public IWikiPageManager getPageManager()
Returns page manager

Returns:
page manager

getAttachmentManager

public IWikiAttachmentManager getAttachmentManager()
Returns attachment manager

Returns:
attachment manager

getCommentManager

public IWikiCommentManager getCommentManager()
Returns comment manager

Returns:
comment manager

getAuthorCommentManager

public IWikiCommentManager getAuthorCommentManager()
Returns author comment manager

Returns:
author comment manager

getPermissionManager

public IWikiPermissionManager getPermissionManager()
Returns permission manager

Returns:
permission manager
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[com.sap] KMC-WIKI [com.sap] com.sap.netweaver.coll.wiki.api api BC-COM-WIK


Copyright 2014 SAP AG Complete Copyright Notice