public class ReportServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ReportService
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_REPORT_ID_ATTRIBUTE |
static String |
CURRENT_REPORT_INSTANCE |
static String |
PREVIOUS_REPORT_INSTANCE |
static String |
RSG_WS_ADDRESS |
Constructor and Description |
---|
ReportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
VmeExportResponse |
deleteReportFromRSG(VMETypeIdentifier refType,
String idToDelete) |
void |
delTemplateDir(File dir)
recurdively delete the templates folder of the dir dir
|
VmeExportResponse |
exportReportToRSG(VMETypeIdentifier refType,
org.gcube.portlets.d4sreporting.common.shared.Model model) |
String |
getReportItemIDFromSession() |
String |
getRootFolder()
reads from the file system and returns the user workspace as TreeNode object
|
org.gcube.portlets.d4sreporting.common.shared.Table |
getSampleTimeSeries(org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries sTS)
return a sample of the given TS to the client
|
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 |
getUsername() |
String[] |
getUserTemplateNames()
Retrieve the user saved template names
|
org.gcube.portlets.d4sreporting.common.shared.Model |
getVMEReportRef2Associate(String id,
VMETypeIdentifier refType) |
String |
getVreName() |
org.gcube.portlets.d4sreporting.common.shared.Model |
getWorkflowDocumentFromDocumentLibrary() |
protected org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspaceArea() |
org.gcube.portlets.d4sreporting.common.shared.Model |
importVMEReport(String id,
String name,
VMETypeIdentifier refType) |
org.gcube.portlets.d4sreporting.common.shared.Model |
importVMETemplate(VMETypeIdentifier refType) |
void |
init()
Called then servlet is intialized
|
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)
used to save the report in the same folder
|
void |
saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave,
String folderid,
String newname)
the report model is taken from the session
|
void |
storeReportItemIDInSession(String reportItemid) |
void |
storeTemplateInSession(org.gcube.portlets.d4sreporting.common.shared.Model model) |
void |
updateWorkflowDocument(org.gcube.portlets.d4sreporting.common.shared.Model toSave,
boolean update)
update the Workflow Document in session
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String CURRENT_REPORT_ID_ATTRIBUTE
public static final String CURRENT_REPORT_INSTANCE
public static final String PREVIOUS_REPORT_INSTANCE
public static final String RSG_WS_ADDRESS
public void init()
init
in class javax.servlet.GenericServlet
public String[] getUserTemplateNames()
getUserTemplateNames
in interface ReportService
public org.gcube.portlets.d4sreporting.common.shared.Model readImportedModel(String tempPath)
readImportedModel
in interface ReportService
public org.gcube.portlets.d4sreporting.common.shared.Model readModel(String templateName, String templateObjectID, boolean isTemplate, boolean isImporting)
readModel
in interface ReportService
templateName
- : the template to read from disktemplateObjectID
- the id in the basketisTemplate
- says if you're opening a template or a reportisImporting
- says if your importing or youre loading a template in the UIpublic String getUsername()
public String getVreName()
protected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspaceArea() throws org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
public String getRootFolder()
public org.gcube.portlets.d4sreporting.common.shared.Model readTemplateFromSession()
readTemplateFromSession
in interface ReportService
public void delTemplateDir(File dir)
dir
- the dir to deletepublic void storeTemplateInSession(org.gcube.portlets.d4sreporting.common.shared.Model model)
storeTemplateInSession
in interface ReportService
model
- to store in the sessionpublic void storeReportItemIDInSession(String reportItemid)
reportItemid
- the report itemd id in basket to store in the sessionpublic String getReportItemIDFromSession()
public void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave)
saveReport
in interface ReportService
public void saveReport(org.gcube.portlets.d4sreporting.common.shared.Model toSave, String folderid, String newname)
ReportService
saveReport
in interface ReportService
save
- a report in another folder .public org.gcube.portlets.d4sreporting.common.shared.Table getSampleTimeSeries(org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries sTS)
getSampleTimeSeries
in interface ReportService
sTS
- .public SessionInfo getSessionInfo(String currentHost)
getSessionInfo
in interface ReportService
currentHost
- .public org.gcube.portlets.d4sreporting.common.shared.Model getWorkflowDocumentFromDocumentLibrary()
getWorkflowDocumentFromDocumentLibrary
in interface ReportService
public void updateWorkflowDocument(org.gcube.portlets.d4sreporting.common.shared.Model toSave, boolean update)
updateWorkflowDocument
in interface ReportService
public void renewLock()
renewLock
in interface ReportService
public 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
save
in interface ReportService
org.gcube.portlets.widgets.exporter.shared.SaveReportFileException
org.gcube.portlets.widgets.exporter.shared.SaveReportFileExistException
public void renewHTTPSession()
renewHTTPSession
in interface ReportService
public ArrayList<VMEReportBean> listVMEReports()
listVMEReports
in interface ReportService
public ArrayList<VMEReportBean> listVMEReportRefByType(VMETypeIdentifier refType)
listVMEReportRefByType
in interface ReportService
public org.gcube.portlets.d4sreporting.common.shared.Model importVMEReport(String id, String name, VMETypeIdentifier refType)
importVMEReport
in interface ReportService
public org.gcube.portlets.d4sreporting.common.shared.Model getVMEReportRef2Associate(String id, VMETypeIdentifier refType)
getVMEReportRef2Associate
in interface ReportService
public org.gcube.portlets.d4sreporting.common.shared.Model importVMETemplate(VMETypeIdentifier refType)
importVMETemplate
in interface ReportService
public VmeExportResponse exportReportToRSG(VMETypeIdentifier refType, org.gcube.portlets.d4sreporting.common.shared.Model model)
exportReportToRSG
in interface ReportService
model
- the report instance to savepublic VmeExportResponse deleteReportFromRSG(VMETypeIdentifier refType, String idToDelete)
deleteReportFromRSG
in interface ReportService
Copyright © 2014. All Rights Reserved.