org.activemath.webapp.ws.delegation.siette
Class SietteAsignaturaProducer

java.lang.Object
  extended by org.activemath.webapp.ws.delegation.siette.SietteAsignaturaProducer
All Implemented Interfaces:
Runnable

public class SietteAsignaturaProducer
extends Object
implements Runnable

A simple command-line process to digest a grouping and output an XML document following Siettes schema.

Version:

Field Summary
protected static Logger thisLogCat
           
 
Constructor Summary
SietteAsignaturaProducer()
          Constructor needed for web service
SietteAsignaturaProducer(MBaseRef mbaseRef, MBaseID groupingID, String subjname)
          Constructor
 
Method Summary
 Vector execute(String param)
          Needed to be called as a service
 Vector execute(Vector params)
          Needed to be called as a service
 String export(String groupingId)
          Main method, to be called as a service
static void main(String[] args)
          Main method, to be called as command-line
 void run()
          Needed to implement interface Runnable Does the main task: inits the subject on SIETTE, and searchs recursively
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisLogCat

protected static Logger thisLogCat
Constructor Detail

SietteAsignaturaProducer

public SietteAsignaturaProducer(MBaseRef mbaseRef,
                                MBaseID groupingID,
                                String subjname)
                         throws MBaseException
Constructor

Parameters:
mbaseRef - Reference to the MBase
groupingID - An MBaseID identifiying a grouping
subjname - Name of subject to be created on SIETTE
Throws:
MBaseException

SietteAsignaturaProducer

public SietteAsignaturaProducer()
Constructor needed for web service

Method Detail

run

public void run()
Needed to implement interface Runnable Does the main task: inits the subject on SIETTE, and searchs recursively

Specified by:
run in interface Runnable

main

public static void main(String[] args)
                 throws Exception
Main method, to be called as command-line

Throws:
Exception

export

public String export(String groupingId)
              throws Exception
Main method, to be called as a service

Parameters:
groupingId - An ID of an OMGROUP to export as a SIETTE subject
Returns:
A XML representing a SIETTE subject
Throws:
Exception

execute

public Vector execute(String param)
Needed to be called as a service

Parameters:
param - The param to the service
Returns:
A vector with the result

execute

public Vector execute(Vector params)
Needed to be called as a service

Parameters:
params - The param to the service
Returns:
A vector with the result