Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


oracle.webcenter.spaces.context
Class SpacesContext

java.lang.Object
  extended by oracle.webcenter.spaces.context.SpacesContext


public abstract class SpacesContext
extends java.lang.Object

This abstract class is responsible for managing the context of Spaces.


Field Summary
protected  java.lang.String spaceName
           

 

Constructor Summary
SpacesContext(java.lang.String spaceName)
           

 

Method Summary
static SpacesContext getCurrentInstance()
          Return the SpacesContext instance for the request that is being processed by the current thread, if any.
abstract  Space getCurrentSpace()
          Returns the the Space object that the user is currently logged in.
abstract  java.lang.String getCurrentSpaceGUID()
          Get the GUID of the current space application
abstract  java.lang.String getCurrentSpaceName()
          Get the name of th current space application
abstract  SpacesManager getSpacesManager()
          This API returns the SpacesManager instance associated with this web application.
static void releaseCachedContext()
          Release all the cached thread local instance.
static void setCurrentInstance(SpacesContext context)
          Set the SpacesContext instance for the request that is being processed by the current thread.

 

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

 

Field Detail

spaceName

protected java.lang.String spaceName

Constructor Detail

SpacesContext

public SpacesContext(java.lang.String spaceName)

Method Detail

getSpacesManager

public abstract SpacesManager getSpacesManager()
                                        throws SpacesException

This API returns the SpacesManager instance associated with this web application.

Returns:
Implementation of SpacesManager object
Throws:
SpacesException - if Spaces Manager instance can not be created in the given context

getCurrentSpace

public abstract Space getCurrentSpace()
Returns the the Space object that the user is currently logged in.
Returns:
The Space object that the user is currently in, or null if the user is currently in the context of Personal WebCenter.

getCurrentSpaceName

public abstract java.lang.String getCurrentSpaceName()
Get the name of th current space application
Returns:
name of the Current space

getCurrentSpaceGUID

public abstract java.lang.String getCurrentSpaceGUID()
Get the GUID of the current space application

getCurrentInstance

public static SpacesContext getCurrentInstance()

Return the SpacesContext instance for the request that is being processed by the current thread, if any.


releaseCachedContext

public static void releaseCachedContext()
Release all the cached thread local instance.

setCurrentInstance

public static void setCurrentInstance(SpacesContext context)
Set the SpacesContext instance for the request that is being processed by the current thread.
Parameters:
context - The SpacesContext instance for the current thread, or null if this thread no longer has a SpacesContext instance.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


Copyright © 2009, 2010, Oracle. All rights reserved.