se.kmr.scam.client.http.command
Class SavePreferences

java.lang.Object
  extended byse.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:

  1. values available in request context has higest precedence.
  2. values available in session context
  3. 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

Constructor Summary
SavePreferences()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Description of the Method
 void init(Map args)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavePreferences

public SavePreferences()
Method Detail

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 Parameter
response - 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.