org.gcube.contentmanagement.contentmanager.porttypes
Class WriteManagerPT

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.WriteManagerPT

public class WriteManagerPT
extends CollectionManagerPT

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

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

Constructor Summary
WriteManagerPT()
           
 
Method Summary
 java.lang.String add(AnyHolder holder)
          Adds a gDoc document.
 java.lang.String addRS(java.lang.String locator)
          Adds zero or more gDoc documents to the bound collection.
 WriteManager getManager()
           
 VOID update(AnyHolder holder)
          Updates a gDoc document in the bound collection.
 java.lang.String updateRS(java.lang.String locator)
          Updates zero or more gDoc documents in the bound collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteManagerPT

public WriteManagerPT()
Method Detail

getManager

public WriteManager getManager()
                        throws java.lang.Exception
Throws:
java.lang.Exception

add

public java.lang.String add(AnyHolder holder)
                     throws InvalidDocumentFault,
                            GCUBEFault
Adds a gDoc document.

Parameters:
holder - a DOM representation of the document, packaged for transmission.
Returns:
a response that contains the identifier assigned to the document.
Throws:
InvalidDocumentFault - if the document is invalid.
GCUBEFault - if the document is valid but still could not be added.

addRS

public java.lang.String addRS(java.lang.String locator)
                       throws GCUBEFault
Adds zero or more gDoc documents to the bound collection.

Parameters:
locator - a locator to a remote ResultSet of gDoc documents.
Returns:
a locator to a local ResultSet of AddResponses.
Throws:
GCUBEFault - if the locator could not returned.

update

public VOID update(AnyHolder holder)
            throws UnknownDocumentFault,
                   InvalidDocumentFault,
                   GCUBEFault
Updates a gDoc document in the bound collection.

Parameters:
holder - a DOM representation of the updated document, packaged for transmission.
Throws:
UnknownDocumentFault - if the document is unknown.
InvalidDocumentFault - if the document is invalid.
GCUBEFault - if the document is known and valid but still could not be added.

updateRS

public java.lang.String updateRS(java.lang.String locator)
                          throws GCUBEFault
Updates zero or more gDoc documents in the bound collection.

Parameters:
locator - a locator to a remote ResultSet of gDoc documents.
Returns:
a locator to a local ResultSet of UpdateResponses.
Throws:
GCUBEFault - if the locator could not returned.