|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.webcenter.spaces.context.SpacesContext
public abstract class SpacesContext
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 Space object that the user is currently in. |
abstract java.lang.String |
getCurrentSpaceGUID()Get the GUID of the current space application |
abstract java.lang.String |
getCurrentSpaceName()Gets the name of the Space associated with the current web request. |
abstract SpacesManager |
getSpacesManager()Gets 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 |
|---|
protected java.lang.String spaceName
| Constructor Detail |
|---|
public SpacesContext(java.lang.String spaceName)
| Method Detail |
|---|
public abstract SpacesManager getSpacesManager()
throws SpacesException
SpacesManager instance associated with this web application.SpacesManager instance associated with the current web applicationSpacesException - if Spaces Manager instance can not be created in the given contextpublic abstract Space getCurrentSpace()
EL: #{spaceContext.currentSpace}
#{spaceContext.space[spaceName]}
Second EL above returns the Space object of spaceName
Example: #{spaceContext.space['FinanceProject']} returns the Space object for the group space called FinanceProject.
#{spacesContext.currentSpace.distributionList}#{spacesContext.space[spaceName].distributionList}</>
Returns:The Space object that the user is currently in, or null if the user is currently in the context of Personal WebCenter.public abstract java.lang.String getCurrentSpaceName()
EL:#{spaceContext.currentSpaceName}
public abstract java.lang.String getCurrentSpaceGUID()
public static SpacesContext getCurrentInstance()
SpacesContext instance for the request that is being processed by the current thread, if any.
EL:#{spaceContext}
SpacesContext instance associated with the current web requestpublic static void releaseCachedContext()
public static void setCurrentInstance(SpacesContext context)
SpacesContext instance for the request that is being processed by the current thread.context - The SpacesContext instance for the current thread, or null if this thread no longer has a SpacesContext instance.
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||