com.sap.netweaver.coll.wiki

Class WikiContext

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

public class WikiContext
extends Object

Used in order to pass context to the WikiFactory.

See Also:
WikiFactory

Constructor Summary
WikiContext()
          Default constructor.
WikiContext(long rootSpaceID)
          Wiki Context is created without user identity.
WikiContext(Principal contextUser)
          Wiki Context is created with identity of the specified user.
WikiContext(Principal contextUser, long rootSpaceID)
          Wiki Context is created with identity of the specified user and specified root community unique identifier.
 
Method Summary
protected  Context createJNDIContext()
           
 String getJNDIPrincipal()
          Returns the JNDI principal used to create InitialContext from the Wiki Context.
 String getJNDIProviderURL()
          Returns the JNDI provider URL.
 void setJNDICredentials(String jndiCredentials)
          Sets JNDI password.
 void setJNDIPrincipal(String jndiPrincipal)
          Sets JNDI principal.
 void setJNDIProviderURL(String jndiProviderURL)
          Sets the JNDI ProviderURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiContext

public WikiContext()
Default constructor. Wiki Context is created using the system user. The root community is set the root community with unique identifier 1.


WikiContext

public WikiContext(Principal contextUser)
Wiki Context is created with identity of the specified user. The root community is set to the root community with unique identifier 1.

Parameters:
contextUser - should not be null

WikiContext

public WikiContext(long rootSpaceID)
Wiki Context is created without user identity.

Parameters:
rootSpaceID - the unique identifier of the root community

WikiContext

public WikiContext(Principal contextUser,
                   long rootSpaceID)
Wiki Context is created with identity of the specified user and specified root community unique identifier.

Parameters:
contextUser - the user name of the context user. Should not be null.
rootSpaceID - the unique identifier of the root community. Should not be zero or negative.
Method Detail

setJNDIPrincipal

public void setJNDIPrincipal(String jndiPrincipal)
Sets JNDI principal.

Parameters:
jndiPrincipal - the JNDI priniciapl

getJNDIPrincipal

public String getJNDIPrincipal()
Returns the JNDI principal used to create InitialContext from the Wiki Context.

Returns:
the JNDI principal name

setJNDICredentials

public void setJNDICredentials(String jndiCredentials)
Sets JNDI password.

Parameters:
jndiCredentials - the JNDI password.

getJNDIProviderURL

public String getJNDIProviderURL()
Returns the JNDI provider URL.

Returns:
JNDI Provider URL

setJNDIProviderURL

public void setJNDIProviderURL(String jndiProviderURL)
Sets the JNDI ProviderURL

Parameters:
jndiProviderURL -

createJNDIContext

protected Context createJNDIContext()
                             throws NamingException
Throws:
NamingException
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