public class TDGWTServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements TDGWTService
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected static SimpleDateFormat |
sdf |
Constructor and Description |
---|
TDGWTServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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> |
csvExportFileParameter(CSVExportSession exportSession) |
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
|
ColumnData |
getColumn(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId,
String columnName)
Retrieves information about a specific column
|
ArrayList<ColumnData> |
getColumns()
Retrieves the list of columns in the current table
|
ArrayList<ColumnData> |
getColumns(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Retrieves the list of columns in the table provided by trId
|
CSVExportMonitor |
getCSVExportMonitor()
Get Operation Monitor during the CSV Export operation
|
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(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Return Last Table
|
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition |
getOperationDescriptorWithId(String op,
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition> capabilities) |
SDMXExportMonitor |
getSDMXExportMonitor()
Get Operation Monitor during the SDMX Export operation
|
SDMXImportMonitor |
getSDMXImportMonitor()
Get Operation Monitor during the SDMX Import operation
|
ArrayList<TabMetadata> |
getTableMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Return Metadata of Table
|
TabResource |
getTabResourceInformation()
Get informations on the current tabular resource
|
TabResource |
getTabResourceInformation(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Get informations on tabular resource
|
ArrayList<TabResource> |
getTabularResources()
Return all tabular resource of a user
|
String |
getTRCreationDate(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Get creation date on tabular resource
|
ArrayList<TRMetadata> |
getTRMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Return Metadata of Tabular Resources
|
protected void |
importCSVFileOnService(javax.servlet.http.HttpSession session,
org.gcube.application.framework.core.session.ASLSession aslSession,
String user,
FileUploadSession fileUploadSession,
CSVImportSession csvImportSession) |
protected State |
matchTaskState(org.gcube.data.analysis.tabulardata.service.operation.TaskStatus status) |
void |
removeTabularResource(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Remove Tabular Resource From Service
|
protected Map<String,Object> |
retrieveOperationParameters(SDMXImportSession sdmxImportSession) |
protected void |
retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr) |
protected TabResource |
retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
int i)
Retrieves the informations for a specific Tabular Resource from service
|
protected void |
saveInDestination(javax.servlet.http.HttpSession session,
String user,
org.gcube.data.analysis.tabulardata.model.metadata.table.ExportMetadata exportMetadata,
CSVExportSession exportSession) |
protected Map<String,Object> |
sdmxExportParameter(SDMXExportSession exportSession) |
void |
setCSVSession(CSVImportSession importSession) |
void |
setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource)
Set SDMX Registry Source
|
void |
setTabResource(TabResource tabResource)
Set current tabular resource
|
void |
startCSVExport(CSVExportSession exportSession)
Start CSV Export and invokes the client library
|
void |
startCSVImport(CSVImportSession csvImportSession)
Start CSV Import and invokes the client library
|
void |
startSDMXExport(SDMXExportSession exportSession)
Start SDMX Export and invokes the client library
|
void |
startSDMXImport(SDMXImportSession sdmxImportSession)
Start SDMX Import and invokes the client library
|
void |
startTDOpen(TDOpenSession s)
Not used now, but it will be necessary in the future to retrieve task
pending
Set open session for return all tabular resource of a user
|
protected void |
syncTRMetaData(org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr,
TabResource tabResource) |
protected void |
updateTabResourceInformation(TabResource tabResource,
ArrayList<TRMetadata> trMetadatas) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected static org.slf4j.Logger logger
protected static SimpleDateFormat sdf
public void setTabResource(TabResource tabResource) throws TDGWTServiceException
setTabResource
in interface TDGWTService
TDGWTServiceException
public TabResource getTabResourceInformation() throws TDGWTServiceException
getTabResourceInformation
in interface TDGWTService
TDGWTServiceException
public TabResource getTabResourceInformation(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTabResourceInformation
in interface TDGWTService
TDGWTServiceException
protected void updateTabResourceInformation(TabResource tabResource, ArrayList<TRMetadata> trMetadatas)
public ArrayList<ColumnData> getColumns() throws TDGWTServiceException
getColumns
in interface TDGWTService
TDGWTServiceException
public ArrayList<ColumnData> getColumns(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getColumns
in interface TDGWTService
TDGWTServiceException
public ColumnData getColumn(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId, String columnName) throws TDGWTServiceException
getColumn
in interface TDGWTService
TDGWTServiceException
public TableData getLastTable(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getLastTable
in interface TDGWTService
TDGWTServiceException
public void startTDOpen(TDOpenSession s) throws TDGWTServiceException
startTDOpen
in interface TDGWTService
TDGWTServiceException
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.TabularDataService service, org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr) throws TDGWTServiceException
tr
- TDGWTServiceException
protected TabResource retriveTRMetadataFromService(org.gcube.data.analysis.tabulardata.service.TabularDataService service, org.gcube.data.analysis.tabulardata.service.tabular.TabularResource tr, int i) throws TDGWTServiceException
tr
- TabularResource on servicei
- Index on GridTDGWTServiceException
public ArrayList<TabResource> getTabularResources() throws TDGWTServiceException
getTabularResources
in interface TDGWTService
TDGWTServiceException
public void removeTabularResource(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
TDGWTService
removeTabularResource
in interface TDGWTService
tabResource
- TDGWTServiceException
public TabResource createTabularResource(TabResource tabResource) throws TDGWTServiceException
createTabularResource
in interface TDGWTService
TDGWTServiceException
public ArrayList<Codelist> getCodelists() throws TDGWTServiceException
getCodelists
in interface TDGWTService
TDGWTServiceException
public ArrayList<Dataset> getDatasets() throws TDGWTServiceException
getDatasets
in interface TDGWTService
TDGWTServiceException
public ArrayList<Agencies> getAgencies() throws TDGWTServiceException
getAgencies
in interface TDGWTService
TDGWTServiceException
protected Map<String,Object> retrieveOperationParameters(SDMXImportSession sdmxImportSession)
sdmxImportSession
- public void startSDMXImport(SDMXImportSession sdmxImportSession) throws TDGWTServiceException
startSDMXImport
in interface TDGWTService
TDGWTServiceException
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition getOperationDescriptorWithId(String op, List<org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition> capabilities) throws TDGWTServiceException
op
- capabilities
- TDGWTServiceException
protected State matchTaskState(org.gcube.data.analysis.tabulardata.service.operation.TaskStatus status)
public SDMXImportMonitor getSDMXImportMonitor() throws TDGWTServiceException
getSDMXImportMonitor
in interface TDGWTService
TDGWTServiceException
public void setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource) throws TDGWTServiceException
setSDMXRegistrySource
in interface TDGWTService
TDGWTServiceException
public void setCSVSession(CSVImportSession importSession) throws TDGWTServiceException
setCSVSession
in interface TDGWTService
TDGWTServiceException
public FileUploadMonitor getFileUploadMonitor() throws TDGWTServiceException
getFileUploadMonitor
in interface TDGWTService
TDGWTServiceException
public AvailableCharsetList getAvailableCharset() throws TDGWTServiceException
getAvailableCharset
in interface TDGWTService
TDGWTServiceException
public ArrayList<String> configureCSVParser(String encoding, HeaderPresence headerPresence, char delimiter, char comment) throws TDGWTServiceException
configureCSVParser
in interface TDGWTService
TDGWTServiceException
public ArrayList<CSVRowError> checkCSV(long errorsLimit) throws TDGWTServiceException
checkCSV
in interface TDGWTService
TDGWTServiceException
public void startCSVImport(CSVImportSession csvImportSession) throws TDGWTServiceException
startCSVImport
in interface TDGWTService
TDGWTServiceException
protected Map<String,Object> csvImportFileParameter(String fileUrlOnStorage, FileUploadSession fileUploadSession, CSVImportSession csvImportSession)
fileUrlOnStorage
- fileUploadSession
- csvImportSession
- protected void importCSVFileOnService(javax.servlet.http.HttpSession session, org.gcube.application.framework.core.session.ASLSession aslSession, String user, FileUploadSession fileUploadSession, CSVImportSession csvImportSession) throws TDGWTServiceException
user
- fileUploadSession
- csvImportSession
- TDGWTServiceException
public CSVImportMonitor getCSVImportMonitor() throws TDGWTServiceException
getCSVImportMonitor
in interface TDGWTService
TDGWTServiceException
public void getFileFromWorkspace(CSVImportSession csvImportSession) throws TDGWTServiceException
getFileFromWorkspace
in interface TDGWTService
TDGWTServiceException
public String getTRCreationDate(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTRCreationDate
in interface TDGWTService
TDGWTServiceException
public ArrayList<TRMetadata> getTRMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTRMetadata
in interface TDGWTService
TDGWTServiceException
public ArrayList<TabMetadata> getTableMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTableMetadata
in interface TDGWTService
TDGWTServiceException
protected Map<String,Object> csvExportFileParameter(CSVExportSession exportSession)
exportSession
- protected Map<String,Object> sdmxExportParameter(SDMXExportSession exportSession)
exportSession
- public void startSDMXExport(SDMXExportSession exportSession) throws TDGWTServiceException
TDGWTService
startSDMXExport
in interface TDGWTService
exportSession
- TDGWTServiceException
public SDMXExportMonitor getSDMXExportMonitor() throws TDGWTServiceException
getSDMXExportMonitor
in interface TDGWTService
TDGWTServiceException
public void startCSVExport(CSVExportSession exportSession) throws TDGWTServiceException
startCSVExport
in interface TDGWTService
TDGWTServiceException
public CSVExportMonitor getCSVExportMonitor() throws TDGWTServiceException
getCSVExportMonitor
in interface TDGWTService
TDGWTServiceException
protected void saveInDestination(javax.servlet.http.HttpSession session, String user, org.gcube.data.analysis.tabulardata.model.metadata.table.ExportMetadata exportMetadata, CSVExportSession exportSession) throws TDGWTServiceException
TDGWTServiceException
Copyright © 2014. All Rights Reserved.