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

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

public class GetURIByProperty
extends Object
implements Command

Get the parent URI of an IMS Item. If none is found, the uri passed in will be returned.
Parameters:
"single" -> java.lang.String - if "true" -> Only one URI.

Arguments:
Optional "property" -> java.lang.String - Property (default is DC.identifier)
"value" -> java.lang.String - Value of that property

Result:
"uri" -> java.lang.String | java.util.Collection - Item.

Version:
1.0
Author:
jand

Constructor Summary
GetURIByProperty()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Execute the 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

GetURIByProperty

public GetURIByProperty()
Method Detail

execute

public CommandResponse execute(HttpServletRequest request,
                               HttpServletResponse response)
                        throws HttpException
Description copied from interface: Command
Execute the command.

Specified by:
execute in interface Command
Parameters:
request - holds information from the client.
response - holds response information sent to the client.
Returns:
Returns an CommandResponse object.
Throws:
HttpException - thrown in case of an exception during execution of the 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.