uk.org.ogsadai.activity.xmldb.commands
Class ListCollectionsCommand

java.lang.Object
  |
  +--uk.org.ogsadai.activity.xmldb.commands.ListCollectionsCommand
All Implemented Interfaces:
Command

public class ListCollectionsCommand
extends java.lang.Object
implements Command

A Command to list the sub-collections contained in a collection. Note that this is not recursive so will not list any further sub-collections within the sub-collections.

Author:
The OGSA-DAI Project Team

Constructor Summary
ListCollectionsCommand()
           
 
Method Summary
 void execute(CommandContext context)
          Executes this command using the specified context.
 void initialise(org.w3c.dom.Element element)
          Initialises this command by parsing the specified Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListCollectionsCommand

public ListCollectionsCommand()
Method Detail

initialise

public void initialise(org.w3c.dom.Element element)
                throws CommonUserException
Description copied from interface: Command
Initialises this command by parsing the specified Element. The details retrieved may determine the behavior of the execute method.

Specified by:
initialise in interface Command
Parameters:
element - The Element that corresponds to this command.
Throws:
CommonUserException - If there is a poblem parsing element.

execute

public void execute(CommandContext context)
             throws CommonSystemException,
                    CommonUserException
Description copied from interface: Command
Executes this command using the specified context. Any output that is generated is written to the default output contained in the context.

Specified by:
execute in interface Command
Parameters:
context - An CommandContext object from which the current collection, the default output and any inputs can be retrieved.
Throws:
CommonUserException - If there is a user problem.
CommonSystemException - If there is a system problem executing the command.