|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.user.reportgenerator.server.servlet.ReportServiceImpl
public class ReportServiceImpl
class implementing services
Field Summary | |
---|---|
static String |
CURRENT_REPORT_ID_ATTRIBUTE
|
static String |
CURRENT_REPORT_INSTANCE
|
static String |
PREVIOUS_REPORT_INSTANCE
|
static String |
RSG_WS_ADDRESS
|
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
---|
perThreadRequest, perThreadResponse |
Constructor Summary | |
---|---|
ReportServiceImpl()
|
Method Summary | |
---|---|
void |
delTemplateDir(File dir)
recurdively delete the templates folder of the dir dir |
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 |
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
---|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
---|
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ReportServiceImpl()
Method Detail |
---|
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 UI
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |