se.kmr.scam.client.http.command
Class SavePreferences
java.lang.Object
se.kmr.scam.client.http.command.SavePreferences
- All Implemented Interfaces:
- Command
- public class SavePreferences
- extends Object
- implements Command
Saves personalized preference values in a PreferenceBean
that is
made available in session context.
The precendence of preference values are:
- values available in request context has higest precedence.
- values available in session context
- values available in application context, theese values are the default
values for all users.
Parameters are initialized through the method init(java.util.Map)
. Arguments are run-time attributes.
Parameters:
Arguments:
PreferenceBean.NAME -> java.lang.String
- Identifies the
PreferenceBean
PreferenceBean.LOCALE -> java.lang.String
- Identifies the value
of preferred locale
PreferenceBean.RESULT_PAGE_LENGTH -> java.lang.String
-
Identifies the value of preferred number of items in a page
PreferenceBean.PROG_SORT_ORDER -> java.lang.String
- Identifies
the value of preferred sort order
Result:
A PreferenceBean
object is available in session context, the attribute name
equals PreferenceBean.NAME
.
- Version:
- $Revision: 1.4 $
- Author:
- Jöran
- Created:
- den 4 september 2002
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SavePreferences
public SavePreferences()
execute
public CommandResponse execute(HttpServletRequest request,
HttpServletResponse response)
throws HttpException
- Description of the Method
- Specified by:
execute
in interface Command
- Parameters:
request
- Description of the Parameterresponse
- Description of the Parameter
- Returns:
- Returns an CommandResponse object.
- Throws:
HttpException
- Description of the Exception
init
public void init(Map args)
- Description of the Method
- Specified by:
init
in interface Command
- Parameters:
args
- Description of the Parameter
Copyright © 2003 SCAM. All Rights Reserved.