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

java.lang.Object
  extended byse.kmr.scam.client.http.command.SaveModelInCache
All Implemented Interfaces:
Command

public class SaveModelInCache
extends Object
implements Command

Updates the local, cached, model with values from the request and makes the updated model available in session context scoope. Request parameters starting with "id_" is treated as parameters to be written to the cached model. Parameters are initialized through the method init(java.util.Map). Arguments are run-time attributes.

Parameters:

Arguments:
"map" - Identifies the mapping between property-identities and properties. "id_xxxx" - Identififies the value of a property with identity "id_xxxx"
Result:
ModelBean.NAME - Identifies the object holding the updated model

Version:
$Revision: 1.12 $
Author:
Jöran
Created:
den 21 augusti 2002

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

Constructor Detail

SaveModelInCache

public SaveModelInCache()
Method Detail

init

public void init(Map parml)
Description of the Method

Specified by:
init in interface Command
Parameters:
parml - Description of the Parameter

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


Copyright © 2003 SCAM. All Rights Reserved.