org.gcube.contentmanagement.timeseriesservice.impl.curation
Class CurationFactory

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.curation.CurationFactory

public class CurationFactory
extends java.lang.Object

Author:
lucio

Constructor Summary
CurationFactory()
           
 
Method Summary
 CurationItemsArray getCuratingItems(java.lang.String user)
          return all the items
 StringArray getFieldValues(GetFieldValuesRequest request)
          return the possible values for that field in that dimension
 CurationItem getItem(GetItemRequest req)
          return an item stored as curation with the id in the request
 RulesArray getRules(VOID request)
           
 org.apache.axis.message.addressing.EndpointReferenceType open(java.lang.String curationId)
           
 VOID removeCuration(java.lang.String id)
          remove a curation resource
 boolean removeRule(java.lang.String id)
           
 java.lang.String saveRule(SaveRuleRequest request)
           
 StartResponse startCuration(StartRequest request)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurationFactory

public CurationFactory()
Method Detail

startCuration

public StartResponse startCuration(StartRequest request)
                            throws GCUBEFault
Parameters:
StartRequest - request - the parameters to create the curation
Returns:
StartResponse the Epr and the id of the new curation
Throws:
GCUBEFault - -

open

public org.apache.axis.message.addressing.EndpointReferenceType open(java.lang.String curationId)
                                                              throws GCUBEFault
Parameters:
curationId - - the id of the curation
Returns:
the Epr of the open curation
Throws:
GCUBEFault - -

getFieldValues

public StringArray getFieldValues(GetFieldValuesRequest request)
                           throws GCUBEFault
return the possible values for that field in that dimension

Parameters:
the - request is the dimension id and the fieldName
Returns:
all possible value for the choices dimension and the choices field name
Throws:
GCUBEFault

getCuratingItems

public CurationItemsArray getCuratingItems(java.lang.String user)
                                    throws GCUBEFault
return all the items

Parameters:
a - string representing the user name
Returns:
A list of curation Items
Throws:
GCUBEFault - -

getItem

public CurationItem getItem(GetItemRequest req)
                     throws GCUBEFault
return an item stored as curation with the id in the request

Parameters:
request - GetItemRequest
Returns:
a Curation Item
Throws:
GCUBEFault - -

removeCuration

public VOID removeCuration(java.lang.String id)
                    throws GCUBEFault
remove a curation resource

Parameters:
id -
Returns:
Throws:
GCUBEFault - -

saveRule

public java.lang.String saveRule(SaveRuleRequest request)
                          throws GCUBEFault
Throws:
GCUBEFault

removeRule

public boolean removeRule(java.lang.String id)
                   throws GCUBEFault
Throws:
GCUBEFault

getRules

public RulesArray getRules(VOID request)
                    throws GCUBEFault
Throws:
GCUBEFault