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

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

public class CreateItem
extends Object
implements Command

Creates a new IMS Item with or without IMSCP.content.
Parameters:

Arguments:
ModelBean.NAME -> se.kmr.scam.client.http.helper.ModelBean - Parent Model
Optional "content" -> java.lang.String - IMSCP.content. Value "void" will cause an URI-generation
Optional "type" -> java.lang.String - RDF.type
Optional "inModel" -> java.lang.String - SCAM.inModel

Result:
"uri" -> java.lang.String - Idenitifies the new Item.
ModelBean.NAME -> se.kmr.scam.client.http.helper.ModelBean - Item Model (including ev. content)

Version:
$Revision: 1.24 $
Author:
jand
Created:
den 23 augusti 2002

Constructor Summary
CreateItem()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Execute this command
 void init(Map args)
          Initialize this object with parameters from a Map object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateItem

public CreateItem()
Method Detail

execute

public CommandResponse execute(HttpServletRequest request,
                               HttpServletResponse response)
                        throws HttpException
Execute this command

Specified by:
execute in interface Command
Parameters:
request - Current request object
response - Current response object
Returns:
null
Throws:
HttpException - Thrown in case of exception executing this command

init

public void init(Map args)
Initialize this object with parameters from a Map object

Specified by:
init in interface Command
Parameters:
args - Use these arguemnts as parameters.


Copyright © 2003 SCAM. All Rights Reserved.