public class AccessContextFactory extends AbstractIndependentThreadContextFactory
threadLocal| Constructor and Description |
|---|
AccessContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
IAccessContext |
getContext()
Get actual context from stack of contexts.
|
IAccessContext |
getContextOrNullIfUnavailable()
Get actual context from stack of contexts.
|
static AccessContextFactory |
getInstance()
Get singleton instance of this class.
|
IAccessContext |
popContext()
Get and remove actual context from the stack of contexts.
|
void |
pushContext(IAccessContext context)
Add new context to the top of the stack of contexts.
|
void |
removeContext()
Remove actual context including all other stacked contexts completely.
|
void |
setContext(IAccessContext context)
Replace actual context with new one in stack of contexts.
|
getContextStack, getTypeUnsafeContext, getTypeUnsafeContextOrNullIfUnavailable, isAvailable, popTypeUnsafeContext, pushTypeUnsafeContext, removeTypeUnsafeContext, setContextStack, setTypeUnsafeContext, sizepublic static AccessContextFactory getInstance()
public IAccessContext getContext() throws ContextUnavailableException
ContextUnavailableException - when no (more) context is available
on the context stackpublic IAccessContext getContextOrNullIfUnavailable()
public void setContext(IAccessContext context)
context - new actual context replacing the old one on the stackpublic void removeContext()
public IAccessContext popContext() throws ContextUnavailableException
ContextUnavailableException - when no (more) context is available
on the context stackpublic void pushContext(IAccessContext context)
context - new actual context| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice