|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.rf.util.context.AbstractContextFactory
com.sap.netweaver.bc.rf.util.context.AbstractIndependentThreadContextFactory
com.sap.netweaver.bc.rf.common.context.AccessContextFactory
public class AccessContextFactory
Context factory providing means to get and set the access context.
| Field Summary |
|---|
| Fields inherited from class com.sap.netweaver.bc.rf.util.context.AbstractIndependentThreadContextFactory |
|---|
threadLocal |
| Constructor Summary | |
|---|---|
AccessContextFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sap.netweaver.bc.rf.util.context.AbstractIndependentThreadContextFactory |
|---|
getContextStack, getTypeUnsafeContext, getTypeUnsafeContextOrNullIfUnavailable, isAvailable, popTypeUnsafeContext, pushTypeUnsafeContext, removeTypeUnsafeContext, setContextStack, setTypeUnsafeContext, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessContextFactory()
| Method Detail |
|---|
public 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
|
|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||