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

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

public class CreateAnnotation
extends Object
implements Command

Creates a new Annotation (with default ACL)
Parameters:

Arguments:
ModelBean.NAME -> se.kmr.scam.client.http.helper.ModelBean - Component to annotate "body" -> java.lang.String - Message
Result:
"uri" -> java.lang.String - Idenitifies the new Annotation.
ModelBean.NAME -> se.kmr.scam.client.http.helper.ModelBean - Annotation Model

Version:
$Revision: 1.8 $
Author:
jand
Created:
den 24 april 2003

Field Summary
static String GUEST_ROLE
           
 
Constructor Summary
CreateAnnotation()
           
 
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
 

Field Detail

GUEST_ROLE

public static final String GUEST_ROLE
Constructor Detail

CreateAnnotation

public CreateAnnotation()
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.