org.mycore.services.webservices
Class MCRWebService

java.lang.Object
  extended by org.mycore.services.webservices.MCRWebService
All Implemented Interfaces:
MCRWS

public class MCRWebService
extends Object
implements MCRWS

This class contains MyCoRe Webservices

Version:
$Revision: 15101 $ $Date: 2009-04-22 16:14:02 +0200 (Wed, 22 Apr 2009) $
Author:
Harald Richter

Constructor Summary
MCRWebService()
           
 
Method Summary
 Document MCRDoQuery(Document query)
          Search for MyCoRe objects
 Document MCRDoRetrieveClassification(String level, String type, String classID, String categID, String format)
          Retrieves MyCoRe Classification
 Document MCRDoRetrieveLinks(String from, String to, String type)
          Retrieves MyCoRe Links
 Document MCRDoRetrieveObject(String ID)
          Retrieves MyCoRe object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRWebService

public MCRWebService()
Method Detail

MCRDoRetrieveObject

public Document MCRDoRetrieveObject(String ID)
                             throws Exception
Description copied from interface: MCRWS
Retrieves MyCoRe object

Specified by:
MCRDoRetrieveObject in interface MCRWS
Parameters:
ID - The ID of the document to retrieve
Returns:
data of mycore object
Throws:
Exception

MCRDoRetrieveClassification

public Document MCRDoRetrieveClassification(String level,
                                            String type,
                                            String classID,
                                            String categID,
                                            String format)
                                     throws Exception
Description copied from interface: MCRWS
Retrieves MyCoRe Classification

Specified by:
MCRDoRetrieveClassification in interface MCRWS
Parameters:
level - number of levels to retrievwe
type - parents|children
classID - The ID of the classification
categID - categroryID where retrieval with level starts
format - of retrieved classification, valid values are: editor['['formatAlias']']|metadata
Returns:
data of mycore classification
Throws:
Exception

MCRDoQuery

public Document MCRDoQuery(Document query)
                    throws Exception
Description copied from interface: MCRWS
Search for MyCoRe objects

Specified by:
MCRDoQuery in interface MCRWS
Parameters:
query - as mycore xml query
Returns:
resultset of search
Throws:
Exception

MCRDoRetrieveLinks

public Document MCRDoRetrieveLinks(String from,
                                   String to,
                                   String type)
                            throws Exception
Description copied from interface: MCRWS
Retrieves MyCoRe Links

Specified by:
MCRDoRetrieveLinks in interface MCRWS
Parameters:
from - the source ID of the link
to - the target ID of the link
type - the link type (if it is null, refernce is default)
Returns:
mcr:result JDOM object
Throws:
Exception