org.gcube.portlets.user.reportgenerator.client
Interface ReportService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
ReportServiceImpl

@RemoteServiceRelativePath(value="ReportServiceImpl")
public interface ReportService
extends com.google.gwt.user.client.rpc.RemoteService

Service interface for server communication

Author:
Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it

Method Summary
 org.gcube.portlets.d4sreporting.common.shared.Table getSampleTimeSeries(org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries sTS)
          return the first ten records of the timeseries having id as param
 SessionInfo getSessionInfo(String currentHost)
          each portlet instance runs in a scope each portlet instance is used by a unique username from within the portal
 String[] getUserTemplateNames()
           
 org.gcube.portlets.d4sreporting.common.shared.Model getVMEReportRef2Associate(String id, VMETypeIdentifier refType)
           
 org.gcube.portlets.d4sreporting.common.shared.Model getWorkflowDocumentFromDocumentLibrary()
           
 org.gcube.portlets.d4sreporting.common.shared.Model importVMEReport(String id, String name, VMETypeIdentifier refType)
           
 org.gcube.portlets.d4sreporting.common.shared.Model importVMETemplate(VMETypeIdentifier refType)
           
 ArrayList<VMEReportBean> listVMEReportRefByType(VMETypeIdentifier refType)
           
 ArrayList<VMEReportBean> listVMEReports()
           
 org.gcube.portlets.d4sreporting.common.shared.Model readImportedModel(String tempPath)
           
 org.gcube.portlets.d4sreporting.common.shared.Model readModel(String templateName, String templateObjectID, boolean isTemplate, boolean isImporting)
           
 org.gcube.portlets.d4sreporting.common.shared.Model readTemplateFromSession()
           
 void renewHTTPSession()
           
 void renewLock()
           
 String save(String filePath, String workspaceFolderId, String ItemName, org.gcube.portlets.widgets.exporter.shared.TypeExporter type, boolean overwrite)
           
 void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave)
          the report model is taken from the session, the id also
 void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave, String folderid, String newname)
          the report model is taken from the session
 void storeTemplateInSession(org.gcube.portlets.d4sreporting.common.shared.Model model)
           
 void updateWorkflowDocument(org.gcube.portlets.d4sreporting.common.shared.Model toSave, boolean update)
           
 

Method Detail

listVMEReports

ArrayList<VMEReportBean> listVMEReports()

listVMEReportRefByType

ArrayList<VMEReportBean> listVMEReportRefByType(VMETypeIdentifier refType)

importVMEReport

org.gcube.portlets.d4sreporting.common.shared.Model importVMEReport(String id,
                                                                    String name,
                                                                    VMETypeIdentifier refType)

getVMEReportRef2Associate

org.gcube.portlets.d4sreporting.common.shared.Model getVMEReportRef2Associate(String id,
                                                                              VMETypeIdentifier refType)

importVMETemplate

org.gcube.portlets.d4sreporting.common.shared.Model importVMETemplate(VMETypeIdentifier refType)

save

String save(String filePath,
            String workspaceFolderId,
            String ItemName,
            org.gcube.portlets.widgets.exporter.shared.TypeExporter type,
            boolean overwrite)
            throws org.gcube.portlets.widgets.exporter.shared.SaveReportFileException,
                   org.gcube.portlets.widgets.exporter.shared.SaveReportFileExistException
Throws:
org.gcube.portlets.widgets.exporter.shared.SaveReportFileException
org.gcube.portlets.widgets.exporter.shared.SaveReportFileExistException

getSampleTimeSeries

org.gcube.portlets.d4sreporting.common.shared.Table getSampleTimeSeries(org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries sTS)
return the first ten records of the timeseries having id as param

Parameters:
sTS - .
Returns:
.

getUserTemplateNames

String[] getUserTemplateNames()
Returns:
.

readModel

org.gcube.portlets.d4sreporting.common.shared.Model readModel(String templateName,
                                                              String templateObjectID,
                                                              boolean isTemplate,
                                                              boolean isImporting)
Parameters:
templateName - .
templateObjectID - .
isTemplate - says if you're opening a template or a report
isImporting - says if your importing or youre loading a template in the UI
Returns:
.

getSessionInfo

SessionInfo getSessionInfo(String currentHost)
each portlet instance runs in a scope each portlet instance is used by a unique username from within the portal

Parameters:
currentHost - .
Returns:
a SessionInfo bean containing the username the scope andis opening a workflow document or not

storeTemplateInSession

void storeTemplateInSession(org.gcube.portlets.d4sreporting.common.shared.Model model)
Parameters:
model - .

readTemplateFromSession

org.gcube.portlets.d4sreporting.common.shared.Model readTemplateFromSession()
Returns:
the model previously stored in the session

saveReport

void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave,
                String folderid,
                String newname)
the report model is taken from the session

Parameters:
folderid - the basket id where to save the report

saveReport

void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave)
the report model is taken from the session, the id also


getWorkflowDocumentFromDocumentLibrary

org.gcube.portlets.d4sreporting.common.shared.Model getWorkflowDocumentFromDocumentLibrary()

updateWorkflowDocument

void updateWorkflowDocument(org.gcube.portlets.d4sreporting.common.shared.Model toSave,
                            boolean update)

renewLock

void renewLock()

readImportedModel

org.gcube.portlets.d4sreporting.common.shared.Model readImportedModel(String tempPath)
Parameters:
tempPath -
Returns:

renewHTTPSession

void renewHTTPSession()


Copyright © 2014. All Rights Reserved.