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() |
ChangeColumnTypeMonitor |
getChangeColumnTypeMonitor()
Get Operation Monitor during the Change Column Type operation
|
ChangeTableTypeMonitor |
getChangeTableTypeMonitor()
Get Operation Monitor during the Change Table Type operation
|
ArrayList<Codelist> |
getCodelists()
Get Codelist on a registry
|
CodelistPagingLoadResult |
getCodelistsPagingLoader(CodelistPagingLoadConfig plc)
Retrieves a portion of Codelists
|
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
|
DeleteColumnMonitor |
getDeleteColumnMonitor()
Get Operation Monitor during the Delete Column operation
|
void |
getFileFromWorkspace(CSVImportSession csvImportSession) |
FileUploadMonitor |
getFileUploadMonitor()
Get File Upload Monitor during the file upload operation in Import CSV
|
LabelColumnMonitor |
getLabelColumnMonitor()
Get Operation Monitor during the Change the Column Label operation
|
TableData |
getLastTable(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Return Last Table
|
SDMXExportMonitor |
getSDMXExportMonitor()
Get Operation Monitor during the SDMX Export operation
|
SDMXImportMonitor |
getSDMXImportMonitor()
Get Operation Monitor during the SDMX Import operation
|
TableData |
getTable(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Return Table
|
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) |
void |
removeTabularResource(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
Remove Tabular Resource From Service
|
protected Map<String,Object> |
retrieveOperationParameters(SDMXImportSession sdmxImportSession) |
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution |
retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
ChangeColumnTypeSession changeColumnTypeSession)
Retrieve OperationExecution for change column type
|
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution |
retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
ChangeTableTypeSession changeTableTypeSession) |
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution |
retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
DeleteColumnSession deleteColumnSession) |
protected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution |
retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
LabelColumnSession labelColumnSession) |
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 |
setCodelistsPagingLoader()
Initialize Codelists Paging Loader
|
void |
setCSVSession(CSVImportSession importSession) |
void |
setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource)
Set SDMX Registry Source
|
void |
setTabResource(TabResource tabResource)
Set current tabular resource
|
void |
startChangeColumnType(ChangeColumnTypeSession changeColumnTypeSession)
Start change column type
|
void |
startChangeTableType(ChangeTableTypeSession changeTableTypeSession)
Start change table type
|
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 |
startDeleteColumn(DeleteColumnSession deleteColumnSession)
Start delete column
|
void |
startLabelColumn(LabelColumnSession labelColumnSession)
Start change the column label
|
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, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static org.slf4j.Logger logger
protected static SimpleDateFormat sdf
public void setTabResource(TabResource tabResource) throws TDGWTServiceException
setTabResource in interface TDGWTServiceTDGWTServiceExceptionpublic TabResource getTabResourceInformation() throws TDGWTServiceException
getTabResourceInformation in interface TDGWTServiceTDGWTServiceExceptionpublic TabResource getTabResourceInformation(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTabResourceInformation in interface TDGWTServiceTDGWTServiceExceptionprotected void updateTabResourceInformation(TabResource tabResource, ArrayList<TRMetadata> trMetadatas)
public ArrayList<ColumnData> getColumns() throws TDGWTServiceException
getColumns in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<ColumnData> getColumns(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getColumns in interface TDGWTServiceTDGWTServiceExceptionpublic ColumnData getColumn(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId, String columnName) throws TDGWTServiceException
getColumn in interface TDGWTServiceTDGWTServiceExceptionpublic TableData getLastTable(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getLastTable in interface TDGWTServiceTDGWTServiceExceptionpublic TableData getTable(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTable in interface TDGWTServiceTDGWTServiceExceptionpublic void startTDOpen(TDOpenSession s) throws TDGWTServiceException
startTDOpen in interface TDGWTServiceTDGWTServiceExceptionprotected 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 - TDGWTServiceExceptionprotected 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 GridTDGWTServiceExceptionpublic void setCodelistsPagingLoader()
throws TDGWTServiceException
setCodelistsPagingLoader in interface TDGWTServiceTDGWTServiceExceptionpublic CodelistPagingLoadResult getCodelistsPagingLoader(CodelistPagingLoadConfig plc) throws TDGWTServiceException
getCodelistsPagingLoader in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<TabResource> getTabularResources() throws TDGWTServiceException
getTabularResources in interface TDGWTServiceTDGWTServiceExceptionpublic void removeTabularResource(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId)
throws TDGWTServiceException
TDGWTServiceremoveTabularResource in interface TDGWTServicetabResource - TDGWTServiceExceptionpublic TabResource createTabularResource(TabResource tabResource) throws TDGWTServiceException
createTabularResource in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<Codelist> getCodelists() throws TDGWTServiceException
getCodelists in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<Dataset> getDatasets() throws TDGWTServiceException
getDatasets in interface TDGWTServiceTDGWTServiceExceptionpublic 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 TDGWTServiceTDGWTServiceExceptionpublic SDMXImportMonitor getSDMXImportMonitor() throws TDGWTServiceException
getSDMXImportMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource) throws TDGWTServiceException
setSDMXRegistrySource in interface TDGWTServiceTDGWTServiceExceptionpublic void setCSVSession(CSVImportSession importSession) throws TDGWTServiceException
setCSVSession in interface TDGWTServiceTDGWTServiceExceptionpublic FileUploadMonitor getFileUploadMonitor() throws TDGWTServiceException
getFileUploadMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic AvailableCharsetList getAvailableCharset() throws TDGWTServiceException
getAvailableCharset in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<String> configureCSVParser(String encoding, HeaderPresence headerPresence, char delimiter, char comment) throws TDGWTServiceException
configureCSVParser in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<CSVRowError> checkCSV(long errorsLimit) throws TDGWTServiceException
checkCSV in interface TDGWTServiceTDGWTServiceExceptionpublic void startCSVImport(CSVImportSession csvImportSession) throws TDGWTServiceException
startCSVImport in interface TDGWTServiceTDGWTServiceExceptionprotected 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 - TDGWTServiceExceptionpublic CSVImportMonitor getCSVImportMonitor() throws TDGWTServiceException
getCSVImportMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void getFileFromWorkspace(CSVImportSession csvImportSession) throws TDGWTServiceException
getFileFromWorkspace in interface TDGWTServiceTDGWTServiceExceptionpublic String getTRCreationDate(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTRCreationDate in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<TRMetadata> getTRMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTRMetadata in interface TDGWTServiceTDGWTServiceExceptionpublic ArrayList<TabMetadata> getTableMetadata(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws TDGWTServiceException
getTableMetadata in interface TDGWTServiceTDGWTServiceExceptionprotected Map<String,Object> csvExportFileParameter(CSVExportSession exportSession)
exportSession - protected Map<String,Object> sdmxExportParameter(SDMXExportSession exportSession) throws TDGWTServiceException
exportSession - TDGWTServiceExceptionpublic void startSDMXExport(SDMXExportSession exportSession) throws TDGWTServiceException
TDGWTServicestartSDMXExport in interface TDGWTServiceexportSession - TDGWTServiceExceptionpublic SDMXExportMonitor getSDMXExportMonitor() throws TDGWTServiceException
getSDMXExportMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void startCSVExport(CSVExportSession exportSession) throws TDGWTServiceException
startCSVExport in interface TDGWTServiceTDGWTServiceExceptionpublic CSVExportMonitor getCSVExportMonitor() throws TDGWTServiceException
getCSVExportMonitor in interface TDGWTServiceTDGWTServiceExceptionprotected void saveInDestination(javax.servlet.http.HttpSession session,
String user,
org.gcube.data.analysis.tabulardata.model.metadata.table.ExportMetadata exportMetadata,
CSVExportSession exportSession)
throws TDGWTServiceException
TDGWTServiceExceptionprotected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
ChangeColumnTypeSession changeColumnTypeSession)
throws TDGWTServiceException
changeColumnTypeSession - TDGWTServiceExceptionprotected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
DeleteColumnSession deleteColumnSession)
throws TDGWTServiceException
TDGWTServiceExceptionprotected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
LabelColumnSession labelColumnSession)
throws TDGWTServiceException
TDGWTServiceExceptionprotected org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution retriveOperationExecution(org.gcube.data.analysis.tabulardata.service.TabularDataService service,
ChangeTableTypeSession changeTableTypeSession)
throws TDGWTServiceException
TDGWTServiceExceptionpublic void startChangeColumnType(ChangeColumnTypeSession changeColumnTypeSession) throws TDGWTServiceException
startChangeColumnType in interface TDGWTServiceTDGWTServiceExceptionpublic ChangeColumnTypeMonitor getChangeColumnTypeMonitor() throws TDGWTServiceException
getChangeColumnTypeMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void startDeleteColumn(DeleteColumnSession deleteColumnSession) throws TDGWTServiceException
startDeleteColumn in interface TDGWTServiceTDGWTServiceExceptionpublic DeleteColumnMonitor getDeleteColumnMonitor() throws TDGWTServiceException
getDeleteColumnMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void startLabelColumn(LabelColumnSession labelColumnSession) throws TDGWTServiceException
startLabelColumn in interface TDGWTServiceTDGWTServiceExceptionpublic LabelColumnMonitor getLabelColumnMonitor() throws TDGWTServiceException
getLabelColumnMonitor in interface TDGWTServiceTDGWTServiceExceptionpublic void startChangeTableType(ChangeTableTypeSession changeTableTypeSession) throws TDGWTServiceException
startChangeTableType in interface TDGWTServiceTDGWTServiceExceptionpublic ChangeTableTypeMonitor getChangeTableTypeMonitor() throws TDGWTServiceException
getChangeTableTypeMonitor in interface TDGWTServiceTDGWTServiceExceptionCopyright © 2014. All Rights Reserved.