public abstract class SpacesContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
spaceName |
| Constructor and Description |
|---|
SpacesContext(java.lang.String spaceName) |
| Modifier and Type | Method and Description |
|---|---|
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 java.util.Map<java.lang.String,java.lang.Boolean> |
getServiceAvailable()
Gets a map for use in EL expression for determining whether a service is
available.
|
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. |
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}>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 abstract java.util.Map<java.lang.String,java.lang.Boolean> getServiceAvailable()
EL:#{spaceContext.serviceAvailable[serviceId]}
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.