Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.webcenter.doclib.model.rc
Class DefaultFolderContextFactory

java.lang.Object
  extended by oracle.webcenter.doclib.model.rc.DefaultFolderContextFactory

All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class DefaultFolderContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

This context factory returns an initial context corresponding to the folder for the current space (i.e., the Group Space folder). If the current space is the personal space, the current user's personal folder is returned.

This factory can be used in a resource catalog as follows:

<customFolder id="doclibGroupDocuments"
              factoryClass="oracle.webcenter.doclib.model.rc.DefaultFolderContextFactory" />
 

Constructor Summary
DefaultFolderContextFactory()
           

 

Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
          Gets the context corresponding to the default folder for the current Space.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultFolderContextFactory

public DefaultFolderContextFactory()

Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
                                       throws javax.naming.NamingException
Gets the context corresponding to the default folder for the current Space.
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Parameters:
env - The resource catalog environment
Returns:
The group space folder if we are currently in a group space, or the current user's personal folder if we are in the personal space. Return null if the documents service is not configured or not provisioned in the current space.
Throws:
javax.naming.NamingException - if an error occurs.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.