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

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

public class CurationFactory
extends Object

Author:
lucio

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

Constructor Detail

CurationFactory

public CurationFactory()
Method Detail

startCuration

public org.gcube.contentmanagement.timeseriesservice.stubs.StartResponse startCuration(org.gcube.contentmanagement.timeseriesservice.stubs.StartRequest request)
                                                                                throws org.gcube.common.core.faults.GCUBEFault
Parameters:
StartRequest - request - the parameters to create the curation
Returns:
StartResponse the Epr and the id of the new curation
Throws:
org.gcube.common.core.faults.GCUBEFault - -

open

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

getFieldValues

public org.gcube.contentmanagement.timeseriesservice.stubs.types.StringArray getFieldValues(org.gcube.contentmanagement.timeseriesservice.stubs.GetFieldValuesRequest request)
                                                                                     throws org.gcube.common.core.faults.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:
org.gcube.common.core.faults.GCUBEFault

getCuratingItems

public org.gcube.contentmanagement.timeseriesservice.stubs.CurationItemsArray getCuratingItems(String user)
                                                                                        throws org.gcube.common.core.faults.GCUBEFault
return all the items

Parameters:
a - string representing the user name
Returns:
A list of curation Items
Throws:
org.gcube.common.core.faults.GCUBEFault - -

getItem

public org.gcube.contentmanagement.timeseriesservice.stubs.CurationItem getItem(org.gcube.contentmanagement.timeseriesservice.stubs.GetItemRequest req)
                                                                         throws org.gcube.common.core.faults.GCUBEFault
return an item stored as curation with the id in the request

Parameters:
request - GetItemRequest
Returns:
a Curation Item
Throws:
org.gcube.common.core.faults.GCUBEFault - -

removeCuration

public org.gcube.common.core.types.VOID removeCuration(String id)
                                                throws org.gcube.common.core.faults.GCUBEFault
remove a curation resource

Parameters:
id -
Returns:
Throws:
org.gcube.common.core.faults.GCUBEFault - -

saveRule

public String saveRule(org.gcube.contentmanagement.timeseriesservice.stubs.SaveRuleRequest request)
                throws org.gcube.common.core.faults.GCUBEFault
Throws:
org.gcube.common.core.faults.GCUBEFault

removeRule

public boolean removeRule(String id)
                   throws org.gcube.common.core.faults.GCUBEFault
Throws:
org.gcube.common.core.faults.GCUBEFault

getRules

public org.gcube.contentmanagement.timeseriesservice.stubs.types.RulesArray getRules(org.gcube.common.core.types.VOID request)
                                                                              throws org.gcube.common.core.faults.GCUBEFault
Throws:
org.gcube.common.core.faults.GCUBEFault


Copyright © 2012. All Rights Reserved.