public interface IContextProvider extends IComponentProvider
Modifier and Type | Interface and Description |
---|---|
static class |
IContextProvider.SingletonTraits |
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
IContext |
acquireAdminContext()
Creates a new sysadmin context
|
IContext |
acquireAdminContext(boolean createUserFolders)
Creates a new sysadmin context
|
IContext |
acquireContext(boolean shouldCreate)
Factory to acquire a context from the local thread
|
IContext |
acquireContext(HttpServletRequest request)
Factory for obtaining a context on the httpServletRequest
|
IContext |
acquireContext(HttpSession httpSession)
Factory for obtaining a context on the httpSession
|
IContext |
acquireContext(Map<?,?> properties)
Factory for obtaining a context from the properties
|
IContext |
acquireContext(String userID)
Creates a new context for a given userID
|
IContext |
acquireContext(String userID,
boolean createUserFolders)
Creates a new context for a given userID
|
IContext |
acquireContext(String userID,
boolean createUserFolders,
boolean initialize)
Creates a new context for a given userID
|
IContext |
acquireContextByAlias(String userAlias,
boolean createUserFolders,
boolean initialize)
Creates a new context for a given user alias
|
IContext |
acquireContextByDN(String userDN,
boolean createUserFolders,
boolean initialize)
Creates a new context for a given user DN
|
ITraits |
createTraits(int traits)
Factory to create an ITraits instance
|
List<IContext> |
getContexts()
Get all the active contexts
|
IContext |
getCurrentContextForThread()
Return the context for the current thread.
|
ITraits |
getSingletonTraits(IContextProvider.SingletonTraits type)
Get one of the shared singleton traits objects
These are shared ITraits that anyone can use but not modify.
|
IContext[] |
lookupContext(IThingID userID)
Find all the current contexts for a given user
|
void |
postInit()
Post init
|
void |
releaseContext(IContext context)
Releases previously acquired context and removes it from list of context.
|
void |
setCurrentContext(IContext context)
Set current context for the thread.
|
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
IContext acquireContext(HttpServletRequest request) throws PortalException
request
- PortalException
IContext acquireContext(HttpSession httpSession) throws PortalException
httpSession
- PortalException
IContext acquireContext(Map<?,?> properties) throws PortalException
properties
- PortalException
IContext acquireContext(boolean shouldCreate) throws PortalException
shouldCreate
- whether it should be createdPortalException
IContext acquireAdminContext() throws PortalException
PortalException
IContext acquireAdminContext(boolean createUserFolders) throws PortalException
createUserFolders
- true to create user folders if they don't already existPortalException
IContext acquireContextByDN(String userDN, boolean createUserFolders, boolean initialize) throws PortalException
userDN
- PortalException
IContext acquireContextByAlias(String userAlias, boolean createUserFolders, boolean initialize) throws PortalException
userAlias
- PortalException
IContext acquireContext(String userID) throws PortalException
userID
- PortalException
IContext acquireContext(String userID, boolean createUserFolders) throws PortalException
userID
- PortalException
IContext acquireContext(String userID, boolean createUserFolders, boolean initialize) throws PortalException
userID
- PortalException
void releaseContext(IContext context)
context
- void setCurrentContext(IContext context) throws PortalException
context
- PortalException
IContext getCurrentContextForThread() throws PortalException
PortalException
IContext[] lookupContext(IThingID userID) throws PortalException
userID
- PortalException
List<IContext> getContexts() throws PortalException
PortalException
void postInit()
ITraits createTraits(int traits) throws PortalException
traits
- the bitset of traits to createPortalException
ITraits getSingletonTraits(IContextProvider.SingletonTraits type)
type
- the type of traits to retrieve