org.gcube.contentmanagement.contentmanager.porttypes
Class ReadManagerPT

java.lang.Object
  extended by GCUBEPortType
      extended by org.gcube.contentmanagement.contentmanager.porttypes.CMSPortType
          extended by org.gcube.contentmanagement.contentmanager.porttypes.CollectionManagerPT
              extended by org.gcube.contentmanagement.contentmanager.porttypes.ReadManagerPT

public class ReadManagerPT
extends CollectionManagerPT

Extends CollectionManagerPT for the read-only service port-type.

Author:
Lucio Lelii (CNR-ISTI), Fabio Simeoni (University of Strathclyde)

Constructor Summary
ReadManagerPT()
           
 
Method Summary
 java.lang.String get(GetParams params)
          Returns all the gDoc documents, requesting the application of a filter and a projection over each of them.
 AnyHolder getByID(GetByIDParams params)
          Returns a gDoc document from its identifier, requesting the preliminary application of a filter and a projection over it.
 java.lang.String getByIDs(GetByIDsParams params)
          Returns zero or more gDoc documents from their identifiers, requesting the preliminary application of a filter and a projection over each of them.
 ReadManager getManager()
           
 AnyHolder getNode(Path path)
          Returns a gDoc document node from the path that connects it to the root.
 java.lang.String getNodes(java.net.URI paths)
          Returns the document nodes identified by corresponding Paths into documents of the bound collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadManagerPT

public ReadManagerPT()
Method Detail

getManager

public ReadManager getManager()
                       throws org.globus.wsrf.ResourceException
Throws:
org.globus.wsrf.ResourceException

getByID

public AnyHolder getByID(GetByIDParams params)
                  throws UnknownDocumentFault,
                         GCUBEFault
Returns a gDoc document from its identifier, requesting the preliminary application of a filter and a projection over it.

Parameters:
params - the request parameters.
Returns:
the document.
Throws:
UnknownDocumentFault - if the document is unknown.
GCUBEFault - if the document could not be returned.

getByIDs

public java.lang.String getByIDs(GetByIDsParams params)
                          throws GCUBEFault
Returns zero or more gDoc documents from their identifiers, requesting the preliminary application of a filter and a projection over each of them.

Parameters:
params - the request parameters.
Returns:
a locator to a remote resultset of DOM representation of the documents.
Throws:
GCUBEFault - if the locator could not be returned.

get

public java.lang.String get(GetParams params)
                     throws GCUBEFault
Returns all the gDoc documents, requesting the application of a filter and a projection over each of them.

Parameters:
params - the request parameters.
Returns:
a locator to a remote resultset of DOM representation of the documents.
Throws:
GCUBEFault - if the locator could not be returned.

getNode

public AnyHolder getNode(Path path)
                  throws UnknownPathFault,
                         GCUBEFault
Returns a gDoc document node from the path that connects it to the root.

Parameters:
path - the request parameters.
Returns:
the document node.
Throws:
UnknownPathFault - if the path does not lead to a document node.
GCUBEFault - if the document node could not be returned.

getNodes

public java.lang.String getNodes(java.net.URI paths)
                          throws GCUBEFault
Returns the document nodes identified by corresponding Paths into documents of the bound collection.

Parameters:
a - locator to a ResultSet of paths.
Returns:
a locator a ResultSet of document nodes.
Throws:
GCUBEFault - if the ResultSet of document nodes could not be constructed.