|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestStorageWrite
This allows write access to values which are stored in the current request thread,
these values are inaccessible outside of a request and will be destroyed
when the thread ends
This also "magically" exposes all the values in the request (attributes and params)
as if they were stored in the map as well, if there are conflicts then locally stored data always wins
over data from the request
Standard reserved keys have values that are always available:
Locale
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage |
|---|
RequestStorage.RequestOrigin, RequestStorage.ReservedKeys |
| Method Summary | |
|---|---|
void |
reset()
Clear all values in the request storage (does not wipe the values form the request itself) |
void |
setRequestValue(String key,
Object value)
Allows user to set the value of a key directly, including reserved keys |
void |
setRequestValues(Map<String,Object> params)
Place all these params into the request storage |
void |
setStoredValue(String key,
Object value)
Store a value in the request storage with an associated key |
| Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage |
|---|
getStorageMapCopy, getStorageMapCopy, getStoredValue, getStoredValueAsType |
| Method Detail |
|---|
void setStoredValue(String key,
Object value)
key - a key for a stored valuevalue - an object to store
IllegalArgumentException - if the key OR value are null,
also if an attempt is made to change a reserved value (see RequestStorageWrite)void setRequestValues(Map<String,Object> params)
params - map of string -> value params
IllegalArgumentException - if the key OR value are null,
also if an attempt is made to change a reserved value (see RequestStorageWrite)
void setRequestValue(String key,
Object value)
key - the name of the valuevalue - the value to store
IllegalArgumentException - if the key OR value are null,
also if an attempt is made to change a reserved value (see RequestStorageWrite)void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||