public interface IPortalComponentSession
IPortalComponentRequest is only valid while procession of a request
in a service call to an implementation of IPortalComponent. Do not
keep a reference to an implementation of IPortalComponentSession between requests.| Modifier and Type | Field and Description |
|---|---|
static short |
SCOPE_COMPONENT
This defines the attribute scope to be on the Portal Component.
|
static short |
SCOPE_CONTEXT
This defines the attribute scope to be on the Component Context.
|
static short |
SCOPE_UNIQUE
This defines the attribute scope to be on the Portal Object Model node path plus
the root context name.
|
| Modifier and Type | Method and Description |
|---|---|
HttpSession |
getHttpSession()
get a reference to the main servlets session.
|
Object |
getValue(String name)
retrieve an object from this session.
|
Object |
getValue(String name,
short scope)
retrieve an object from this session
|
void |
putValue(String name,
Object value)
attach an object to this session.
|
void |
putValue(String name,
Object value,
short scope)
attach an object to this session
|
void |
removeValue(String name)
remove an object from this session
|
void |
removeValue(String name,
short scope)
remove an object from this session.
|
static final short SCOPE_UNIQUE
static final short SCOPE_CONTEXT
static final short SCOPE_COMPONENT
HttpSession getHttpSession()
Note: This method should be used only if absolutely necessary to find out about the servlets session
void putValue(String name, Object value)
putValue(name, value, SCOPE_UNIQUE).name - An identifier of the objectvalue - An object to be heldvoid putValue(String name, Object value, short scope)
name - An identifier of the objectvalue - An object to be heldscope - The scope of the name, as given by the constants SCOPE_UNIQUE, SCOPE_CONTEXT, and SCOPE_COMPONENT.Object getValue(String name)
getValue(name,SCOPE_UNIQUE).name - An identifier of the objectnull if not present.Object getValue(String name, short scope)
name - An identifier of the objectscope - The scope of the name, as given by the constants SCOPE_UNIQUE, SCOPE_CONTEXT, and SCOPE_COMPONENT.null if not present.void removeValue(String name)
name - An identifier of the objectvoid removeValue(String name, short scope)
getValue(name,SCOPE_UNIQUE).scope - The scope of the name, as given by the constants SCOPE_UNIQUE, SCOPE_CONTEXT, and SCOPE_COMPONENT.name - An identifier of the object| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice