|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IPortalComponentSession is the portal component's view on the servlet
session. All objects stored in the Portal Component Session will be stored
exclusively for the triple consisting of the Portal Component, the User id and
the assigned scope. The available scopes are defined below.
The lifetime of the shared session that is maintained by the portal
environment should be determined by the portal setup only!
Note: The Portal Component Session as retrieved from an implementation
of 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.
| Field Summary | |
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. |
| Method Summary | |
javax.servlet.http.HttpSession |
getHttpSession()
get a reference to the main servlets session. |
java.lang.Object |
getValue(java.lang.String name)
retrieve an object from this session. |
java.lang.Object |
getValue(java.lang.String name,
short scope)
retrieve an object from this session |
void |
putValue(java.lang.String name,
java.lang.Object value)
attach an object to this session. |
void |
putValue(java.lang.String name,
java.lang.Object value,
short scope)
attach an object to this session |
void |
removeValue(java.lang.String name)
remove an object from this session |
void |
removeValue(java.lang.String name,
short scope)
remove an object from this session. |
| Field Detail |
public static final short SCOPE_UNIQUE
public static final short SCOPE_CONTEXT
public static final short SCOPE_COMPONENT
| Method Detail |
public javax.servlet.http.HttpSession getHttpSession()
Note: This method should be used only if absolutely necessary to find out about the servlets session
public void putValue(java.lang.String name,
java.lang.Object value)
putValue(name, value, SCOPE_UNIQUE).name - An identifier of the objectvalue - An object to be held
public void putValue(java.lang.String name,
java.lang.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.public java.lang.Object getValue(java.lang.String name)
getValue(name,SCOPE_UNIQUE).name - An identifier of the objectnull if not present.
public java.lang.Object getValue(java.lang.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.public void removeValue(java.lang.String name)
name - An identifier of the object
public void removeValue(java.lang.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||