|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Information that persists between requests is stored in the EbiSession object, which is available from the context. The session includes an "EbiWhiteboard" that holds values that a component might need to keep available. You give each whiteboard value a key, which you use to retrieve the value.
Method Summary | |
EbiWhiteboardEraser |
addEraser(String eraserName)
Adds the named eraser to the whiteboard. |
void |
clear()
Clears the contents of the whiteboard. |
void |
dump(com.sssw.fw.api.Writer writer)
Dumps the contents of the whiteboard to the specified writer. |
Enumeration |
getAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this whiteboard. |
EbiWhiteboardEraser |
getEraser(String eraserName)
Returns an instance of an com.sssw.fw.api.EbiWhiteboardEraser
object whose name is specified in the parameter. |
Enumeration |
getScopedAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this whiteboard at the narrowest session scope. |
Object |
getScopedValue(String key)
Returns the object bound with the specified name in this session at the privately scoped level |
ThreadGroup |
getThreadGroup()
Returns a ThreadGroup object. |
Object |
getValue(String key)
Returns the object bound with the specified name in this session at the privately scoped level |
String[] |
getValueNames()
Deprecated. |
boolean |
hasEraser(String eraserName)
Returns a boolean indication as to the existence of the named eraser on the current whiteboard. |
boolean |
hasScopedValue(String key)
Checks to see if the specified key is found on the whiteboard within the scoped session. |
boolean |
hasValue(String key)
Checks to see if the specified key is found on the whiteboard |
void |
log()
Dumps the contents of the whiteboard |
void |
removeAllErasers()
Clears all erasers from the current whiteboard. |
void |
removeAllValues()
Clears the contents of the whiteboard. |
void |
removeEraser(String eraserName)
Removes the named eraser from the whiteboard. |
void |
removeScopedValue(String key)
Removes the object bound with the specified name from this whiteboard within the narrowest scope. |
void |
removeValue(String key)
Removes the object bound with the specified name from this whiteboard. |
void |
setEraserLife(String eraserName,
int life)
Sets a timer for the named eraser. |
void |
setEraserMaxCounter(String eraserName,
int counter)
Set a counter for the named eraser. |
void |
setScopedValue(String key,
Object value)
Binds an object to the whiteboard at the narrowest scoped level with the given key as a name |
void |
setThreadGroup(ThreadGroup threadOwner)
Adds the passed ThreadGroup to the current whiteboard. |
void |
setValue(String key,
Object value)
Binds an object to the whiteboard with the given key as a name |
String |
toString()
Returns a String representation of the whiteboard |
Method Detail |
public void setValue(String key, Object value)
key
- string specifying the name of the objectvalue
- the object to be bound to the whiteboardpublic void setScopedValue(String key, Object value)
If the session does not have a privately scoped level then no object is bound. an example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
key
- string specifying the name of the objectvalue
- public Object getValue(String key)
If the session does not have a privately scoped level then null is returned. an example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
key
- string specifying the name of the objectpublic Object getScopedValue(String key)
If the session does not have a privately scoped level then null is returned. an example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
key
- string specifying the name of the objectpublic void removeValue(String key)
key
- name of the object to remove from this whiteboard.public void removeScopedValue(String key)
An example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
key
- name of the object to remove from this whiteboard.public boolean hasValue(String key)
public boolean hasScopedValue(String key)
If the session does not have a privately scoped level then null is returned. an example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
public String[] getValueNames()
EbiWhiteboard.getAttributeNames()
public Enumeration getAttributeNames()
public Enumeration getScopedAttributeNames()
If the session does not have a privately scoped level null is returned. an example of a privately scoped level is the javax.portlet.PortletSession.PORTLET_SCOPE.
public void clear()
public EbiWhiteboardEraser addEraser(String eraserName)
Name
- to be given to the eraser.public EbiWhiteboardEraser getEraser(String eraserName)
com.sssw.fw.api.EbiWhiteboardEraser
object whose name is specified in the parameter.The
- name of the eraser to be returned.com.sssw.fw.api.EbiWhiteboardEraser
object.public boolean hasEraser(String eraserName)
The
- name of the eraser to find.public void removeEraser(String eraserName)
The
- name of the eraser to remove.public void removeAllErasers()
public void setEraserLife(String eraserName, int life)
The
- name of the eraser.The
- timer value in milliseconds.public void setEraserMaxCounter(String eraserName, int counter)
The
- name of the eraser.The
- number of access before eraser is activated.public ThreadGroup getThreadGroup()
public void setThreadGroup(ThreadGroup threadOwner)
A
- ThreadGoup object.public void removeAllValues()
public void dump(com.sssw.fw.api.Writer writer)
A
- writer objectpublic void log()
public String toString()
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |