|
||||||||||
| 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.td.gwtservice.server.TDGWTServiceImpl
public class TDGWTServiceImpl
| Field Summary | |
|---|---|
protected org.gcube.application.framework.core.session.ASLSession |
aslSession
|
protected static org.slf4j.Logger |
logger
|
protected static SimpleDateFormat |
sdf
|
protected org.gcube.data.analysis.tabulardata.service.TabularDataService |
service
|
protected javax.servlet.http.HttpSession |
session
|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
TDGWTServiceImpl()
|
|
| Method Summary | |
|---|---|
ArrayList<CSVRowError> |
checkCSV(long errorsLimit)
|
ArrayList<String> |
configureCSVParser(String encoding,
HeaderPresence headerPresence,
char delimiter,
char comment)
|
TabResource |
createTabularResource(TabResource tabResource)
Creates a TabResource on Service |
protected Map<String,Object> |
csvImportFileParameter(String fileUrlOnStorage,
FileUploadSession fileUploadSession,
CSVImportSession csvImportSession)
|
ArrayList<Agencies> |
getAgencies()
Get Agecies on a registry |
AvailableCharsetList |
getAvailableCharset()
|
ArrayList<Codelist> |
getCodelists()
Get Codelist on a registry |
CSVImportMonitor |
getCSVImportMonitor()
Get Operation Monitor during the CSV Import operation |
ArrayList<Dataset> |
getDatasets()
Get Datasets on a registry |
void |
getFileFromWorkspace(CSVImportSession csvImportSession)
|
FileUploadMonitor |
getFileUploadMonitor()
Get File Upload Monitor during the file upload operation in Import CSV |
TableData |
getLastTable(TRId trId)
Return Last Table |
protected org.gcube.data.analysis.tabulardata.operation.OperationDescriptor |
getOperationDescriptorWithId(String op,
List<org.gcube.data.analysis.tabulardata.operation.OperationDescriptor> capabilities)
|
SDMXImportMonitor |
getSDMXImportMonitor()
Get Operation Monitor during the SDMX Import operation |
ArrayList<TRMetadata> |
getTableMetadata(TRId trId)
Return Metadata |
TabResource |
getTabResourceInformation()
Get informations on the current tabular resource |
ArrayList<TabResource> |
getTabularResources()
Return all tabular resource of a user |
protected void |
importCSVFileOnService(String user,
FileUploadSession fileUploadSession,
CSVImportSession csvImportSession)
|
void |
removeTabularResource(TabResource tabResource)
|
protected Map<String,Object> |
retrieveOperationParameters(SDMXImportSession sdmxImportSession)
|
protected void |
retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr)
|
protected TabResource |
retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
int i)
Retrieves the informations for a specific Tabular Resource from service |
void |
setCSVSession(CSVImportSession importSession)
|
void |
setSDMXSession(SDMXImportSession sdmxImportSession)
Set SDMXImportSession for SDMX Import |
void |
setTabResource(TabResource tabResource)
Set current tabular resource |
void |
setTDOpenSession(TDOpenSession s)
Set open session for return all tabular resource of a user |
void |
startCSVImport(CSVImportSession csvImportSession)
Start CSV Import and invokes the client library |
void |
startSDMXImport(SDMXImportSession sdmxImportSession)
Start SDMX Import and invokes the client library |
protected void |
syncTRMetaData(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
TabResource tabResource)
|
| 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, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger logger
protected static SimpleDateFormat sdf
protected org.gcube.data.analysis.tabulardata.service.TabularDataService service
protected javax.servlet.http.HttpSession session
protected org.gcube.application.framework.core.session.ASLSession aslSession
| Constructor Detail |
|---|
public TDGWTServiceImpl()
| Method Detail |
|---|
public void setTabResource(TabResource tabResource)
throws TDGWTServiceException
setTabResource in interface TDGWTServiceTDGWTServiceException
public TabResource getTabResourceInformation()
throws TDGWTServiceException
getTabResourceInformation in interface TDGWTServiceTDGWTServiceException
public TableData getLastTable(TRId trId)
throws TDGWTServiceException
TDGWTService
getLastTable in interface TDGWTServiceTDGWTServiceException
public void setTDOpenSession(TDOpenSession s)
throws TDGWTServiceException
setTDOpenSession in interface TDGWTServiceTDGWTServiceException
protected void syncTRMetaData(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
TabResource tabResource)
tr - tabResource -
protected void retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr)
throws TDGWTServiceException
tr -
TDGWTServiceException
protected TabResource retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
int i)
throws TDGWTServiceException
tr - TabularResource on servicei - Index on Grid
TDGWTServiceException
public ArrayList<TabResource> getTabularResources()
throws TDGWTServiceException
getTabularResources in interface TDGWTServiceTDGWTServiceException
public void removeTabularResource(TabResource tabResource)
throws TDGWTServiceException
tabResource -
TDGWTServiceException
public TabResource createTabularResource(TabResource tabResource)
throws TDGWTServiceException
createTabularResource in interface TDGWTServiceTDGWTServiceException
public ArrayList<Codelist> getCodelists()
throws TDGWTServiceException
getCodelists in interface TDGWTServiceTDGWTServiceException
public ArrayList<Dataset> getDatasets()
throws TDGWTServiceException
getDatasets in interface TDGWTServiceTDGWTServiceException
public ArrayList<Agencies> getAgencies()
throws TDGWTServiceException
getAgencies in interface TDGWTServiceTDGWTServiceExceptionprotected Map<String,Object> retrieveOperationParameters(SDMXImportSession sdmxImportSession)
sdmxImportSession -
public void startSDMXImport(SDMXImportSession sdmxImportSession)
throws TDGWTServiceException
startSDMXImport in interface TDGWTServiceTDGWTServiceException
protected org.gcube.data.analysis.tabulardata.operation.OperationDescriptor getOperationDescriptorWithId(String op,
List<org.gcube.data.analysis.tabulardata.operation.OperationDescriptor> capabilities)
throws TDGWTServiceException
op - capabilities -
TDGWTServiceException
public SDMXImportMonitor getSDMXImportMonitor()
throws TDGWTServiceException
getSDMXImportMonitor in interface TDGWTServiceTDGWTServiceException
public void setSDMXSession(SDMXImportSession sdmxImportSession)
throws TDGWTServiceException
setSDMXSession in interface TDGWTServiceTDGWTServiceException
public void setCSVSession(CSVImportSession importSession)
throws TDGWTServiceException
setCSVSession in interface TDGWTServiceTDGWTServiceException
public FileUploadMonitor getFileUploadMonitor()
throws TDGWTServiceException
getFileUploadMonitor in interface TDGWTServiceTDGWTServiceException
public AvailableCharsetList getAvailableCharset()
throws TDGWTServiceException
getAvailableCharset in interface TDGWTServiceTDGWTServiceException
public ArrayList<String> configureCSVParser(String encoding,
HeaderPresence headerPresence,
char delimiter,
char comment)
throws TDGWTServiceException
configureCSVParser in interface TDGWTServiceTDGWTServiceException
public ArrayList<CSVRowError> checkCSV(long errorsLimit)
throws TDGWTServiceException
checkCSV in interface TDGWTServiceTDGWTServiceException
public void startCSVImport(CSVImportSession csvImportSession)
throws TDGWTServiceException
startCSVImport in interface TDGWTServiceTDGWTServiceException
protected Map<String,Object> csvImportFileParameter(String fileUrlOnStorage,
FileUploadSession fileUploadSession,
CSVImportSession csvImportSession)
fileUrlOnStorage - fileUploadSession - csvImportSession -
protected void importCSVFileOnService(String user,
FileUploadSession fileUploadSession,
CSVImportSession csvImportSession)
throws TDGWTServiceException
user - fileUploadSession - csvImportSession -
TDGWTServiceException
public CSVImportMonitor getCSVImportMonitor()
throws TDGWTServiceException
getCSVImportMonitor in interface TDGWTServiceTDGWTServiceException
public void getFileFromWorkspace(CSVImportSession csvImportSession)
throws TDGWTServiceException
getFileFromWorkspace in interface TDGWTServiceTDGWTServiceException
public ArrayList<TRMetadata> getTableMetadata(TRId trId)
throws TDGWTServiceException
TDGWTService
getTableMetadata in interface TDGWTServiceTDGWTServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||