org.gcube.contentmanagement.contentmanager.porttypes
Class FactoryPT

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

public class FactoryPT
extends CMSPortType

Extends CMSPortType for the factory port-type.

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

Constructor Summary
FactoryPT()
           
 
Method Summary
 CollectionReferences create(CMSCreateParameters parameters)
          Creates WS-Resources based on CollectionManagers based on input parameters.
 java.lang.String createAsync(CMSCreateParameters parameters)
          It returns immediately with the reference to a ResultSet in which clients may find the outcome of an invocation of create(CMSCreateParameters) as soon as this becomes available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryPT

public FactoryPT()
Method Detail

create

public CollectionReferences create(CMSCreateParameters parameters)
                            throws GCUBEFault
Creates WS-Resources based on CollectionManagers based on input parameters.

Parameters:
parameters - the parameters.
Returns:
endpoint references to the WS-Resources, indexed by the name of the bound port-type.
Throws:
GCUBEFault - if the WS-Resource(s) could not be created.

createAsync

public java.lang.String createAsync(CMSCreateParameters parameters)
                             throws GCUBEFault
It returns immediately with the reference to a ResultSet in which clients may find the outcome of an invocation of create(CMSCreateParameters) as soon as this becomes available.

The outcome is represented by an CMSCreateAsync instance and it constitutes the only result of the ResultSet.

Clients that block awaiting for the outcome are guaranteed not to timeout.

Parameters:
parameters - the input parameters to create(CMSCreateParameters).
Returns:
the endpoint of the result set.
Throws:
GCUBEFault - if the endpoint could not be produced.
See Also:
#create(CMSCreateParameters)}