From 37d33439403f1339e3ff9f30d98b3c7d91701682 Mon Sep 17 00:00:00 2001
From: Giancarlo Panichi
Date: Tue, 16 May 2017 14:09:16 +0000
Subject: [PATCH] ref 8580:TDM - TabMan - Support Java 8 compatibility
https://support.d4science.org/issues/8580
Updated compatibility to Java 8
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@148720 82a268e6-3cf1-43bd-a215-b396298e98cf
---
.classpath | 6 +-
distro/changelog.xml | 4 +
pom.xml | 6 +-
.../gwtservice/client/rpc/TDGWTService.java | 776 ++-
.../client/rpc/TDGWTServiceAsync.java | 4 +-
.../server/CSVImportFileServlet.java | 4 +-
.../server/CodelistMappingUploadServlet.java | 4 +-
.../gwtservice/server/LocalUploadServlet.java | 4 +-
.../server/RetrieveChartFileServlet.java | 4 +-
...etrieveFileAndDiscoverMimeTypeServlet.java | 4 +-
.../user/td/gwtservice/server/SDMXClient.java | 4 +-
.../gwtservice/server/SessionConstants.java | 4 +-
.../user/td/gwtservice/server/SessionOp.java | 6 +-
.../td/gwtservice/server/SessionUtil.java | 1364 ++---
.../gwtservice/server/TDGWTServiceImpl.java | 5223 ++++++-----------
.../server/TDGWTServiceMessagesConstants.java | 4 +-
.../td/gwtservice/server/TDLogsServlet.java | 4 +-
.../gwtservice/server/TDRStudioServlet.java | 4 +-
.../server/TabularDataRowsXServlet.java | 4 +-
.../server/encoding/EncodingPGSupported.java | 4 +-
.../server/file/CSVFileUploadSession.java | 4 +-
.../CodelistMappingFileUploadSession.java | 4 +-
.../server/file/FileUploadListener.java | 4 +-
.../td/gwtservice/server/file/FileUtil.java | 42 +-
.../opexecution/OpExecution4AddColumn.java | 4 +-
.../opexecution/OpExecution4CSVExport.java | 4 +-
.../opexecution/OpExecution4CSVImport.java | 4 +-
.../OpExecution4ChangeColumnType.java | 4 +-
.../OpExecution4ChangeColumnsPosition.java | 4 +-
.../OpExecution4ChangeTableType.java | 4 +-
.../OpExecution4ChartTopRating.java | 4 +-
.../server/opexecution/OpExecution4Clone.java | 4 +-
.../OpExecution4CodelistMapping.java | 4 +-
.../OpExecution4DataMinerOperation.java | 4 +-
.../opexecution/OpExecution4DeleteColumn.java | 4 +-
.../opexecution/OpExecution4DeleteRows.java | 4 +-
.../OpExecution4Denormalization.java | 4 +-
.../opexecution/OpExecution4Duplicates.java | 4 +-
.../opexecution/OpExecution4EditRow.java | 4 +-
.../OpExecution4ExtractCodelist.java | 4 +-
.../opexecution/OpExecution4FilterColumn.java | 4 +-
.../OpExecution4GeometryCreatePoint.java | 4 +-
...Execution4GeospatialCreateCoordinates.java | 4 +-
...pExecution4GeospatialDownscaleCSquare.java | 4 +-
.../opexecution/OpExecution4GroupBy.java | 4 +-
.../opexecution/OpExecution4JSONExport.java | 4 +-
.../opexecution/OpExecution4LabelColumn.java | 4 +-
.../opexecution/OpExecution4MapCreation.java | 4 +-
.../opexecution/OpExecution4MergeColumn.java | 4 +-
.../OpExecution4Normalization.java | 4 +-
.../opexecution/OpExecution4ReplaceBatch.java | 4 +-
.../OpExecution4ReplaceByExternal.java | 4 +-
.../OpExecution4ReplaceColumn.java | 4 +-
...OpExecution4ReplaceColumnByExpression.java | 4 +-
.../OpExecution4SDMXCodelistExport.java | 4 +-
.../OpExecution4SDMXCodelistImport.java | 4 +-
.../OpExecution4SDMXDatasetExport.java | 4 +-
.../OpExecution4SDMXTemplateExport.java | 4 +-
.../opexecution/OpExecution4SplitColumn.java | 4 +-
.../OpExecution4StatisticalOperation.java | 4 +-
.../OpExecution4TimeAggregation.java | 4 +-
.../server/opexecution/OpExecution4Union.java | 4 +-
.../opexecution/OpExecutionBuilder.java | 4 +-
.../opexecution/OpExecutionDirector.java | 4 +-
.../server/opexecution/OpExecutionSpec.java | 4 +-
.../server/resource/ResourceTDCreator.java | 17 +-
.../server/resource/ResourceTypeMap.java | 4 +-
.../server/social/TDMNotifications.java | 159 +-
.../server/storage/FilesStorage.java | 198 +-
.../server/trservice/ColumnDataTypeMap.java | 4 +-
.../server/trservice/ColumnMap.java | 4 +-
.../server/trservice/ColumnTypeCodeMap.java | 2 +-
.../server/trservice/ExpressionGenerator.java | 4 +-
.../ExtractCodelistOperationMap.java | 4 +-
.../server/trservice/ExtractReferences.java | 2 +-
.../server/trservice/JobClassifierMap.java | 4 +-
.../server/trservice/LicenceMap.java | 4 +-
.../trservice/OperationDefinitionMap.java | 4 +-
.../server/trservice/PeriodTypeMap.java | 4 +-
.../server/trservice/QueryService.java | 327 +-
.../server/trservice/TDTypeValueMap.java | 4 +-
.../server/trservice/TRTasksManager.java | 4 +-
.../trservice/TabularResourceTypeMap.java | 4 +-
.../server/trservice/TaskStateMap.java | 4 +-
.../gwtservice/server/trservice/ValueMap.java | 2 +-
.../server/trservice/WorkerStateMap.java | 4 +-
.../uriresolver/UriResolverTDClient.java | 4 +-
.../server/util/ServiceCredentials.java | 4 +-
.../user/td/gwtservice/shared/Constants.java | 4 +-
.../gwtservice/shared/chart/ChartSession.java | 4 +-
.../shared/chart/ChartTopRatingSession.java | 34 +-
.../CodelistMappingSession.java | 4 +-
.../shared/csv/AvailableCharsetList.java | 16 +-
.../shared/csv/CSVExportSession.java | 4 +-
.../td/gwtservice/shared/csv/CSVFileUtil.java | 4 +-
.../shared/csv/CSVImportSession.java | 4 +-
.../gwtservice/shared/csv/CSVImportState.java | 4 +-
.../shared/csv/CSVParserConfiguration.java | 35 +-
.../td/gwtservice/shared/csv/CSVRowError.java | 27 +-
.../shared/csv/CheckCSVSession.java | 4 +-
.../shared/document/CodelistDocument.java | 4 +-
.../shared/document/DatasetDocument.java | 4 +-
.../shared/document/SDMXDocument.java | 4 +-
.../exception/TDGWTIsFinalException.java | 20 +-
.../exception/TDGWTIsFlowException.java | 20 +-
.../exception/TDGWTIsLockedException.java | 20 +-
.../exception/TDGWTServiceException.java | 20 +-
.../TDGWTSessionExpiredException.java | 20 +-
.../extract/ExtractCodelistSession.java | 4 +-
.../extract/ExtractCodelistTargetColumn.java | 2 +-
.../shared/file/FileUploadMonitor.java | 26 +-
.../shared/file/FileUploadState.java | 3 +-
.../shared/file/HeaderPresence.java | 4 +-
.../aggregate/TdAggregateFunction.java | 15 +-
.../aggregate/TdBaseComboDataBean.java | 14 +-
.../geometry/GeometryCreatePointSession.java | 19 +-
.../GeospatialCreateCoordinatesSession.java | 29 +-
.../GeospatialDownscaleCSquareSession.java | 27 +-
.../gwtservice/shared/history/OpHistory.java | 2 +-
.../shared/history/RollBackSession.java | 4 +-
.../td/gwtservice/shared/i18n/InfoLocale.java | 4 +-
.../shared/json/JSONExportSession.java | 4 +-
.../shared/licenses/LicenceData.java | 4 +-
.../shared/map/MapCreationSession.java | 48 +-
.../monitor/BackgroundOperationMonitor.java | 61 +-
.../BackgroundOperationMonitorCreator.java | 248 +-
.../BackgroundOperationMonitorSession.java | 4 +-
.../shared/monitor/CSVExportMonitor.java | 6 +-
.../shared/monitor/CSVImportMonitor.java | 6 +-
.../shared/monitor/OperationMonitor.java | 4 +-
.../monitor/OperationMonitorCreator.java | 258 +-
.../monitor/OperationMonitorSession.java | 4 +-
.../shared/monitor/SDMXExportMonitor.java | 4 +-
.../shared/monitor/SDMXImportMonitor.java | 4 +-
.../shared/rule/AppliedRulesResponseData.java | 4 +-
.../ApplyAndDetachColumnRulesSession.java | 24 +-
.../shared/rule/ApplyTableRuleSession.java | 4 +-
.../shared/rule/DetachColumnRulesSession.java | 4 +-
.../shared/rule/DetachTableRulesSession.java | 4 +-
.../rule/RuleColumnPlaceHolderDescriptor.java | 4 +-
.../gwtservice/shared/rule/RuleScopeType.java | 8 +-
.../rule/description/RuleDescriptionData.java | 4 +-
.../rule/type/TDBaseColumnRuleType.java | 4 +-
.../rule/type/TDDimensionColumnRuleType.java | 4 +-
.../shared/rule/type/TDRuleColumnType.java | 4 +-
.../shared/rule/type/TDRuleTableType.java | 4 +-
.../shared/rule/type/TDRuleType.java | 4 +-
.../shared/sdmx/SDMXExportSession.java | 4 +-
.../shared/sdmx/SDMXImportSession.java | 4 +-
.../sdmx/SDMXTemplateExportSession.java | 4 +-
.../td/gwtservice/shared/share/Contacts.java | 12 +-
.../td/gwtservice/shared/share/ShareRule.java | 4 +-
.../shared/share/ShareTabResource.java | 6 +-
.../shared/share/ShareTemplate.java | 4 +-
.../gwtservice/shared/source/FileSource.java | 6 +-
.../shared/source/SDMXRegistrySource.java | 21 +-
.../td/gwtservice/shared/source/Source.java | 18 +-
.../gwtservice/shared/source/SourceType.java | 19 +-
.../gwtservice/shared/source/UrlSource.java | 19 +-
.../shared/source/WorkspaceSource.java | 20 +-
.../DataMinerOperationSession.java | 4 +-
.../StatisticalOperationSession.java | 4 +-
.../gwtservice/shared/task/InvocationS.java | 2 +-
.../user/td/gwtservice/shared/task/JobS.java | 51 +-
.../shared/task/JobSClassifier.java | 4 +-
.../user/td/gwtservice/shared/task/State.java | 8 +-
.../shared/task/TaskResubmitSession.java | 2 +-
.../shared/task/TaskResumeSession.java | 4 +-
.../user/td/gwtservice/shared/task/TaskS.java | 35 +-
.../gwtservice/shared/task/TaskWrapper.java | 4 +-
.../shared/task/ValidationsJobS.java | 4 +-
.../shared/task/ValidationsTasksMetadata.java | 4 +-
.../gwtservice/shared/task/WorkerState.java | 4 +-
.../shared/template/TemplateApplySession.java | 4 +-
.../shared/template/TemplateColumnData.java | 4 +-
.../shared/template/TemplateData.java | 26 +-
.../template/TemplateDeleteSession.java | 4 +-
.../gwtservice/shared/tr/ConditionCode.java | 4 +-
.../shared/tr/ConditionCodeMap.java | 20 +-
.../td/gwtservice/shared/tr/DimensionRow.java | 4 +-
.../td/gwtservice/shared/tr/RefColumn.java | 2 +-
.../td/gwtservice/shared/tr/TabResource.java | 4 +-
.../td/gwtservice/shared/tr/TableData.java | 51 +-
.../shared/tr/batch/Occurrences.java | 4 +-
...currencesForReplaceBatchColumnSession.java | 4 +-
.../tr/batch/ReplaceBatchColumnSession.java | 4 +-
.../shared/tr/batch/ReplaceEntry.java | 49 +-
.../shared/tr/batch/ShowOccurrencesType.java | 4 +-
.../tr/clone/CloneTabularResourceSession.java | 4 +-
.../shared/tr/column/AddColumnSession.java | 4 +-
.../column/ChangeColumnsPositionSession.java | 4 +-
.../shared/tr/column/DeleteColumnSession.java | 4 +-
.../shared/tr/column/FilterColumnSession.java | 4 +-
.../shared/tr/column/LabelColumnSession.java | 4 +-
.../shared/tr/column/MergeColumnSession.java | 13 +-
.../ReplaceColumnByExpressionSession.java | 4 +-
.../tr/column/ReplaceColumnSession.java | 56 +-
.../shared/tr/column/SplitColumnSession.java | 42 +-
.../tr/column/mapping/ColumnMappingData.java | 31 +-
.../tr/column/mapping/ColumnMappingList.java | 17 +-
.../column/type/ChangeColumnTypeSession.java | 66 +-
.../shared/tr/groupby/GroupBySession.java | 4 +-
.../tr/groupby/TimeAggregationSession.java | 11 +-
.../shared/tr/metadata/TRAgencyMetadata.java | 4 +-
.../tr/metadata/TRDescriptionMetadata.java | 4 +-
.../shared/tr/metadata/TRLicenceMetadata.java | 4 +-
.../shared/tr/metadata/TRLocalizedText.java | 4 +-
.../shared/tr/metadata/TRMetadata.java | 4 +-
.../shared/tr/metadata/TRNameMetadata.java | 4 +-
.../shared/tr/metadata/TRRightsMetadata.java | 4 +-
.../tr/metadata/TRValidSinceMetadata.java | 4 +-
.../tr/metadata/TRValidUntilMetadata.java | 4 +-
.../normalization/DenormalizationSession.java | 33 +-
.../normalization/NormalizationSession.java | 37 +-
.../shared/tr/open/TDOpenSession.java | 4 +-
.../tr/paging/CodelistPagingLoadConfig.java | 4 +-
.../tr/paging/CodelistPagingLoadResult.java | 4 +-
.../shared/tr/paging/OrderInfo.java | 4 +-
.../ReplaceByExternalColumnsMapping.java | 11 +-
.../ReplaceByExternalSession.java | 40 +-
.../shared/tr/resources/InternalURITD.java | 12 +-
.../tr/resources/RemoveResourceSession.java | 4 +-
.../shared/tr/resources/ResourceTD.java | 14 +-
.../tr/resources/ResourceTDDescriptor.java | 31 +-
.../shared/tr/resources/ResourceTDType.java | 16 +-
.../tr/resources/SaveResourceSession.java | 4 +-
.../shared/tr/resources/StringResourceTD.java | 8 +-
.../shared/tr/resources/TableResourceTD.java | 12 +-
.../shared/tr/rows/DeleteRowsSession.java | 4 +-
.../shared/tr/rows/DuplicatesSession.java | 4 +-
.../shared/tr/rows/EditRowSession.java | 4 +-
.../tr/table/ChangeTableTypeSession.java | 4 +-
.../shared/tr/table/Validations.java | 43 +-
.../metadata/TabDescriptionsMetadata.java | 4 +-
.../tr/table/metadata/TabExportMetadata.java | 4 +-
.../table/metadata/TabGenericMapMetadata.java | 4 +-
.../tr/table/metadata/TabImportMetadata.java | 4 +-
.../shared/tr/table/metadata/TabMetadata.java | 4 +-
.../tr/table/metadata/TabNamesMetadata.java | 4 +-
.../metadata/TabValidationsMetadata.java | 4 +-
.../tr/table/metadata/TabVersionMetadata.java | 4 +-
.../gwtservice/shared/tr/type/Agencies.java | 42 +-
.../gwtservice/shared/tr/type/Codelist.java | 47 +-
.../td/gwtservice/shared/tr/type/Dataset.java | 42 +-
.../shared/tr/union/UnionColumnsMapping.java | 4 +-
.../shared/tr/union/UnionSession.java | 4 +-
.../uriresolver/UriResolverSession.java | 4 +-
.../td/gwtservice/shared/user/UserInfo.java | 15 +-
.../client/GwtTestTDGWTService.java | 4 +-
.../td/gwtservice/client/TestMetadata.java | 4 +-
.../td/gwtservice/client/TestService.java | 4 +-
.../gwtservice/client/TestServiceColumn.java | 4 +-
.../client/TestServiceOperations.java | 4 +-
.../gwtservice/client/TestServiceTable.java | 4 +-
254 files changed, 4030 insertions(+), 6810 deletions(-)
diff --git a/.classpath b/.classpath
index 06579f5..c06f2b4 100644
--- a/.classpath
+++ b/.classpath
@@ -1,12 +1,12 @@
-
+
-
+
@@ -33,5 +33,5 @@
-
+
diff --git a/distro/changelog.xml b/distro/changelog.xml
index b54ca2c..3a5cfce 100644
--- a/distro/changelog.xml
+++ b/distro/changelog.xml
@@ -1,4 +1,8 @@
+
+ Support Java 8 compatibility [ticket #8580]
+
Added DataMiner [issue #6548]
diff --git a/pom.xml b/pom.xml
index 07c28d8..1e8093f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
4.0.0
org.gcube.portlets.user
tabular-data-gwt-service
- 2.16.0-SNAPSHOT
+ 2.17.0-SNAPSHOT
tabular-data-gwt-service
tabular-data-gwt-service allows communication between the GUI and services
@@ -40,6 +40,10 @@
distro
config
+
+ 1.7
+
+
2.6.1
3.3.2
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java
index adf4c44..3b554c5 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTService.java
@@ -93,18 +93,9 @@ import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
*
* Implements the basic interfaces for access to the service.
*
- *
- * Allows:
- *
- * - Access to Tabular Resources
- * - Import of CSV file
- * - Import from SDMX Registry
- *
- *
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
*
+ * @author Giancarlo Panichi
+ *
*/
@RemoteServiceRelativePath("TDGWTService")
public interface TDGWTService extends RemoteService {
@@ -112,8 +103,9 @@ public interface TDGWTService extends RemoteService {
/**
* Get informations on the current user
*
- * @return
+ * @return User Info
* @throws TDGWTServiceException
+ * Exception
*/
public UserInfo hello() throws TDGWTServiceException;
@@ -121,7 +113,9 @@ public interface TDGWTService extends RemoteService {
* Set locale on server
*
* @param infoLocale
+ * Info locale
* @throws TDGWTServiceException
+ * exception
*/
public void setLocale(InfoLocale infoLocale) throws TDGWTServiceException;
@@ -130,31 +124,44 @@ public interface TDGWTService extends RemoteService {
*
* @throws TDGWTServiceException
*/
+ /**
+ *
+ * @return Pendings Tasks
+ * @throws TDGWTServiceException
+ * Exception
+ */
public Integer pendingTasksRetrieve() throws TDGWTServiceException;
/**
* Restore UI session
*
- * @return
+ *
+ * @param startTRId
+ * Start TR id
+ * @return Tabular Resource id
* @throws TDGWTServiceException
+ * exception
*/
public TRId restoreUISession(TRId startTRId) throws TDGWTServiceException;
/**
* Resolve Uri
*
+ *
* @param uriResolverSession
- * @return
+ * Uri resolver session
+ * @return Uri
* @throws TDGWTServiceException
+ * Exception
*/
- public String getUriFromResolver(UriResolverSession uriResolverSession)
- throws TDGWTServiceException;
+ public String getUriFromResolver(UriResolverSession uriResolverSession) throws TDGWTServiceException;
/**
* Get VRE Folder Id
*
* @return VRE Folder Id
* @throws TDGWTServiceException
+ * Exception
*/
public String getVREFolderIdByScope() throws TDGWTServiceException;
@@ -162,66 +169,72 @@ public interface TDGWTService extends RemoteService {
/**
* Get list of PeriodDataType
*
- * @return
+ * @return List of period data type
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getPeriodDataTypes()
- throws TDGWTServiceException;
+ public ArrayList getPeriodDataTypes() throws TDGWTServiceException;
/**
* Retrieves the hierarchical relationship for the specific period data type
*
* @param periodDataType
- * @return
+ * Period data type
+ * @return List of period data type
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getHierarchicalRelationshipForPeriodDataTypes(
- PeriodDataType periodDataType) throws TDGWTServiceException;
+ public ArrayList getHierarchicalRelationshipForPeriodDataTypes(PeriodDataType periodDataType)
+ throws TDGWTServiceException;
// ValueDataFormats
/**
* Retrieve ValueDataFormat for all ColumnDataType
*
- * @return
+ * @return Map
* @throws TDGWTServiceException
+ * Exception
*/
- public HashMap> getValueDataFormatsMap()
- throws TDGWTServiceException;
+ public HashMap> getValueDataFormatsMap() throws TDGWTServiceException;
/**
* Retrieve ValueDataFormat for specific ColumnDataType
*
* @param columnDataType
- * @return
+ * Column data type
+ * @return List of value data format
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getValueDataFormatsOfColumnDataType(
- ColumnDataType columnDataType) throws TDGWTServiceException;
+ public ArrayList getValueDataFormatsOfColumnDataType(ColumnDataType columnDataType)
+ throws TDGWTServiceException;
// TabularResource
/**
* Get current TRId
*
- * @return
+ * @return TR id
* @throws TDGWTServiceException
+ * Exception
*/
public TRId getCurrentTRId() throws TDGWTServiceException;
/**
* Get information on the current tabular resource don't call service
*
- * @return
+ * @return Tabular resource
* @throws TDGWTServiceException
+ * Exception
*/
- public TabResource getInSessionTabResourceInfo()
- throws TDGWTServiceException;
+ public TabResource getInSessionTabResourceInfo() throws TDGWTServiceException;
/**
* Get informations on the current tabular resource call service
*
*
- * @return
+ * @return Tabular resource
* @throws TDGWTServiceException
+ * Exception
*/
public TabResource getTabResourceInformation() throws TDGWTServiceException;
@@ -229,71 +242,84 @@ public interface TDGWTService extends RemoteService {
* Set tabular resource information
*
* @param tabResource
+ * Tabular resource
* @throws TDGWTServiceException
+ * Exception
*/
- public void setTabResourceInformation(TabResource tabResource)
- throws TDGWTServiceException;
+ public void setTabResourceInformation(TabResource tabResource) throws TDGWTServiceException;
/**
* Set tabular resource to final
*
* @param trId
+ * Tabular Resource id
* @throws TDGWTServiceException
+ * Exception
*/
public void setTabResourceToFinal(TRId trId) throws TDGWTServiceException;
/**
* Get informations on tabular resource
*
- * @return
+ * @param trId
+ * TR id
+ * @return Tabular resource
* @throws TDGWTServiceException
+ * Exception
*/
- public TabResource getTabResourceInformation(TRId trId)
- throws TDGWTServiceException;
+ public TabResource getTabResourceInformation(TRId trId) throws TDGWTServiceException;
/**
* Return true if is a valid tabular resource
*
* @param trId
- * @return
+ * Tabular Resouce id
+ * @return True if is valid
* @throws TDGWTServiceException
+ * Exception
*/
- public Boolean isTabularResourceValid(TRId trId)
- throws TDGWTServiceException;
+ public Boolean isTabularResourceValid(TRId trId) throws TDGWTServiceException;
/**
* Get creation date on tabular resource
*
- * @return
+ * @param trId
+ * TR id
+ * @return TR id
* @throws TDGWTServiceException
+ * Exception
*/
public String getTRCreationDate(TRId trId) throws TDGWTServiceException;
/**
* Set current tabular resource
*
- * @param tr
+ * @param tabResource
+ * Tabular Resource
* @throws TDGWTServiceException
+ * Exception
*/
- public void setTabResource(TabResource tabResource)
- throws TDGWTServiceException;
+ public void setTabResource(TabResource tabResource) throws TDGWTServiceException;
/**
* Creates a TabResource on Service
*
* @param tabResource
- * @return
+ * Tabular Resource
+ * @return Tabukar Resource
* @throws TDGWTServiceException
+ * Exception
*/
- public TabResource createTabularResource(TabResource tabResource)
- throws TDGWTServiceException;
+ public TabResource createTabularResource(TabResource tabResource) throws TDGWTServiceException;
/**
* Return Last Table
*
* @param trId
- * @return
+ * TR id
+ * @return Table data
* @throws TDGWTServiceException
+ * Exception
*/
public TableData getLastTable(TRId trId) throws TDGWTServiceException;
@@ -301,8 +327,10 @@ public interface TDGWTService extends RemoteService {
* Return Table
*
* @param trId
- * @return
+ * TR id
+ * @return Table data
* @throws TDGWTServiceException
+ * Exception
*/
public TableData getTable(TRId trId) throws TDGWTServiceException;
@@ -310,37 +338,41 @@ public interface TDGWTService extends RemoteService {
* Return Metadata of Table
*
* @param trId
- * @return
+ * TR id
+ * @return List of tabular metadata
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTableMetadata(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getTableMetadata(TRId trId) throws TDGWTServiceException;
/**
* Return Metadata of Tabular Resources
*
* @param trId
- * @return
+ * TR id
+ * @return List of tabular resource meta data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTRMetadata(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getTRMetadata(TRId trId) throws TDGWTServiceException;
/**
* Retreive a ColumnData that is a connection to external table
*
* @param refColumn
- * @return
+ * Reference column
+ * @return Column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ColumnData getConnection(RefColumn refColumn)
- throws TDGWTServiceException;
+ public ColumnData getConnection(RefColumn refColumn) throws TDGWTServiceException;
/**
* Close All Tabular Resources
*
*
* @throws TDGWTServiceException
+ * Exception
*/
public void closeAllTabularResources() throws TDGWTServiceException;
@@ -348,123 +380,142 @@ public interface TDGWTService extends RemoteService {
* Close Tabular Resource with TRId equals to closeTRId and open if not null
* that with TRId equals to openTRId
*
+ *
* @param openTRId
+ * Open TR id
+ * @param closeTRId
+ * Close TR id
* @throws TDGWTServiceException
+ * Exception
*/
- public void closeTabularResourceAndOpen(TRId openTRId, TRId closeTRId)
- throws TDGWTServiceException;
+ public void closeTabularResourceAndOpen(TRId openTRId, TRId closeTRId) throws TDGWTServiceException;
/**
* Close Tabular Resource with TRId equals to closeTRId
*
* @param closeTRId
+ * Close TR id
* @throws TDGWTServiceException
+ * Exception
*/
- public void closeTabularResource(TRId closeTRId)
- throws TDGWTServiceException;
+ public void closeTabularResource(TRId closeTRId) throws TDGWTServiceException;
/**
* Set Current Tabular Resource that passed as parameter if not null
*
* @param activeTRId
- * @return
+ * Active TR id
+ * @return TR id
* @throws TDGWTServiceException
+ * Exception
*/
- public TRId setActiveTabularResource(TRId activeTRId)
- throws TDGWTServiceException;
+ public TRId setActiveTabularResource(TRId activeTRId) throws TDGWTServiceException;
// Task
/**
* Resubmit task
*
* @param taskResubmitSession
- * @return
+ * Session
+ * @return Task
* @throws TDGWTServiceException
+ * Exception
*/
- public String startTaskResubmit(TaskResubmitSession taskResubmitSession)
- throws TDGWTServiceException;
+ public String startTaskResubmit(TaskResubmitSession taskResubmitSession) throws TDGWTServiceException;
/**
* Resume task
*
* @param taskResumeSession
- * @return
+ * Session
+ * @return Task
* @throws TDGWTServiceException
+ * Exception
*/
- public String startTaskResume(TaskResumeSession taskResumeSession)
- throws TDGWTServiceException;
+ public String startTaskResume(TaskResumeSession taskResumeSession) throws TDGWTServiceException;
// Validations
/**
* Returns validations contained in the tasks
*
* @param trId
- * @return
+ * TR id
+ * @return Validations
* @throws TDGWTServiceException
+ * Exception
*/
- public ValidationsTasksMetadata getValidationsTasksMetadata(TRId trId)
- throws TDGWTServiceException;
+ public ValidationsTasksMetadata getValidationsTasksMetadata(TRId trId) throws TDGWTServiceException;
/**
* Return Validations Metadata of Table
*
* @param trId
- * @return
+ * TR id
+ * @return Validations meta data
* @throws TDGWTServiceException
+ * Exception
*/
- public TabValidationsMetadata getTableValidationsMetadata(TRId trId)
- throws TDGWTServiceException;
+ public TabValidationsMetadata getTableValidationsMetadata(TRId trId) throws TDGWTServiceException;
/**
- * Returns ArrayList that contains all the validation columns of
- * columnName
+ * Returns ArrayList of ColumnData that contains all the validation columns
+ * of columnName
*
* @param trId
+ * TR id
* @param columnName
- * @return
+ * Column name
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getValidationColumns(TRId trId,
- String columnName) throws TDGWTServiceException;
+ public ArrayList getValidationColumns(TRId trId, String columnName) throws TDGWTServiceException;
/**
- * Returns ArrayList that contains all the validation columns of
- * columnLocalId
+ * Returns ArrayListof ColumnData that contains all the validation columns
+ * of columnLocalId
*
* @param columnLocalId
+ * Column local id
* @param trId
- * @return
+ * TR id
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getValidationColumns(String columnLocalId,
- TRId trId) throws TDGWTServiceException;
+ public ArrayList getValidationColumns(String columnLocalId, TRId trId) throws TDGWTServiceException;
/**
* Remove Validations from tabular resource
*
* @param trId
- * @return
+ * TR id
+ * @return Deleted
* @throws TDGWTServiceException
+ * Exception
*/
- public String startValidationsDelete(TRId trId)
- throws TDGWTServiceException;
+ public String startValidationsDelete(TRId trId) throws TDGWTServiceException;
// RollBack
/**
* Call rollback on tabular resource
*
* @param rollBackSession
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startRollBack(RollBackSession rollBackSession)
- throws TDGWTServiceException;
+ public String startRollBack(RollBackSession rollBackSession) throws TDGWTServiceException;
/**
* Call discard operation on tabular resource
*
* @param trId
- * @return
+ * TR id
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
public String startDiscard(TRId trId) throws TDGWTServiceException;
@@ -473,28 +524,30 @@ public interface TDGWTService extends RemoteService {
* Share tabular resource
*
* @param shareInfo
- * @return
+ * Share info
* @throws TDGWTServiceException
+ * Exception
*/
- public void setShare(ShareTabResource shareInfo)
- throws TDGWTServiceException;
+ public void setShare(ShareTabResource shareInfo) throws TDGWTServiceException;
/**
* Share template
*
+ *
* @param shareTemplate
- * @return
+ * Share template
* @throws TDGWTServiceException
+ * Exception
*/
- public void setShareTemplate(ShareTemplate shareTemplate)
- throws TDGWTServiceException;
+ public void setShareTemplate(ShareTemplate shareTemplate) throws TDGWTServiceException;
/**
* Share Rule
*
* @param shareRule
- * @return
+ * Share rule
* @throws TDGWTServiceException
+ * Exception
*/
public void setShareRule(ShareRule shareRule) throws TDGWTServiceException;
@@ -503,38 +556,42 @@ public interface TDGWTService extends RemoteService {
/**
* Return all tabular resource of a user
*
- * @return
+ *
+ * @return List of tabular resource
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTabularResources()
- throws TDGWTServiceException;
+ public ArrayList getTabularResources() throws TDGWTServiceException;
/**
* Return all tabular resource of a user and last tables
*
- * @return
+ * @return List of Tabular Resource
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTabularResourcesAndLastTables()
- throws TDGWTServiceException;
+ public ArrayList getTabularResourcesAndLastTables() throws TDGWTServiceException;
// Clone
/**
* Start clone tabular resource
*
* @param cloneTabularResourceSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startCloneTabularResource(
- CloneTabularResourceSession cloneTabularResourceSession)
+ public String startCloneTabularResource(CloneTabularResourceSession cloneTabularResourceSession)
throws TDGWTServiceException;
//
/**
* Initialize Codelists Paging Loader
*
+ *
* @throws TDGWTServiceException
+ * Exception
*/
public void setCodelistsPagingLoader() throws TDGWTServiceException;
@@ -542,59 +599,69 @@ public interface TDGWTService extends RemoteService {
* Retrieves a portion of Codelists
*
* @param codelistPagingLoadConfig
- * @return
+ * Paging loading config
+ * @return Page result
* @throws TDGWTServiceException
+ * Exception
*/
- public CodelistPagingLoadResult getCodelistsPagingLoader(
- CodelistPagingLoadConfig codelistPagingLoadConfig)
+ public CodelistPagingLoadResult getCodelistsPagingLoader(CodelistPagingLoadConfig codelistPagingLoadConfig)
throws TDGWTServiceException;;
/**
* Set open session for return all tabular resource of a user
*
- * @param s
+ *
+ * @param tdOpenSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void tdOpen(TDOpenSession tdOpenSession)
- throws TDGWTServiceException;
+ public void tdOpen(TDOpenSession tdOpenSession) throws TDGWTServiceException;
/**
* Retrieve Time Table Id
*
+ *
* @param periodDataType
- * @return
+ * Period data type
+ * @return Table id
* @throws TDGWTServiceException
+ * Exception
*/
- public Long getTimeTableId(PeriodDataType periodDataType)
- throws TDGWTServiceException;
+ public Long getTimeTableId(PeriodDataType periodDataType) throws TDGWTServiceException;
/**
* Retrieves the list of columns in the current table
*
- * @return
+ *
+ * @return List of column data
* @throws TDGWTServiceException
+ * Excption
*/
public ArrayList getColumns() throws TDGWTServiceException;
/**
* Retrieves the list of columns in the table provided by trId
*
- * @return
+ * @param trId
+ * TR id
+ * @return List of Column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getColumns(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getColumns(TRId trId) throws TDGWTServiceException;
/**
* Retrieves the list of columns in the table provided by trId view columns
* included
*
* @param trId
- * @return
+ * TR id
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getColumnWithViewColumnIncluded(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getColumnWithViewColumnIncluded(TRId trId) throws TDGWTServiceException;
/**
* Retrieves the list of columns in the table provided by trId only view
@@ -603,56 +670,71 @@ public interface TDGWTService extends RemoteService {
*
*
* @param trId
- * @return
+ * TR id
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getColumnWithOnlyViewColumnInRel(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getColumnWithOnlyViewColumnInRel(TRId trId) throws TDGWTServiceException;
/**
* Retrieves the list of columns in the table provided by trId for
* statistical
*
* @param trId
- * @return
+ * TR id
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getColumnsForStatistical(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getColumnsForStatistical(TRId trId) throws TDGWTServiceException;
/**
* Retrieves the list of columns in the table provided by trId only CODE and
* CODENAME types
*
- * @return
+ * @param trId
+ * TR id
+ * @return List of column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getColumnsForDimension(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getColumnsForDimension(TRId trId) throws TDGWTServiceException;
/**
* Retrieves information about a specific column of specific table
*
- * @return
+ * @param trId
+ * TR id
+ * @param columnName
+ * Column name
+ * @return Column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ColumnData getColumn(TRId trId, String columnName)
- throws TDGWTServiceException;
+ public ColumnData getColumn(TRId trId, String columnName) throws TDGWTServiceException;
/**
* Retrieves information about a specific column of specific table
*
- * @return
+ *
+ * @param columnLocalId
+ * Column Local Id
+ * @param trId
+ * TR id
+ * @return Column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ColumnData getColumn(String columnLocalId, TRId trId)
- throws TDGWTServiceException;
+ public ColumnData getColumn(String columnLocalId, TRId trId) throws TDGWTServiceException;
/**
* Remove Tabular Resource From Service
*
* @param trId
+ * TR id
* @throws TDGWTServiceException
+ * Exception
*/
public void removeTabularResource(TRId trId) throws TDGWTServiceException;
@@ -661,133 +743,150 @@ public interface TDGWTService extends RemoteService {
/**
* Get Codelist on a registry
*
- * @return
+ * @return List of codelist
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getCodelists() throws TDGWTServiceException;
/**
* Get Datasets on a registry
*
- * @return
+ * @return List of dataset
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getDatasets() throws TDGWTServiceException;
/**
* Get Agecies on a registry
*
- * @return
+ * @return List of Agencies
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getAgencies() throws TDGWTServiceException;
/**
* Set SDMX Registry Source
*
- * @param s
+ *
+ * @param sdmxRegistrySource
+ * SDMX registry source
* @throws TDGWTServiceException
+ * Exception
*/
- public void setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource)
- throws TDGWTServiceException;
+ public void setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource) throws TDGWTServiceException;
// Import SDMX
/**
* Start SDMX Import and invokes the client library
*
* @param sdmxImportSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startSDMXImport(SDMXImportSession sdmxImportSession)
- throws TDGWTServiceException;
+ public String startSDMXImport(SDMXImportSession sdmxImportSession) throws TDGWTServiceException;
// CSV Import
/**
*
- * @param s
+ * @param csvImportSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void setCSVSession(CSVImportSession csvImportSession)
- throws TDGWTServiceException;
+ public void setCSVSession(CSVImportSession csvImportSession) throws TDGWTServiceException;
/**
*
- * @param s
+ * @param csvImportSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void getFileFromWorkspace(CSVImportSession csvImportSession)
- throws TDGWTServiceException;
+ public void getFileFromWorkspace(CSVImportSession csvImportSession) throws TDGWTServiceException;
/**
*
- * @return
+ * @return Available charset list
* @throws TDGWTServiceException
+ * Exception
*/
- public AvailableCharsetList getAvailableCharset()
- throws TDGWTServiceException;
+ public AvailableCharsetList getAvailableCharset() throws TDGWTServiceException;
/**
*
* @param encoding
+ * Encoding
* @param headerPresence
+ * Header presence
* @param delimiter
+ * Delimiter
* @param comment
- * @return
+ * Comment
+ * @return List of configuration
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList configureCSVParser(String encoding,
- HeaderPresence headerPresence, char delimiter, char comment)
- throws TDGWTServiceException;
+ public ArrayList configureCSVParser(String encoding, HeaderPresence headerPresence, char delimiter,
+ char comment) throws TDGWTServiceException;
/**
*
* @param errorsLimit
- * @return
+ * Error limit
+ * @return Session
* @throws TDGWTServiceException
+ * Exception
*/
- public CheckCSVSession checkCSV(long errorsLimit)
- throws TDGWTServiceException;
+ public CheckCSVSession checkCSV(long errorsLimit) throws TDGWTServiceException;
/**
* Start CSV Import and invokes the client library
*
- * @param s
+ * @param csvImportSession
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startCSVImport(CSVImportSession csvImportSession)
- throws TDGWTServiceException;
+ public String startCSVImport(CSVImportSession csvImportSession) throws TDGWTServiceException;
// Export CSV
/**
* Available charset for export
*
- * @return
+ * @return Available charset list
* @throws TDGWTServiceException
+ * Exception
*/
- public AvailableCharsetList getAvailableCharsetForExport()
- throws TDGWTServiceException;
+ public AvailableCharsetList getAvailableCharsetForExport() throws TDGWTServiceException;
/**
* Start CSV Export and invokes the client library
*
* @param csvExportSession
- * @return
+ * Sesion
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startCSVExport(CSVExportSession csvExportSession)
- throws TDGWTServiceException;
+ public String startCSVExport(CSVExportSession csvExportSession) throws TDGWTServiceException;
// Export SDMX
/**
* Start SDMX Export and invokes the client library
*
* @param exportSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startSDMXExport(SDMXExportSession exportSession)
- throws TDGWTServiceException;
+ public String startSDMXExport(SDMXExportSession exportSession) throws TDGWTServiceException;
// Export Template SDMX
/**
@@ -795,24 +894,25 @@ public interface TDGWTService extends RemoteService {
* Start SDMX Template Export and invokes the client library
*
* @param sdmxTemplateExportSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startSDMXTemplateExport(
- SDMXTemplateExportSession sdmxTemplateExportSession)
+ public String startSDMXTemplateExport(SDMXTemplateExportSession sdmxTemplateExportSession)
throws TDGWTServiceException;
-
// Export JSON
/**
* Start JSON Export and invokes the client library
*
* @param jsonExportSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startJSONExport(JSONExportSession jsonExportSession)
- throws TDGWTServiceException;
+ public String startJSONExport(JSONExportSession jsonExportSession) throws TDGWTServiceException;
// Table Operations
@@ -820,53 +920,57 @@ public interface TDGWTService extends RemoteService {
* Start change table type
*
* @param changeTableTypeSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startChangeTableType(
- ChangeTableTypeSession changeTableTypeSession)
- throws TDGWTServiceException;
+ public String startChangeTableType(ChangeTableTypeSession changeTableTypeSession) throws TDGWTServiceException;
/**
* Start Union and invokes the client library
*
* @param unionSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startUnion(UnionSession unionSession)
- throws TDGWTServiceException;
+ public String startUnion(UnionSession unionSession) throws TDGWTServiceException;
// Rows Operations
/**
* Start edit row or add row
*
* @param editRowSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startEditRow(EditRowSession editRowSession)
- throws TDGWTServiceException;
+ public String startEditRow(EditRowSession editRowSession) throws TDGWTServiceException;
/**
* Start delete rows
*
* @param deleteRowsSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startDeleteRows(DeleteRowsSession deleteRowsSession)
- throws TDGWTServiceException;
+ public String startDeleteRows(DeleteRowsSession deleteRowsSession) throws TDGWTServiceException;
/**
* Start operation on duplicates
*
* @param duplicatesSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startDuplicates(DuplicatesSession duplicatesSession)
- throws TDGWTServiceException;
+ public String startDuplicates(DuplicatesSession duplicatesSession) throws TDGWTServiceException;
// Column Operation
@@ -875,53 +979,56 @@ public interface TDGWTService extends RemoteService {
*
*
* @param changeColumnTypeSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startChangeColumnType(
- ChangeColumnTypeSession changeColumnTypeSession)
- throws TDGWTServiceException;
+ public String startChangeColumnType(ChangeColumnTypeSession changeColumnTypeSession) throws TDGWTServiceException;
/**
* Start add column
*
* @param addColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startAddColumn(AddColumnSession addColumnSession)
- throws TDGWTServiceException;
+ public String startAddColumn(AddColumnSession addColumnSession) throws TDGWTServiceException;
/**
* Start delete column
*
* @param deleteColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startDeleteColumn(DeleteColumnSession deleteColumnSession)
- throws TDGWTServiceException;
+ public String startDeleteColumn(DeleteColumnSession deleteColumnSession) throws TDGWTServiceException;
/**
* Start change the column label
*
* @param labelColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Excetpion
*/
- public String startLabelColumn(LabelColumnSession labelColumnSession)
- throws TDGWTServiceException;
+ public String startLabelColumn(LabelColumnSession labelColumnSession) throws TDGWTServiceException;
/**
* Start change columns position
*
*
* @param changeColumnsPositionSession
- * @return
+ * Session
* @throws TDGWTServiceException
+ * Exeption
*/
- public void startChangeColumnsPosition(
- ChangeColumnsPositionSession changeColumnsPositionSession)
+ public void startChangeColumnsPosition(ChangeColumnsPositionSession changeColumnsPositionSession)
throws TDGWTServiceException;
/**
@@ -960,8 +1067,11 @@ public interface TDGWTService extends RemoteService {
*
*
* @param occurrencesForReplaceBatchColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
+ *
*/
public ArrayList getOccurrencesForBatchReplace(
OccurrencesForReplaceBatchColumnSession occurrencesForReplaceBatchColumnSession)
@@ -971,11 +1081,12 @@ public interface TDGWTService extends RemoteService {
* Start batch replace on column
*
* @param replaceBatchColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startReplaceBatchColumn(
- ReplaceBatchColumnSession replaceBatchColumnSession)
+ public String startReplaceBatchColumn(ReplaceBatchColumnSession replaceBatchColumnSession)
throws TDGWTServiceException;
// Replace Operation
@@ -983,21 +1094,23 @@ public interface TDGWTService extends RemoteService {
* Start replace the column value
*
* @param replaceColumnSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startReplaceColumn(ReplaceColumnSession replaceColumnSession)
- throws TDGWTServiceException;
+ public String startReplaceColumn(ReplaceColumnSession replaceColumnSession) throws TDGWTServiceException;
/**
* Start replace column by external tabular resource
*
* @param replaceByExternalSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startReplaceByExternal(
- ReplaceByExternalSession replaceByExternalSession)
+ public String startReplaceByExternal(ReplaceByExternalSession replaceByExternalSession)
throws TDGWTServiceException;
// Templates
@@ -1005,60 +1118,64 @@ public interface TDGWTService extends RemoteService {
* Retrieves templates of user
*
*
- * @return
+ * @return List of template data
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getTemplates() throws TDGWTServiceException;
/**
*
- * Retrieves templates for export as DSD in SDMX registry.
- * Template must have at least a measure column.
+ * Retrieves templates for export as DSD in SDMX registry. Template must
+ * have at least a measure column.
*
- * @return
+ * @return List of template data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTemplatesForDSDExport()
- throws TDGWTServiceException;
+ public ArrayList getTemplatesForDSDExport() throws TDGWTServiceException;
-
/**
*
- * Retrieves the columns of the specific template.
- * Template must have at least a measure column.
+ * Retrieves the columns of the specific template. Template must have at
+ * least a measure column.
*
- * @return
+ * @param templateId
+ * Template id
+ * @return List of template column data
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getTemplateColumnsData(String templateId)
- throws TDGWTServiceException;
+ public ArrayList getTemplateColumnsData(String templateId) throws TDGWTServiceException;
-
/**
* Start Apply Template
*
* @param templateApplySession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startTemplateApply(TemplateApplySession templateApplySession)
- throws TDGWTServiceException;
+ public String startTemplateApply(TemplateApplySession templateApplySession) throws TDGWTServiceException;
/**
* Start Delete Template
*
* @param templateDeleteSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void templateDelete(TemplateDeleteSession templateDeleteSession)
- throws TDGWTServiceException;
+ public void templateDelete(TemplateDeleteSession templateDeleteSession) throws TDGWTServiceException;
// Locales
/**
* Retrieve locales supported
*
- * @return
+ * @return List of locale
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getLocales() throws TDGWTServiceException;
@@ -1066,8 +1183,9 @@ public interface TDGWTService extends RemoteService {
/**
* Retrieve licences supported
*
- * @return
+ * @return List of licences
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getLicences() throws TDGWTServiceException;
@@ -1075,8 +1193,9 @@ public interface TDGWTService extends RemoteService {
/**
* Retrieve History
*
- * @return
+ * @return Operation history
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getHistory() throws TDGWTServiceException;
@@ -1084,27 +1203,31 @@ public interface TDGWTService extends RemoteService {
* Retrieve History for specific tabular resource
*
* @param trId
- * @return
+ * TR id
+ * @return Operation history
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getHistory(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getHistory(TRId trId) throws TDGWTServiceException;
/**
*
- * @return
+ *
+ * @return Operation history
* @throws TDGWTServiceException
+ * Exception
*/
public OpHistory getLastOperationInfo() throws TDGWTServiceException;
/**
*
* @param trId
- * @return
+ * TR id
+ * @return Operation history
* @throws TDGWTServiceException
+ * Exception
*/
- public OpHistory getLastOperationInfo(TRId trId)
- throws TDGWTServiceException;
+ public OpHistory getLastOperationInfo(TRId trId) throws TDGWTServiceException;
// Helper Extract Codelist
/**
@@ -1112,53 +1235,56 @@ public interface TDGWTService extends RemoteService {
*
*
* @param extractCodelistSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startExtractCodelist(
- ExtractCodelistSession extractCodelistSession)
- throws TDGWTServiceException;
+ public String startExtractCodelist(ExtractCodelistSession extractCodelistSession) throws TDGWTServiceException;
// Helper Codelist Mapping Import
/**
*
* @param codelistMappingSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void setCodelistMappingSession(
- CodelistMappingSession codelistMappingSession)
- throws TDGWTServiceException;
+ public void setCodelistMappingSession(CodelistMappingSession codelistMappingSession) throws TDGWTServiceException;
/**
*
* @param codelistMappingSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void getFileFromWorkspace(
- CodelistMappingSession codelistMappingSession)
- throws TDGWTServiceException;
+ public void getFileFromWorkspace(CodelistMappingSession codelistMappingSession) throws TDGWTServiceException;
/**
* Start Codelist Mapping Import
*
* @param codelistMappingSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startCodelistMappingImport(
- CodelistMappingSession codelistMappingSession)
+ public String startCodelistMappingImport(CodelistMappingSession codelistMappingSession)
throws TDGWTServiceException;
// Normalization
/**
* Start Normalization and invokes the client library
*
+ *
* @param normalizationSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startNormalization(NormalizationSession normalizationSession)
- throws TDGWTServiceException;
+ public String startNormalization(NormalizationSession normalizationSession) throws TDGWTServiceException;
// Denormalization
/**
@@ -1166,117 +1292,130 @@ public interface TDGWTService extends RemoteService {
*
*
* @param denormalizationSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startDenormalization(
- DenormalizationSession denormalizationSession)
- throws TDGWTServiceException;
+ public String startDenormalization(DenormalizationSession denormalizationSession) throws TDGWTServiceException;
// Operation Monitor
/**
* Get Operation Monitor
*
- * @return
+ *
+ * @param operationMonitorSession
+ * Session
+ * @return Operation Monitor
* @throws TDGWTServiceException
+ * Exception
*/
- public OperationMonitor getOperationMonitor(
- OperationMonitorSession operationMonitorSession)
+ public OperationMonitor getOperationMonitor(OperationMonitorSession operationMonitorSession)
throws TDGWTServiceException;
/**
* Get List of Background Operation Monitor
*
* @param backgroundOperationMonitorSession
- * @return
+ * Session
+ * @return List of Operation Monitor
* @throws TDGWTServiceException
+ * Exception
*/
public ArrayList getBackgroundOperationMonitor(
- BackgroundOperationMonitorSession backgroundOperationMonitorSession)
- throws TDGWTServiceException;
+ BackgroundOperationMonitorSession backgroundOperationMonitorSession) throws TDGWTServiceException;
/**
*
* Retrieve Background Operation Monitor for specific task
*
* @param operationMonitorSession
- * @return
+ * Session
+ * @return Operation monitor
* @throws TDGWTServiceException
+ * Exception
*/
public OperationMonitor getBackgroundOperationMonitorForSpecificTask(
- OperationMonitorSession operationMonitorSession)
- throws TDGWTServiceException;
+ OperationMonitorSession operationMonitorSession) throws TDGWTServiceException;
// File Upload Monitor
/**
* Get File Upload Monitor during the file upload operation in Import CSV
*
- * @return
+ * @return File uploader monitor
* @throws TDGWTServiceException
+ * Exception
*/
- public FileUploadMonitor getFileUploadMonitor()
- throws TDGWTServiceException;
+ public FileUploadMonitor getFileUploadMonitor() throws TDGWTServiceException;
// Resources TD
/**
* Retrieves the resources of a specific tabular resource
*
* @param trId
- * @return
+ * TR id
+ * @return List of Resource TD description
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getResourcesTD(TRId trId)
- throws TDGWTServiceException;
+ public ArrayList getResourcesTD(TRId trId) throws TDGWTServiceException;
/**
* Retrieves the resources of a specific tabular resource by type
*
* @param trId
+ * TR id
* @param resourceTDType
- * @return
+ * Resource TD type
+ * @return List of Resource TD descriptor
* @throws TDGWTServiceException
+ * Exception
*/
- public ArrayList getResourcesTDByType(TRId trId,
- ResourceTDType resourceTDType) throws TDGWTServiceException;
+ public ArrayList getResourcesTDByType(TRId trId, ResourceTDType resourceTDType)
+ throws TDGWTServiceException;
/**
* Remove resource
*
* @param removeResourceSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void removeResource(RemoveResourceSession removeResourceSession)
- throws TDGWTServiceException;
+ public void removeResource(RemoveResourceSession removeResourceSession) throws TDGWTServiceException;
/**
* Save resource on Workspace
*
* @param saveResourceSession
+ * Session
* @throws TDGWTServiceException
+ * Exception
*/
- public void saveResource(SaveResourceSession saveResourceSession)
- throws TDGWTServiceException;
+ public void saveResource(SaveResourceSession saveResourceSession) throws TDGWTServiceException;
// GIS MAP
/**
* Start Map Creation and invokes the client library
*
* @param mapCreationSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startMapCreation(MapCreationSession mapCreationSession)
- throws TDGWTServiceException;
+ public String startMapCreation(MapCreationSession mapCreationSession) throws TDGWTServiceException;
// DataMiner
/**
*
* @param dataMinerOperationSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startDataMinerOperation(
- DataMinerOperationSession dataMinerOperationSession)
+ public String startDataMinerOperation(DataMinerOperationSession dataMinerOperationSession)
throws TDGWTServiceException;
// Chart
@@ -1284,35 +1423,37 @@ public interface TDGWTService extends RemoteService {
* Start Chart Top Rating Creation and invokes the client library
*
* @param chartTopRatingSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startChartTopRating(
- ChartTopRatingSession chartTopRatingSession)
- throws TDGWTServiceException;
+ public String startChartTopRating(ChartTopRatingSession chartTopRatingSession) throws TDGWTServiceException;
// Geospatial
/**
* Start Geospatial Coordinates Creation
*
* @param geospatialCreateCoordinatesSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
public String startGeospatialCreateCoordinates(
- GeospatialCreateCoordinatesSession geospatialCreateCoordinatesSession)
- throws TDGWTServiceException;
+ GeospatialCreateCoordinatesSession geospatialCreateCoordinatesSession) throws TDGWTServiceException;
/**
* Start Downscale C-Square
*
*
* @param geospatialDownscaleCSquareSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startGeospatialDownscaleCSquare(
- GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession)
+ public String startGeospatialDownscaleCSquare(GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession)
throws TDGWTServiceException;
// Geometry
@@ -1320,13 +1461,12 @@ public interface TDGWTService extends RemoteService {
* Point Creation
*
* @param geometryCreatePointSession
- * @return
+ * Session
+ * @return Operation
* @throws TDGWTServiceException
+ * Exception
*/
- public String startGeometryCreatePoint(
- GeometryCreatePointSession geometryCreatePointSession)
+ public String startGeometryCreatePoint(GeometryCreatePointSession geometryCreatePointSession)
throws TDGWTServiceException;
-
-
}
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java
index 1c3abf0..6be95ee 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/client/rpc/TDGWTServiceAsync.java
@@ -90,8 +90,8 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
/**
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java
index b138767..48115ee 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java
@@ -26,8 +26,8 @@ import org.slf4j.LoggerFactory;
/**
* Returns a representation of the csv file in JSON
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class CSVImportFileServlet extends HttpServlet {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CodelistMappingUploadServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CodelistMappingUploadServlet.java
index bb135d9..86a7a83 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CodelistMappingUploadServlet.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CodelistMappingUploadServlet.java
@@ -34,8 +34,8 @@ import com.allen_sauer.gwt.log.client.Log;
/**
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class CodelistMappingUploadServlet extends HttpServlet {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/LocalUploadServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/LocalUploadServlet.java
index a8138ee..6826eb6 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/LocalUploadServlet.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/LocalUploadServlet.java
@@ -34,8 +34,8 @@ import com.allen_sauer.gwt.log.client.Log;
/**
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class LocalUploadServlet extends HttpServlet {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveChartFileServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveChartFileServlet.java
index 1aeabe8..ac82142 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveChartFileServlet.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveChartFileServlet.java
@@ -23,8 +23,8 @@ import org.slf4j.LoggerFactory;
/**
* Returns a chart file from storage
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class RetrieveChartFileServlet extends HttpServlet {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveFileAndDiscoverMimeTypeServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveFileAndDiscoverMimeTypeServlet.java
index d06dff4..fe1300e 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveFileAndDiscoverMimeTypeServlet.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/RetrieveFileAndDiscoverMimeTypeServlet.java
@@ -20,8 +20,8 @@ import org.slf4j.LoggerFactory;
/**
* Returns a file from storage and discover mime type
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class RetrieveFileAndDiscoverMimeTypeServlet extends HttpServlet {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java
index 715de54..d717949 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java
@@ -25,8 +25,8 @@ import org.slf4j.LoggerFactory;
/**
*
- * @author "Giancarlo Panichi"
- * g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class SDMXClient {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionConstants.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionConstants.java
index 195272d..f79156e 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionConstants.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionConstants.java
@@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.gwtservice.server;
/**
*
- * @author "Giancarlo Panichi" email: g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class SessionConstants {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionOp.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionOp.java
index e723017..b9e8ebf 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionOp.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionOp.java
@@ -12,10 +12,10 @@ import org.slf4j.LoggerFactory;
/**
*
- * @author Giancarlo Panichi email: g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
*
- * @param
+ *
+ * @param Type
*/
public class SessionOp {
diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java
index d6b5076..190d1ef 100644
--- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java
+++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java
@@ -85,34 +85,20 @@ import org.slf4j.LoggerFactory;
/**
*
- * @author "Giancarlo Panichi" g.panichi@isti.cnr.it
+ * @author Giancarlo Panichi
+ *
*
*/
public class SessionUtil {
private static Logger logger = LoggerFactory.getLogger(SessionUtil.class);
- /**
- *
- * @param httpServletRequest
- * @return
- * @throws TDGWTServiceException
- */
- public static ServiceCredentials getServiceCredentials(
- HttpServletRequest httpServletRequest) throws TDGWTServiceException {
+ public static ServiceCredentials getServiceCredentials(HttpServletRequest httpServletRequest)
+ throws TDGWTServiceException {
return getServiceCredentials(httpServletRequest, null);
}
- /**
- *
- * @param httpServletRequest
- * @param scopeGroupId
- * @return
- * @throws TDGWTServiceException
- */
- public static ServiceCredentials getServiceCredentials(
- HttpServletRequest httpServletRequest, String scopeGroupId)
+ public static ServiceCredentials getServiceCredentials(HttpServletRequest httpServletRequest, String scopeGroupId)
throws TDGWTServiceException {
ServiceCredentials sCredentials = null;
@@ -127,8 +113,8 @@ public class SessionUtil {
InfoLocale infoLocale = getInfoLocale(httpServletRequest, null);
Locale locale = new Locale(infoLocale.getLanguage());
- ResourceBundle messages = ResourceBundle.getBundle(
- TDGWTServiceMessagesConstants.TDGWTServiceMessages, locale);
+ ResourceBundle messages = ResourceBundle.getBundle(TDGWTServiceMessagesConstants.TDGWTServiceMessages,
+ locale);
userName = Constants.DEFAULT_USER;
scope = Constants.DEFAULT_SCOPE;
@@ -168,8 +154,7 @@ public class SessionUtil {
GCubeUser gCubeUser = pContext.getCurrentUser(httpServletRequest);
if (gCubeUser == null) {
- String error = "Error retrieving gCubeUser in scope " + scope
- + ": " + gCubeUser;
+ String error = "Error retrieving gCubeUser in scope " + scope + ": " + gCubeUser;
logger.error(error);
throw new TDGWTServiceException(error);
}
@@ -177,8 +162,7 @@ public class SessionUtil {
userName = gCubeUser.getUsername();
if (userName == null || userName.isEmpty()) {
- String error = "Error retrieving username in scope " + scope
- + ": " + userName;
+ String error = "Error retrieving username in scope " + scope + ": " + userName;
logger.error(error);
throw new TDGWTServiceException(error);
}
@@ -186,8 +170,7 @@ public class SessionUtil {
token = pContext.getCurrentUserToken(scope, userName);
if (token == null || token.isEmpty()) {
- String error = "Error retrieving token for " + userName
- + " in " + scope + ": " + token;
+ String error = "Error retrieving token for " + userName + " in " + scope + ": " + token;
logger.error(error);
throw new TDGWTServiceException(error);
}
@@ -231,16 +214,14 @@ public class SessionUtil {
} else {
- groupId = String.valueOf(pContext
- .getCurrentGroupId(httpServletRequest));
+ groupId = String.valueOf(pContext.getCurrentGroupId(httpServletRequest));
groupName = pContext.getCurrentGroupName(httpServletRequest);
}
- sCredentials = new ServiceCredentials(userName, fullName, name,
- lastName, email, scope, groupId, groupName, userAvatarURL,
- token);
+ sCredentials = new ServiceCredentials(userName, fullName, name, lastName, email, scope, groupId, groupName,
+ userAvatarURL, token);
}
logger.debug("ServiceCredentials: " + sCredentials);
@@ -249,14 +230,8 @@ public class SessionUtil {
}
//
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @return
- */
- public static InfoLocale getInfoLocale(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+
+ public static InfoLocale getInfoLocale(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
InfoLocale infoLocale = null;
String scope = serviceCredentials.getScope();
HttpSession session = httpRequest.getSession();
@@ -276,20 +251,13 @@ public class SessionUtil {
infoLocale = new InfoLocale("en");
infoLocaleMap = new HashMap<>();
infoLocaleMap.put(scope, infoLocale);
- session.setAttribute(SessionConstants.INFO_LOCALE_MAP,
- infoLocaleMap);
+ session.setAttribute(SessionConstants.INFO_LOCALE_MAP, infoLocaleMap);
}
return infoLocale;
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param infoLocale
- */
- public static void setInfoLocale(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, InfoLocale infoLocale) {
+ public static void setInfoLocale(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ InfoLocale infoLocale) {
HttpSession httpSession = httpRequest.getSession();
String scope = serviceCredentials.getScope();
@SuppressWarnings("unchecked")
@@ -301,8 +269,7 @@ public class SessionUtil {
infoLocale = new InfoLocale("en");
infoLocaleMap = new HashMap<>();
infoLocaleMap.put(scope, infoLocale);
- httpSession.setAttribute(SessionConstants.INFO_LOCALE_MAP,
- infoLocaleMap);
+ httpSession.setAttribute(SessionConstants.INFO_LOCALE_MAP, infoLocaleMap);
}
@@ -314,117 +281,62 @@ public class SessionUtil {
*
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service credentials
* @param trs
+ * list of tabular resource
*/
- public static void setTabularResources(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, List trs) {
+ public static void setTabularResources(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ List trs) {
SessionOp> sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_TABULAR_RESOURCE_LIST_MAP, trs);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_TABULAR_RESOURCE_LIST_MAP, trs);
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @return
- */
- public static TRId getTRId(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+ public static TRId getTRId(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- TRId trId = sessionOp.get(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_CURRENT_TRID_MAP);
+ TRId trId = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_CURRENT_TRID_MAP);
return trId;
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param trId
- */
- public static void setTRId(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TRId trId) {
+ public static void setTRId(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials, TRId trId) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_CURRENT_TRID_MAP, trId);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_CURRENT_TRID_MAP, trId);
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @return
- */
- public static TabResource getTabResource(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+ public static TabResource getTabResource(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- TabResource tabResource = sessionOp.get(httpRequest,
- serviceCredentials,
+ TabResource tabResource = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCE_MAP);
return tabResource;
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param tabResource
- */
- public static void setTabResource(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TabResource tabResource) {
+ public static void setTabResource(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TabResource tabResource) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCE_MAP,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCE_MAP,
tabResource);
}
- //
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @return
- */
- public static ArrayList getCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static ArrayList getCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- ArrayList currentTROpen = sessionOp.get(httpRequest,
- serviceCredentials,
+ ArrayList currentTROpen = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP);
return currentTROpen;
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param currentTROpen
- */
- public static void setCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ArrayList currentTROpen) {
+ public static void setCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ArrayList currentTROpen) {
SessionOp> sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
currentTROpen);
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param tabResource
- */
- public static void addToCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static void addToCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials, TabResource tabResource) {
- if (tabResource.getTrId() != null
- && tabResource.getTrId().getId() != null
+ if (tabResource.getTrId() != null && tabResource.getTrId().getId() != null
&& !tabResource.getTrId().getId().isEmpty()) {
HttpSession httpSession = httpRequest.getSession();
@@ -437,20 +349,15 @@ public class SessionUtil {
scopeToTabResourceOpenMap = new HashMap<>();
ArrayList openList = new ArrayList<>();
openList.add(tabResource);
- scopeToTabResourceOpenMap.put(serviceCredentials.getScope(),
- openList);
- httpSession
- .setAttribute(
- SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
- scopeToTabResourceOpenMap);
+ scopeToTabResourceOpenMap.put(serviceCredentials.getScope(), openList);
+ httpSession.setAttribute(SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
+ scopeToTabResourceOpenMap);
} else {
- ArrayList openList = scopeToTabResourceOpenMap
- .get(serviceCredentials.getScope());
+ ArrayList openList = scopeToTabResourceOpenMap.get(serviceCredentials.getScope());
if (openList != null) {
for (TabResource tr : openList) {
- if (tr.getTrId().getId()
- .compareTo(tabResource.getTrId().getId()) == 0) {
+ if (tr.getTrId().getId().compareTo(tabResource.getTrId().getId()) == 0) {
openList.remove(tr);
break;
}
@@ -460,8 +367,7 @@ public class SessionUtil {
openList = new ArrayList<>();
openList.add(tabResource);
}
- scopeToTabResourceOpenMap.put(serviceCredentials.getScope(),
- openList);
+ scopeToTabResourceOpenMap.put(serviceCredentials.getScope(), openList);
}
} else {
@@ -470,14 +376,7 @@ public class SessionUtil {
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param trId
- */
- public static void removeFromCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static void removeFromCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials, TRId trId) {
if (trId != null && trId.getId() != null & !trId.getId().isEmpty()) {
@@ -490,16 +389,12 @@ public class SessionUtil {
if (scopeToTabResourceOpenMap == null) {
scopeToTabResourceOpenMap = new HashMap<>();
ArrayList openList = new ArrayList<>();
- scopeToTabResourceOpenMap.put(serviceCredentials.getScope(),
- openList);
- httpSession
- .setAttribute(
- SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
- scopeToTabResourceOpenMap);
+ scopeToTabResourceOpenMap.put(serviceCredentials.getScope(), openList);
+ httpSession.setAttribute(SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP,
+ scopeToTabResourceOpenMap);
logger.debug("No open tr list in session");
} else {
- ArrayList openList = scopeToTabResourceOpenMap
- .get(serviceCredentials.getScope());
+ ArrayList openList = scopeToTabResourceOpenMap.get(serviceCredentials.getScope());
if (openList != null) {
for (TabResource tr : openList) {
if (tr.getTrId().getId().compareTo(trId.getId()) == 0) {
@@ -511,8 +406,7 @@ public class SessionUtil {
} else {
openList = new ArrayList<>();
}
- scopeToTabResourceOpenMap.put(serviceCredentials.getScope(),
- openList);
+ scopeToTabResourceOpenMap.put(serviceCredentials.getScope(), openList);
}
} else {
@@ -520,31 +414,16 @@ public class SessionUtil {
}
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- */
- public static void removeAllFromCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static void removeAllFromCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- sessionOp.remove(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP);
+ sessionOp.remove(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP);
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @return
- */
- public static TabResource getFirstFromCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static TabResource getFirstFromCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- ArrayList openList = sessionOp.get(httpRequest,
- serviceCredentials,
+ ArrayList openList = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP);
if (openList == null || openList.isEmpty()) {
@@ -556,30 +435,18 @@ public class SessionUtil {
}
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param trId
- * @return
- */
- public static TabResource getFromCurrentTabularResourcesOpen(
- HttpServletRequest httpRequest,
+ public static TabResource getFromCurrentTabularResourcesOpen(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials, TRId trId) {
SessionOp> sessionOp = new SessionOp<>();
- ArrayList openList = sessionOp.get(httpRequest,
- serviceCredentials,
+ ArrayList openList = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_CURRENT_TABULAR_RESOURCES_OPEN_MAP);
if (openList == null || openList.isEmpty()) {
logger.info("No open tr in session");
} else {
- logger.debug("Current Tabular Open In session: "
- + serviceCredentials.getScope() + ", trList: " + openList);
+ logger.debug("Current Tabular Open In session: " + serviceCredentials.getScope() + ", trList: " + openList);
for (TabResource tabResource : openList) {
- if (tabResource != null
- && tabResource.getTrId() != null
- && tabResource.getTrId().getId()
- .compareTo(trId.getId()) == 0) {
+ if (tabResource != null && tabResource.getTrId() != null
+ && tabResource.getTrId().getId().compareTo(trId.getId()) == 0) {
return tabResource;
}
}
@@ -589,226 +456,167 @@ public class SessionUtil {
return null;
}
- //
- /**
- *
- * @param httpRequest
- * @param serviceCredentials
- * @param tdOpenSession
- */
- public static void setTDOpenSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TDOpenSession tdOpenSession) {
+ public static void setTDOpenSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TDOpenSession tdOpenSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TDOPEN_SESSION, tdOpenSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TDOPEN_SESSION, tdOpenSession);
}
- // TODO check
- // public static void retrieveResources(HttpServletRequest httpRequest,
- // ServiceCredentials serviceCredentials) {
- //
- // return;
- // }
-
- //
- public static TabResource getSDMXImportTabResource(
- HttpServletRequest httpRequest,
+ public static TabResource getSDMXImportTabResource(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- TabResource tabResource = sessionOp.get(httpRequest,
- serviceCredentials,
+ TabResource tabResource = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SDMX_IMPORT_TABULAR_RESOURCE);
return tabResource;
}
- public static void setSDMXImportTabResource(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TabResource tabResource) {
+ public static void setSDMXImportTabResource(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TabResource tabResource) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_IMPORT_TABULAR_RESOURCE, tabResource);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_IMPORT_TABULAR_RESOURCE, tabResource);
}
- //
- public static TabResource getCSVImportTabResource(
- HttpServletRequest httpRequest,
+ public static TabResource getCSVImportTabResource(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- TabResource tabResource = sessionOp.get(httpRequest,
- serviceCredentials,
+ TabResource tabResource = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.CSV_IMPORT_TABULAR_RESOURCE);
return tabResource;
}
- public static void setCSVImportTabResource(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TabResource tabResource) {
+ public static void setCSVImportTabResource(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TabResource tabResource) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CSV_IMPORT_TABULAR_RESOURCE, tabResource);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CSV_IMPORT_TABULAR_RESOURCE, tabResource);
}
- //
- public static void setSDMXImportSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setSDMXImportSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
SDMXImportSession sdmxImportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_IMPORT_SESSION, sdmxImportSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_IMPORT_SESSION, sdmxImportSession);
}
- public static SDMXImportSession getSDMXImportSession(
- HttpServletRequest httpRequest,
+ public static SDMXImportSession getSDMXImportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- SDMXImportSession sdmxImportSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.SDMX_IMPORT_SESSION);
+ SDMXImportSession sdmxImportSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.SDMX_IMPORT_SESSION);
return sdmxImportSession;
}
- //
- public static void setCSVImportSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setCSVImportSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
CSVImportSession csvImportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CSV_IMPORT_SESSION, csvImportSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CSV_IMPORT_SESSION, csvImportSession);
}
- public static CSVImportSession getCSVImportSession(
- HttpServletRequest httpRequest,
+ public static CSVImportSession getCSVImportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- CSVImportSession csvImportSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.CSV_IMPORT_SESSION);
+ CSVImportSession csvImportSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CSV_IMPORT_SESSION);
return csvImportSession;
}
- //
- public static void setCSVExportSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setCSVExportSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
CSVExportSession csvExportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CSV_EXPORT_SESSION, csvExportSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CSV_EXPORT_SESSION, csvExportSession);
}
- public static CSVExportSession getCSVExportSession(
- HttpServletRequest httpRequest,
+ public static CSVExportSession getCSVExportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- CSVExportSession csvExportSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.CSV_EXPORT_SESSION);
+ CSVExportSession csvExportSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CSV_EXPORT_SESSION);
return csvExportSession;
}
- //
- public static void setSDMXExportSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setSDMXExportSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
SDMXExportSession sdmxExportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_EXPORT_SESSION, sdmxExportSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_EXPORT_SESSION, sdmxExportSession);
}
- public static SDMXExportSession getSDMXExportSession(
- HttpServletRequest httpRequest,
+ public static SDMXExportSession getSDMXExportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- SDMXExportSession sdmxExportSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.SDMX_EXPORT_SESSION);
+ SDMXExportSession sdmxExportSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.SDMX_EXPORT_SESSION);
return sdmxExportSession;
}
- //
- public static void setSDMXTemplateExportSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- SDMXTemplateExportSession sdmxTemplateExportSession) {
+ public static void setSDMXTemplateExportSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, SDMXTemplateExportSession sdmxTemplateExportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_TEMPLATE_EXPORT_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_TEMPLATE_EXPORT_SESSION,
sdmxTemplateExportSession);
}
- public static SDMXTemplateExportSession getSDMXTemplateExportSession(
- HttpServletRequest httpRequest,
+ public static SDMXTemplateExportSession getSDMXTemplateExportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- SDMXTemplateExportSession sdmxTemplateExportSession = sessionOp.get(
- httpRequest, serviceCredentials,
+ SDMXTemplateExportSession sdmxTemplateExportSession = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SDMX_TEMPLATE_EXPORT_SESSION);
return sdmxTemplateExportSession;
}
- //
- public static void setJSONExportSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setJSONExportSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
JSONExportSession jsonExportSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.JSON_EXPORT_SESSION, jsonExportSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.JSON_EXPORT_SESSION, jsonExportSession);
}
- public static JSONExportSession getJSONExportSession(
- HttpServletRequest httpRequest,
+ public static JSONExportSession getJSONExportSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- JSONExportSession jsonExportSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.JSON_EXPORT_SESSION);
+ JSONExportSession jsonExportSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.JSON_EXPORT_SESSION);
return jsonExportSession;
}
//
- public static void setCSVFileUploadSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setCSVFileUploadSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
CSVFileUploadSession csvFileUploadSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CSV_IMPORT_FILE_UPLOAD_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CSV_IMPORT_FILE_UPLOAD_SESSION,
csvFileUploadSession);
}
- public static CSVFileUploadSession getCSVFileUploadSession(
- HttpServletRequest httpRequest,
+ public static CSVFileUploadSession getCSVFileUploadSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- CSVFileUploadSession csvFileUploadSession = sessionOp.get(httpRequest,
- serviceCredentials,
+ CSVFileUploadSession csvFileUploadSession = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.CSV_IMPORT_FILE_UPLOAD_SESSION);
return csvFileUploadSession;
}
//
- public static void setCodelistMappingFileUploadSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- CodelistMappingFileUploadSession codelistMappingFileUploadSession) {
+ public static void setCodelistMappingFileUploadSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, CodelistMappingFileUploadSession codelistMappingFileUploadSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CODELIST_MAPPING_FILE_UPLOAD_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CODELIST_MAPPING_FILE_UPLOAD_SESSION,
codelistMappingFileUploadSession);
}
- public static CodelistMappingFileUploadSession getCodelistMappingFileUploadSession(
- HttpServletRequest httpRequest,
+ public static CodelistMappingFileUploadSession getCodelistMappingFileUploadSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- CodelistMappingFileUploadSession codelistMappingFileUploadSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.CODELIST_MAPPING_FILE_UPLOAD_SESSION);
+ CodelistMappingFileUploadSession codelistMappingFileUploadSession = sessionOp.get(httpRequest,
+ serviceCredentials, SessionConstants.CODELIST_MAPPING_FILE_UPLOAD_SESSION);
return codelistMappingFileUploadSession;
}
//
- public static ArrayList retrieveCodelists(
- HttpServletRequest httpRequest,
+ public static ArrayList retrieveCodelists(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws Exception {
logger.info("SessionUtil retrieveCodelists");
ScopeProvider.instance.set(serviceCredentials.getScope());
@@ -816,8 +624,7 @@ public class SessionUtil {
return client.getAllCodelists();
}
- public static ArrayList retrieveDatasets(
- HttpServletRequest httpRequest,
+ public static ArrayList retrieveDatasets(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws Exception {
logger.info("SessionUtil retrieveDatasets");
ScopeProvider.instance.set(serviceCredentials.getScope());
@@ -825,8 +632,7 @@ public class SessionUtil {
return client.getAllDatasets();
}
- public static ArrayList retrieveAgencies(
- HttpServletRequest httpRequest,
+ public static ArrayList retrieveAgencies(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws Exception {
logger.info("SessionUtil retrieveAgencies");
ScopeProvider.instance.set(serviceCredentials.getScope());
@@ -835,51 +641,42 @@ public class SessionUtil {
}
//
- public static void setSDMXRegistrySource(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setSDMXRegistrySource(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
SDMXRegistrySource sdmxRegistrySource) {
ScopeProvider.instance.set(serviceCredentials.getScope());
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_REGISTRY_SOURCE, sdmxRegistrySource);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_REGISTRY_SOURCE, sdmxRegistrySource);
}
- public static SDMXRegistrySource getSDMXRegistrySource(
- HttpServletRequest httpRequest,
+ public static SDMXRegistrySource getSDMXRegistrySource(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- SDMXRegistrySource sdmxRegistrySource = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.SDMX_REGISTRY_SOURCE);
+ SDMXRegistrySource sdmxRegistrySource = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.SDMX_REGISTRY_SOURCE);
return sdmxRegistrySource;
}
//
- public static SDMXClient getSDMXClientInSession(
- HttpServletRequest httpRequest,
+ public static SDMXClient getSDMXClientInSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- SDMXClient sdmxClient = sessionOp.get(httpRequest, serviceCredentials,
- SessionConstants.SDMX_CLIENT_ATTRIBUTE);
+ SDMXClient sdmxClient = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.SDMX_CLIENT_ATTRIBUTE);
return sdmxClient;
}
- public static void setSDMXClientInSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, SDMXClient sdmxClient) {
+ public static void setSDMXClientInSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ SDMXClient sdmxClient) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SDMX_CLIENT_ATTRIBUTE, sdmxClient);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SDMX_CLIENT_ATTRIBUTE, sdmxClient);
}
//
- public static SDMXClient getSdmxClient(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+ public static SDMXClient getSdmxClient(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
// HttpSession httpSession = httpRequest.getSession();
- SDMXClient sdmxClient = getSDMXClientInSession(httpRequest,
- serviceCredentials);
- SDMXRegistrySource sdmxRegistrySource = getSDMXRegistrySource(
- httpRequest, serviceCredentials);
+ SDMXClient sdmxClient = getSDMXClientInSession(httpRequest, serviceCredentials);
+ SDMXRegistrySource sdmxRegistrySource = getSDMXRegistrySource(httpRequest, serviceCredentials);
if (sdmxRegistrySource == null) {
logger.error("SDMXRegistrySource was not acquired");
} else {
@@ -896,8 +693,7 @@ public class SessionUtil {
if (sdmxClient == null) {
sdmxClient = new SDMXClient(url);
} else {
- if (sdmxClient.getType()
- .compareTo(SDMXClient.TYPE.INTERNAL) == 0) {
+ if (sdmxClient.getType().compareTo(SDMXClient.TYPE.INTERNAL) == 0) {
sdmxClient = new SDMXClient(url);
} else {
if (sdmxClient.getUrl().compareTo(url) != 0) {
@@ -914,19 +710,16 @@ public class SessionUtil {
}
//
- public static void setCSVExportEnd(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, Boolean end) {
+ public static void setCSVExportEnd(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ Boolean end) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CSV_EXPORT_END, end);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CSV_EXPORT_END, end);
}
- public static Boolean getCSVExportEnd(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+ public static Boolean getCSVExportEnd(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- Boolean end = sessionOp.get(httpRequest, serviceCredentials,
- SessionConstants.CSV_EXPORT_END);
+ Boolean end = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.CSV_EXPORT_END);
if (end == null) {
end = false;
}
@@ -934,19 +727,16 @@ public class SessionUtil {
}
//
- public static void setJSONExportEnd(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, Boolean end) {
+ public static void setJSONExportEnd(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ Boolean end) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.JSON_EXPORT_END, end);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.JSON_EXPORT_END, end);
}
- public static Boolean getJSONExportEnd(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) {
+ public static Boolean getJSONExportEnd(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) {
SessionOp sessionOp = new SessionOp<>();
- Boolean end = sessionOp.get(httpRequest, serviceCredentials,
- SessionConstants.JSON_EXPORT_END);
+ Boolean end = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.JSON_EXPORT_END);
if (end == null) {
end = false;
}
@@ -954,872 +744,673 @@ public class SessionUtil {
}
//
- public static TRTasksManager getTRTasksManager(
- HttpServletRequest httpRequest,
+ public static TRTasksManager getTRTasksManager(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- TRTasksManager tasksManager = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.TR_TASK_MANAGER,
+ TRTasksManager tasksManager = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.TR_TASK_MANAGER,
TRTasksManager.class);
return tasksManager;
}
- public static void setTRTasksManager(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TRTasksManager trTasksManager) {
+ public static void setTRTasksManager(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TRTasksManager trTasksManager) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TR_TASK_MANAGER, trTasksManager);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TR_TASK_MANAGER, trTasksManager);
}
//
- public static ChangeColumnTypeSession getChangeColumnTypeSession(
- HttpServletRequest httpRequest,
+ public static ChangeColumnTypeSession getChangeColumnTypeSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ChangeColumnTypeSession changeColumnTypeSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.CHANGE_COLUMN_TYPE_SESSION,
- ChangeColumnTypeSession.class);
+ ChangeColumnTypeSession changeColumnTypeSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CHANGE_COLUMN_TYPE_SESSION, ChangeColumnTypeSession.class);
return changeColumnTypeSession;
}
- public static void setChangeColumnTypeSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setChangeColumnTypeSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ChangeColumnTypeSession changeColumnTypeSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CHANGE_COLUMN_TYPE_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CHANGE_COLUMN_TYPE_SESSION,
changeColumnTypeSession);
}
//
- public static LabelColumnSession getLabelColumnSession(
- HttpServletRequest httpRequest,
+ public static LabelColumnSession getLabelColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- LabelColumnSession labelColumnSession = sessionOp.get(httpRequest,
- serviceCredentials,
- SessionConstants.CHANGE_THE_COLUMN_LABEL_SESSION,
- LabelColumnSession.class);
+ LabelColumnSession labelColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CHANGE_THE_COLUMN_LABEL_SESSION, LabelColumnSession.class);
return labelColumnSession;
}
//
- public static void setLabelColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setLabelColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
LabelColumnSession labelColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CHANGE_THE_COLUMN_LABEL_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CHANGE_THE_COLUMN_LABEL_SESSION,
labelColumnSession);
}
//
- public static AddColumnSession getAddColumnSession(
- HttpServletRequest httpRequest,
+ public static AddColumnSession getAddColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- AddColumnSession addColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.ADD_COLUMN_SESSION,
- AddColumnSession.class);
+ AddColumnSession addColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.ADD_COLUMN_SESSION, AddColumnSession.class);
return addColumnSession;
}
- public static void setAddColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setAddColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
AddColumnSession addColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.ADD_COLUMN_SESSION, addColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.ADD_COLUMN_SESSION, addColumnSession);
}
//
- public static DeleteColumnSession getDeleteColumnSession(
- HttpServletRequest httpRequest,
+ public static DeleteColumnSession getDeleteColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DeleteColumnSession deleteColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.DELETE_COLUMN_SESSION,
- DeleteColumnSession.class);
+ DeleteColumnSession deleteColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.DELETE_COLUMN_SESSION, DeleteColumnSession.class);
return deleteColumnSession;
}
- public static void setDeleteColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setDeleteColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
DeleteColumnSession deleteColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.DELETE_COLUMN_SESSION, deleteColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.DELETE_COLUMN_SESSION, deleteColumnSession);
}
//
- public static FilterColumnSession getFilterColumnSession(
- HttpServletRequest httpRequest,
+ public static FilterColumnSession getFilterColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- FilterColumnSession filterColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.FILTER_COLUMN_SESSION,
- FilterColumnSession.class);
+ FilterColumnSession filterColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.FILTER_COLUMN_SESSION, FilterColumnSession.class);
return filterColumnSession;
}
- public static void setFilterColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setFilterColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
FilterColumnSession filterColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.FILTER_COLUMN_SESSION, filterColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.FILTER_COLUMN_SESSION, filterColumnSession);
}
//
- public static ReplaceColumnByExpressionSession getReplaceColumnByExpressionSession(
- HttpServletRequest httpRequest,
+ public static ReplaceColumnByExpressionSession getReplaceColumnByExpressionSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ReplaceColumnByExpressionSession replaceColumnByExpressionSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.REPLACE_COLUMN_BY_EXPRESSION_SESSION,
- ReplaceColumnByExpressionSession.class);
+ ReplaceColumnByExpressionSession replaceColumnByExpressionSession = sessionOp.get(httpRequest,
+ serviceCredentials, SessionConstants.REPLACE_COLUMN_BY_EXPRESSION_SESSION,
+ ReplaceColumnByExpressionSession.class);
return replaceColumnByExpressionSession;
}
- public static void setReplaceColumnByExpressionSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
+ public static void setReplaceColumnByExpressionSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ReplaceColumnByExpressionSession replaceColumnByExpressionSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.REPLACE_COLUMN_BY_EXPRESSION_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.REPLACE_COLUMN_BY_EXPRESSION_SESSION,
replaceColumnByExpressionSession);
}
//
- public static ApplyAndDetachColumnRulesSession getRulesOnColumnApplyAndDetachSession(
- HttpServletRequest httpRequest,
+ public static ApplyAndDetachColumnRulesSession getRulesOnColumnApplyAndDetachSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ApplyAndDetachColumnRulesSession applyColumnRulesSession = sessionOp
- .get(httpRequest,
- serviceCredentials,
- SessionConstants.RULES_ON_COLUMN_APPLY_AND_DETACH_SESSION,
- ApplyAndDetachColumnRulesSession.class);
+ ApplyAndDetachColumnRulesSession applyColumnRulesSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.RULES_ON_COLUMN_APPLY_AND_DETACH_SESSION, ApplyAndDetachColumnRulesSession.class);
return applyColumnRulesSession;
}
- public static void setRulesOnColumnApplyAndDetachSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ApplyAndDetachColumnRulesSession applyColumnRulesSession) {
+ public static void setRulesOnColumnApplyAndDetachSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ApplyAndDetachColumnRulesSession applyColumnRulesSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_COLUMN_APPLY_AND_DETACH_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.RULES_ON_COLUMN_APPLY_AND_DETACH_SESSION,
applyColumnRulesSession);
}
//
- public static ApplyTableRuleSession getApplyTableRuleSession(
- HttpServletRequest httpRequest,
+ public static ApplyTableRuleSession getApplyTableRuleSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ApplyTableRuleSession applyTableRuleSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_TABLE_APPLY_SESSION,
- ApplyTableRuleSession.class);
+ ApplyTableRuleSession applyTableRuleSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.RULES_ON_TABLE_APPLY_SESSION, ApplyTableRuleSession.class);
return applyTableRuleSession;
}
- public static void setApplyTableRuleSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setApplyTableRuleSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ApplyTableRuleSession applyTableRuleSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_TABLE_APPLY_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.RULES_ON_TABLE_APPLY_SESSION,
applyTableRuleSession);
}
//
- public static DetachColumnRulesSession getDetachColumnRulesSession(
- HttpServletRequest httpRequest,
+ public static DetachColumnRulesSession getDetachColumnRulesSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DetachColumnRulesSession detachColumnRulesSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_COLUMN_DETACH_SESSION,
- DetachColumnRulesSession.class);
+ DetachColumnRulesSession detachColumnRulesSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.RULES_ON_COLUMN_DETACH_SESSION, DetachColumnRulesSession.class);
return detachColumnRulesSession;
}
- public static void setDetachColumnRulesSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- DetachColumnRulesSession detachColumnRulesSession) {
+ public static void setDetachColumnRulesSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, DetachColumnRulesSession detachColumnRulesSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_COLUMN_DETACH_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.RULES_ON_COLUMN_DETACH_SESSION,
detachColumnRulesSession);
}
//
- public static DetachTableRulesSession getDetachTableRulesSession(
- HttpServletRequest httpRequest,
+ public static DetachTableRulesSession getDetachTableRulesSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DetachTableRulesSession detachTableRulesSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_TABLE_DETACH_SESSION,
- DetachTableRulesSession.class);
+ DetachTableRulesSession detachTableRulesSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.RULES_ON_TABLE_DETACH_SESSION, DetachTableRulesSession.class);
return detachTableRulesSession;
}
- public static void setDetachTableRulesSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setDetachTableRulesSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
DetachTableRulesSession detachTableRulesSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.RULES_ON_TABLE_DETACH_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.RULES_ON_TABLE_DETACH_SESSION,
detachTableRulesSession);
}
//
- public static TaskResubmitSession getTaskResubmitSession(
- HttpServletRequest httpRequest,
+ public static TaskResubmitSession getTaskResubmitSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- TaskResubmitSession taskResubmitSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.TASK_RESUBMIT_SESSION,
- TaskResubmitSession.class);
+ TaskResubmitSession taskResubmitSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.TASK_RESUBMIT_SESSION, TaskResubmitSession.class);
return taskResubmitSession;
}
- public static void setTaskResubmitSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setTaskResubmitSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
TaskResubmitSession taskResubmitSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TASK_RESUBMIT_SESSION, taskResubmitSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TASK_RESUBMIT_SESSION, taskResubmitSession);
}
//
- public static TaskResumeSession getTaskResumeSession(
- HttpServletRequest httpRequest,
+ public static TaskResumeSession getTaskResumeSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- TaskResumeSession taskResumeSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.TASK_RESUME_SESSION,
- TaskResumeSession.class);
+ TaskResumeSession taskResumeSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.TASK_RESUME_SESSION, TaskResumeSession.class);
return taskResumeSession;
}
- public static void setTaskResumeSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setTaskResumeSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
TaskResumeSession taskResumeSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TASK_RESUME_SESSION, taskResumeSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TASK_RESUME_SESSION, taskResumeSession);
}
//
- public static EditRowSession getEditRowSession(
- HttpServletRequest httpRequest,
+ public static EditRowSession getEditRowSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- EditRowSession editRowSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.EDIT_ROW_SESSION,
- EditRowSession.class);
+ EditRowSession editRowSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.EDIT_ROW_SESSION, EditRowSession.class);
return editRowSession;
}
- public static void setEditRowSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, EditRowSession editRowSession) {
+ public static void setEditRowSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ EditRowSession editRowSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.EDIT_ROW_SESSION, editRowSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.EDIT_ROW_SESSION, editRowSession);
}
//
- public static ReplaceColumnSession getReplaceColumnSession(
- HttpServletRequest httpRequest,
+ public static ReplaceColumnSession getReplaceColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ReplaceColumnSession replaceColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.REPLACE_COLUMN_SESSION,
- ReplaceColumnSession.class);
+ ReplaceColumnSession replaceColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.REPLACE_COLUMN_SESSION, ReplaceColumnSession.class);
return replaceColumnSession;
}
- public static void setReplaceColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setReplaceColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ReplaceColumnSession replaceColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.REPLACE_COLUMN_SESSION, replaceColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.REPLACE_COLUMN_SESSION, replaceColumnSession);
}
//
- public static ReplaceBatchColumnSession getReplaceBatchColumnSession(
- HttpServletRequest httpRequest,
+ public static ReplaceBatchColumnSession getReplaceBatchColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ReplaceBatchColumnSession replaceBatchColumnSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.REPLACE_BATCH_COLUMN_SESSION,
- ReplaceBatchColumnSession.class);
+ ReplaceBatchColumnSession replaceBatchColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.REPLACE_BATCH_COLUMN_SESSION, ReplaceBatchColumnSession.class);
return replaceBatchColumnSession;
}
- public static void setReplaceBatchColumnSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ReplaceBatchColumnSession replaceBatchColumnSession) {
+ public static void setReplaceBatchColumnSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ReplaceBatchColumnSession replaceBatchColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.REPLACE_BATCH_COLUMN_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.REPLACE_BATCH_COLUMN_SESSION,
replaceBatchColumnSession);
}
//
- public static ChangeTableTypeSession getChangeTableTypeSession(
- HttpServletRequest httpRequest,
+ public static ChangeTableTypeSession getChangeTableTypeSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ChangeTableTypeSession changeTableTypeSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.CHANGE_TABLE_TYPE_SESSION,
- ChangeTableTypeSession.class);
+ ChangeTableTypeSession changeTableTypeSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CHANGE_TABLE_TYPE_SESSION, ChangeTableTypeSession.class);
return changeTableTypeSession;
}
- public static void setChangeTableTypeSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setChangeTableTypeSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ChangeTableTypeSession changeTableTypeSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CHANGE_TABLE_TYPE_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CHANGE_TABLE_TYPE_SESSION,
changeTableTypeSession);
}
//
- public static CloneTabularResourceSession getCloneTabularResourceSession(
- HttpServletRequest httpRequest,
+ public static CloneTabularResourceSession getCloneTabularResourceSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- CloneTabularResourceSession cloneTabularResourceSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.CLONE_TABULAR_RESOURCE_SESSION,
- CloneTabularResourceSession.class);
+ CloneTabularResourceSession cloneTabularResourceSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CLONE_TABULAR_RESOURCE_SESSION, CloneTabularResourceSession.class);
return cloneTabularResourceSession;
}
- public static void setCloneTabularResourceSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- CloneTabularResourceSession cloneTabularResourceSession) {
+ public static void setCloneTabularResourceSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, CloneTabularResourceSession cloneTabularResourceSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CLONE_TABULAR_RESOURCE_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CLONE_TABULAR_RESOURCE_SESSION,
cloneTabularResourceSession);
}
//
- public static DeleteRowsSession getDeleteRowsSession(
- HttpServletRequest httpRequest,
+ public static DeleteRowsSession getDeleteRowsSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DeleteRowsSession deleteRowsSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.DELETE_ROWS_SESSION,
- DeleteRowsSession.class);
+ DeleteRowsSession deleteRowsSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.DELETE_ROWS_SESSION, DeleteRowsSession.class);
return deleteRowsSession;
}
- public static void setDeleteRowsSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setDeleteRowsSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
DeleteRowsSession deleteRowsSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.DELETE_ROWS_SESSION, deleteRowsSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.DELETE_ROWS_SESSION, deleteRowsSession);
}
//
- public static TemplateApplySession getTemplateApplySession(
- HttpServletRequest httpRequest,
+ public static TemplateApplySession getTemplateApplySession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- TemplateApplySession templateApplySession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.TEMPLATE_APPLY_SESSION,
- TemplateApplySession.class);
+ TemplateApplySession templateApplySession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.TEMPLATE_APPLY_SESSION, TemplateApplySession.class);
return templateApplySession;
}
- public static void setTemplateApplySession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setTemplateApplySession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
TemplateApplySession templateApplySession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TEMPLATE_APPLY_SESSION, templateApplySession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TEMPLATE_APPLY_SESSION, templateApplySession);
}
//
- public static DuplicatesSession getDuplicatesSession(
- HttpServletRequest httpRequest,
+ public static DuplicatesSession getDuplicatesSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DuplicatesSession duplicatesSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.DUPLICATES_ROWS_SESSION,
- DuplicatesSession.class);
+ DuplicatesSession duplicatesSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.DUPLICATES_ROWS_SESSION, DuplicatesSession.class);
return duplicatesSession;
}
- public static void setDuplicatesSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setDuplicatesSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
DuplicatesSession duplicatesSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.DUPLICATES_ROWS_SESSION, duplicatesSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.DUPLICATES_ROWS_SESSION, duplicatesSession);
}
//
- public static ArrayList getCodelistsPagingLoaded(
- HttpServletRequest httpRequest,
+ public static ArrayList getCodelistsPagingLoaded(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp> sessionOp = new SessionOp<>();
- ArrayList ltr = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.CODELISTS_PAGING_LOADED);
+ ArrayList ltr = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CODELISTS_PAGING_LOADED);
return ltr;
}
- public static void setCodelistsPagingLoaded(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setCodelistsPagingLoaded(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ArrayList listCodelists) {
SessionOp> sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CODELISTS_PAGING_LOADED, listCodelists);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CODELISTS_PAGING_LOADED, listCodelists);
}
//
- public static ArrayList getCodelistsPagingLoadedFilteredCopy(
- HttpServletRequest httpRequest,
+ public static ArrayList getCodelistsPagingLoadedFilteredCopy(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp> sessionOp = new SessionOp<>();
- ArrayList ltrFilteredCopy = sessionOp.get(httpRequest,
- serviceCredentials,
+ ArrayList ltrFilteredCopy = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.CODELISTS_PAGING_LOADED_FILTERED_COPY);
return ltrFilteredCopy;
}
- public static void setCodelistsPagingLoadedFilteredCopy(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ArrayList listCodelistsFilteredCopy) {
+ public static void setCodelistsPagingLoadedFilteredCopy(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ArrayList listCodelistsFilteredCopy) {
SessionOp> sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CODELISTS_PAGING_LOADED_FILTERED_COPY,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CODELISTS_PAGING_LOADED_FILTERED_COPY,
listCodelistsFilteredCopy);
}
//
- public static String getCodelistsPagingLoadedFilter(
- HttpServletRequest httpRequest,
+ public static String getCodelistsPagingLoadedFilter(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- String filter = sessionOp.get(httpRequest, serviceCredentials,
- SessionConstants.CODELISTS_PAGING_LOADED_FILTER);
+ String filter = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.CODELISTS_PAGING_LOADED_FILTER);
return filter;
}
- public static void setCodelistsPagingLoadedFilter(
- HttpServletRequest httpRequest,
+ public static void setCodelistsPagingLoadedFilter(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials, String filter) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CODELISTS_PAGING_LOADED_FILTER, filter);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CODELISTS_PAGING_LOADED_FILTER, filter);
}
//
- public static RollBackSession getRollBackSession(
- HttpServletRequest httpRequest,
+ public static RollBackSession getRollBackSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- RollBackSession rollBackSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.ROLLBACK_SESSION,
- RollBackSession.class);
+ RollBackSession rollBackSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.ROLLBACK_SESSION, RollBackSession.class);
return rollBackSession;
}
- public static void setRollBackSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setRollBackSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
RollBackSession rollBackSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.ROLLBACK_SESSION, rollBackSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.ROLLBACK_SESSION, rollBackSession);
}
//
- public static ExtractCodelistSession getExtractCodelistSession(
- HttpServletRequest httpRequest,
+ public static ExtractCodelistSession getExtractCodelistSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ExtractCodelistSession extractCodelistSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.EXTRACT_CODELIST_SESSION,
- ExtractCodelistSession.class);
+ ExtractCodelistSession extractCodelistSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.EXTRACT_CODELIST_SESSION, ExtractCodelistSession.class);
return extractCodelistSession;
}
- public static void setExtractCodelistSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setExtractCodelistSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ExtractCodelistSession extractCodelistSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.EXTRACT_CODELIST_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.EXTRACT_CODELIST_SESSION,
extractCodelistSession);
}
//
- public static SplitColumnSession getSplitColumnSession(
- HttpServletRequest httpRequest,
+ public static SplitColumnSession getSplitColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- SplitColumnSession splitColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.SPLIT_COLUMN_SESSION,
- SplitColumnSession.class);
+ SplitColumnSession splitColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.SPLIT_COLUMN_SESSION, SplitColumnSession.class);
return splitColumnSession;
}
- public static void setSplitColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setSplitColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
SplitColumnSession splitColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SPLIT_COLUMN_SESSION, splitColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SPLIT_COLUMN_SESSION, splitColumnSession);
}
//
- public static MergeColumnSession getMergeColumnSession(
- HttpServletRequest httpRequest,
+ public static MergeColumnSession getMergeColumnSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- MergeColumnSession mergeColumnSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.MERGE_COLUMN_SESSION,
- MergeColumnSession.class);
+ MergeColumnSession mergeColumnSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.MERGE_COLUMN_SESSION, MergeColumnSession.class);
return mergeColumnSession;
}
- public static void setMergeColumnSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setMergeColumnSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
MergeColumnSession mergeColumnSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.MERGE_COLUMN_SESSION, mergeColumnSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.MERGE_COLUMN_SESSION, mergeColumnSession);
}
//
- public static GroupBySession getGroupBySession(
- HttpServletRequest httpRequest,
+ public static GroupBySession getGroupBySession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- GroupBySession groupBySession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.GROUPBY_SESSION,
+ GroupBySession groupBySession = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.GROUPBY_SESSION,
GroupBySession.class);
return groupBySession;
}
- public static void setGroupBySession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, GroupBySession groupBySession) {
+ public static void setGroupBySession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ GroupBySession groupBySession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.GROUPBY_SESSION, groupBySession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.GROUPBY_SESSION, groupBySession);
}
//
- public static TimeAggregationSession getTimeAggregationSession(
- HttpServletRequest httpRequest,
+ public static TimeAggregationSession getTimeAggregationSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- TimeAggregationSession timeAggregationSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.TIME_AGGREGATION_SESSION,
- TimeAggregationSession.class);
+ TimeAggregationSession timeAggregationSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.TIME_AGGREGATION_SESSION, TimeAggregationSession.class);
return timeAggregationSession;
}
- public static void setTimeAggregationSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setTimeAggregationSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
TimeAggregationSession timeAggregationSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.TIME_AGGREGATION_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.TIME_AGGREGATION_SESSION,
timeAggregationSession);
}
//
- public static CodelistMappingSession getCodelistMappingSession(
- HttpServletRequest httpRequest,
+ public static CodelistMappingSession getCodelistMappingSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- CodelistMappingSession codelistMappingSession = sessionOp.get(
- httpRequest, serviceCredentials,
+ CodelistMappingSession codelistMappingSession = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.CODELIST_MAPPING_SESSION);
return codelistMappingSession;
}
- public static void setCodelistMappingSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setCodelistMappingSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
CodelistMappingSession codelistMappingSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CODELIST_MAPPING_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CODELIST_MAPPING_SESSION,
codelistMappingSession);
}
//
- public static NormalizationSession getNormalizationSession(
- HttpServletRequest httpRequest,
+ public static NormalizationSession getNormalizationSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- NormalizationSession normalizationSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.NORMALIZATION_SESSION,
- NormalizationSession.class);
+ NormalizationSession normalizationSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.NORMALIZATION_SESSION, NormalizationSession.class);
return normalizationSession;
}
- public static void setNormalizationSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setNormalizationSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
NormalizationSession normalizationSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.NORMALIZATION_SESSION, normalizationSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.NORMALIZATION_SESSION, normalizationSession);
}
//
- public static DenormalizationSession getDenormalizationSession(
- HttpServletRequest httpRequest,
+ public static DenormalizationSession getDenormalizationSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DenormalizationSession denormalizationSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.DENORMALIZATION_SESSION,
- DenormalizationSession.class);
+ DenormalizationSession denormalizationSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.DENORMALIZATION_SESSION, DenormalizationSession.class);
return denormalizationSession;
}
- public static void setDenormalizationSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setDenormalizationSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
DenormalizationSession denormalizationSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.DENORMALIZATION_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.DENORMALIZATION_SESSION,
denormalizationSession);
}
//
- public static UnionSession getUnionSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) throws TDGWTServiceException {
+ public static UnionSession getUnionSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials)
+ throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- UnionSession unionSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.UNION_SESSION,
+ UnionSession unionSession = sessionOp.get(httpRequest, serviceCredentials, SessionConstants.UNION_SESSION,
UnionSession.class);
return unionSession;
}
- public static void setUnionSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, UnionSession unionSession) {
+ public static void setUnionSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ UnionSession unionSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.UNION_SESSION, unionSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.UNION_SESSION, unionSession);
}
//
- public static ChangeColumnsPositionSession getChangeColumnsPositionSession(
- HttpServletRequest httpRequest,
+ public static ChangeColumnsPositionSession getChangeColumnsPositionSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ChangeColumnsPositionSession changeColumnsPositionSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.CHANGE_COLUMNS_POSITION_SESSION,
- ChangeColumnsPositionSession.class);
+ ChangeColumnsPositionSession changeColumnsPositionSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CHANGE_COLUMNS_POSITION_SESSION, ChangeColumnsPositionSession.class);
return changeColumnsPositionSession;
}
- public static void setChangeColumnsPositionSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ChangeColumnsPositionSession changeColumnsPositionSession) {
+ public static void setChangeColumnsPositionSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ChangeColumnsPositionSession changeColumnsPositionSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.CHANGE_COLUMNS_POSITION_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CHANGE_COLUMNS_POSITION_SESSION,
changeColumnsPositionSession);
}
//
- public static ReplaceByExternalSession getReplaceByExternalSession(
- HttpServletRequest httpRequest,
+ public static ReplaceByExternalSession getReplaceByExternalSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ReplaceByExternalSession replaceByExternalSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.REPLACE_BY_EXTERNAL_SESSION,
- ReplaceByExternalSession.class);
+ ReplaceByExternalSession replaceByExternalSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.REPLACE_BY_EXTERNAL_SESSION, ReplaceByExternalSession.class);
return replaceByExternalSession;
}
- public static void setReplaceByExternalSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- ReplaceByExternalSession replaceByExternalSession) {
+ public static void setReplaceByExternalSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, ReplaceByExternalSession replaceByExternalSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.REPLACE_BY_EXTERNAL_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.REPLACE_BY_EXTERNAL_SESSION,
replaceByExternalSession);
}
//
- public static DataMinerOperationSession getDataMinerOperationSession(
- HttpServletRequest httpRequest,
+ public static DataMinerOperationSession getDataMinerOperationSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- DataMinerOperationSession dataMinerOperationSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.DATAMINER_OPERATION_SESSION,
- DataMinerOperationSession.class);
+ DataMinerOperationSession dataMinerOperationSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.DATAMINER_OPERATION_SESSION, DataMinerOperationSession.class);
return dataMinerOperationSession;
}
- public static void setDataMinerOperationSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- DataMinerOperationSession dataMinerOperationSession) {
+ public static void setDataMinerOperationSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, DataMinerOperationSession dataMinerOperationSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.DATAMINER_OPERATION_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.DATAMINER_OPERATION_SESSION,
dataMinerOperationSession);
}
//
- public static MapCreationSession getMapCreationSession(
- HttpServletRequest httpRequest,
+ public static MapCreationSession getMapCreationSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- MapCreationSession mapCreationSession = sessionOp.get(httpRequest,
- serviceCredentials, SessionConstants.MAP_CREATION_SESSION,
- MapCreationSession.class);
+ MapCreationSession mapCreationSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.MAP_CREATION_SESSION, MapCreationSession.class);
return mapCreationSession;
}
- public static void setMapCreationSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setMapCreationSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
MapCreationSession mapCreationSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.MAP_CREATION_SESSION, mapCreationSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.MAP_CREATION_SESSION, mapCreationSession);
}
//
- public static ChartTopRatingSession getChartTopRatingSession(
- HttpServletRequest httpRequest,
+ public static ChartTopRatingSession getChartTopRatingSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- ChartTopRatingSession chartTopRatingSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.CHART_TOPRATING_SESSION,
- ChartTopRatingSession.class);
+ ChartTopRatingSession chartTopRatingSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.CHART_TOPRATING_SESSION, ChartTopRatingSession.class);
return chartTopRatingSession;
}
- public static void setChartTopRatingSession(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
+ public static void setChartTopRatingSession(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
ChartTopRatingSession chartTopRatingSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp
- .set(httpRequest, serviceCredentials,
- SessionConstants.CHART_TOPRATING_SESSION,
- chartTopRatingSession);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.CHART_TOPRATING_SESSION, chartTopRatingSession);
}
// Geospatial
public static GeospatialCreateCoordinatesSession getGeospatialCreateCoordinatesSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials) throws TDGWTServiceException {
+ HttpServletRequest httpRequest, ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- GeospatialCreateCoordinatesSession geospatialCreateCoordinatesSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.GEOSPATIAL_CREATE_COORDINATES_SESSION,
- GeospatialCreateCoordinatesSession.class);
+ GeospatialCreateCoordinatesSession geospatialCreateCoordinatesSession = sessionOp.get(httpRequest,
+ serviceCredentials, SessionConstants.GEOSPATIAL_CREATE_COORDINATES_SESSION,
+ GeospatialCreateCoordinatesSession.class);
return geospatialCreateCoordinatesSession;
}
- public static void setGeospatialCreateCoordinatesSession(
- HttpServletRequest httpRequest,
+ public static void setGeospatialCreateCoordinatesSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials,
GeospatialCreateCoordinatesSession geospatialCreateCoordinateSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.GEOSPATIAL_CREATE_COORDINATES_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.GEOSPATIAL_CREATE_COORDINATES_SESSION,
geospatialCreateCoordinateSession);
}
//
- public static GeospatialDownscaleCSquareSession getGeospatialDownscaleCSquareSession(
- HttpServletRequest httpRequest,
+ public static GeospatialDownscaleCSquareSession getGeospatialDownscaleCSquareSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession = sessionOp
- .get(httpRequest, serviceCredentials,
- SessionConstants.GEOSPATIAL_DOWNSCALE_CSQUARE_SESSION,
- GeospatialDownscaleCSquareSession.class);
+ GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession = sessionOp.get(httpRequest,
+ serviceCredentials, SessionConstants.GEOSPATIAL_DOWNSCALE_CSQUARE_SESSION,
+ GeospatialDownscaleCSquareSession.class);
return geospatialDownscaleCSquareSession;
}
- public static void setGeospatialDownscaleCSquareSession(
- HttpServletRequest httpRequest,
+ public static void setGeospatialDownscaleCSquareSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials,
GeospatialDownscaleCSquareSession geospatialDownscaleCSquareSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.GEOSPATIAL_DOWNSCALE_CSQUARE_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.GEOSPATIAL_DOWNSCALE_CSQUARE_SESSION,
geospatialDownscaleCSquareSession);
}
// Geometry
- public static GeometryCreatePointSession getGeometryCreatePointSession(
- HttpServletRequest httpRequest,
+ public static GeometryCreatePointSession getGeometryCreatePointSession(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) throws TDGWTServiceException {
SessionOp sessionOp = new SessionOp<>();
- GeometryCreatePointSession geometryCreatePointSession = sessionOp.get(
- httpRequest, serviceCredentials,
- SessionConstants.GEOMETRY_CREATE_POINT_SESSION,
- GeometryCreatePointSession.class);
+ GeometryCreatePointSession geometryCreatePointSession = sessionOp.get(httpRequest, serviceCredentials,
+ SessionConstants.GEOMETRY_CREATE_POINT_SESSION, GeometryCreatePointSession.class);
return geometryCreatePointSession;
}
- public static void setGeometryCreatePointSession(
- HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials,
- GeometryCreatePointSession geometryCreatePointSession) {
+ public static void setGeometryCreatePointSession(HttpServletRequest httpRequest,
+ ServiceCredentials serviceCredentials, GeometryCreatePointSession geometryCreatePointSession) {
SessionOp sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.GEOMETRY_CREATE_POINT_SESSION,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.GEOMETRY_CREATE_POINT_SESSION,
geometryCreatePointSession);
}
@@ -1828,12 +1419,15 @@ public class SessionUtil {
* Retrieve task started
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service Credentials
* @param taskId
- * @return
+ * Task id
+ * @return Task Wrapper
*/
- public static TaskWrapper getStartedTask(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, String taskId) {
+ public static TaskWrapper getStartedTask(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ String taskId) {
TaskWrapper taskWrapper = null;
@@ -1841,8 +1435,7 @@ public class SessionUtil {
logger.error("TaskId is not valid: " + taskId);
} else {
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksStarted = sessionOp.get(
- httpRequest, serviceCredentials,
+ HashMap tasksStarted = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_STARTED_MAP);
if (tasksStarted == null) {
logger.debug("Task with id=" + taskId + " was not acquired");
@@ -1862,19 +1455,21 @@ public class SessionUtil {
*
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service credendials
* @param taskWrapper
+ * Task wrapper
*/
- public static void removeStartedTask(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void removeStartedTask(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask() == null
- || taskWrapper.getTask().getId() == null
+ if (taskWrapper.getTask() == null || taskWrapper.getTask().getId() == null
|| taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
@@ -1882,14 +1477,12 @@ public class SessionUtil {
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksStarted = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksStarted = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_STARTED_MAP);
if (tasksStarted == null) {
logger.debug("Started tasks was not acquired: " + taskWrapper);
} else {
- if (tasksStarted.containsKey(taskWrapper.getTask().getId()
- .getValue())) {
+ if (tasksStarted.containsKey(taskWrapper.getTask().getId().getValue())) {
tasksStarted.remove(taskWrapper.getTask().getId().getValue());
logger.debug("Remove task: " + taskWrapper);
} else {
@@ -1902,19 +1495,21 @@ public class SessionUtil {
* Add Task Started
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service Credentials
* @param taskWrapper
+ * Task wrapper
*/
- public static void setStartedTask(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void setStartedTask(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask() == null
- || taskWrapper.getTask().getId() == null
+ if (taskWrapper.getTask() == null || taskWrapper.getTask().getId() == null
|| taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
@@ -1922,21 +1517,17 @@ public class SessionUtil {
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksStarted = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksStarted = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_STARTED_MAP);
if (tasksStarted == null) {
tasksStarted = new HashMap();
- tasksStarted.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksStarted.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_OPERATIONS_TASKS_STARTED_MAP,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_OPERATIONS_TASKS_STARTED_MAP,
tasksStarted);
} else {
- tasksStarted.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksStarted.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
}
}
@@ -1945,16 +1536,16 @@ public class SessionUtil {
* Retrieve Aborted Task Map
*
* @param httpRequest
+ * Request
* @param serviceCredentials
- * @return
+ * Service credentials
+ * @return Map from operation to task wrapper in scope
*/
- public static HashMap getAbortedTaskMap(
- HttpServletRequest httpRequest,
+ public static HashMap getAbortedTaskMap(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksAborted = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksAborted = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_ABORTED_MAP);
return tasksAborted;
@@ -1963,40 +1554,38 @@ public class SessionUtil {
/**
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service Credentials
* @param taskWrapper
+ * Task wrapper
*/
- public static void setAbortedTasks(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void setAbortedTasks(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null || taskWrapper.getTask() == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask().getId() == null
- || taskWrapper.getTask().getId().getValue() == null
+ if (taskWrapper.getTask().getId() == null || taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
return;
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksAborted = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksAborted = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_ABORTED_MAP);
if (tasksAborted == null) {
tasksAborted = new HashMap();
- tasksAborted.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksAborted.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_OPERATIONS_TASKS_ABORTED_MAP,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_OPERATIONS_TASKS_ABORTED_MAP,
tasksAborted);
} else {
- tasksAborted.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksAborted.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
}
}
@@ -2007,16 +1596,16 @@ public class SessionUtil {
*
*
* @param httpRequest
+ * Request
* @param serviceCredentials
- * @return
+ * Service credentials
+ * @return Map
*/
- public static HashMap getHiddenTaskMap(
- HttpServletRequest httpRequest,
+ public static HashMap getHiddenTaskMap(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksHidden = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksHidden = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_HIDDEN_MAP);
return tasksHidden;
@@ -2025,19 +1614,21 @@ public class SessionUtil {
/**
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service credentials
* @param taskWrapper
+ * Task wrapper
*/
- public static void setHiddenTask(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void setHiddenTask(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask() == null
- || taskWrapper.getTask().getId() == null
+ if (taskWrapper.getTask() == null || taskWrapper.getTask().getId() == null
|| taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
@@ -2045,21 +1636,17 @@ public class SessionUtil {
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksHidden = sessionOp.get(httpRequest,
- serviceCredentials,
+ HashMap tasksHidden = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_HIDDEN_MAP);
if (tasksHidden == null) {
tasksHidden = new HashMap();
- tasksHidden.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksHidden.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
sessionOp = new SessionOp<>();
- sessionOp.set(httpRequest, serviceCredentials,
- SessionConstants.SCOPE_TO_OPERATIONS_TASKS_HIDDEN_MAP,
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_OPERATIONS_TASKS_HIDDEN_MAP,
tasksHidden);
} else {
- tasksHidden.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksHidden.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
}
}
@@ -2067,16 +1654,16 @@ public class SessionUtil {
* Retrieve Tasks In Background
*
* @param httpRequest
+ * Request
* @param serviceCredentials
- * @return
+ * Service credentials
+ * @return Tasks in background
*/
- public static HashMap getTaskInBackgroundMap(
- HttpServletRequest httpRequest,
+ public static HashMap getTaskInBackgroundMap(HttpServletRequest httpRequest,
ServiceCredentials serviceCredentials) {
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksInBackground = sessionOp.get(
- httpRequest, serviceCredentials,
+ HashMap tasksInBackground = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_IN_BACKGROUND_MAP);
return tasksInBackground;
}
@@ -2086,19 +1673,21 @@ public class SessionUtil {
*
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service credentials
* @param taskWrapper
+ * Task wrapper
*/
- public static void setTaskInBackground(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void setTaskInBackground(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask() == null
- || taskWrapper.getTask().getId() == null
+ if (taskWrapper.getTask() == null || taskWrapper.getTask().getId() == null
|| taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
@@ -2106,23 +1695,17 @@ public class SessionUtil {
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap tasksInBackground = sessionOp.get(
- httpRequest, serviceCredentials,
+ HashMap tasksInBackground = sessionOp.get(httpRequest, serviceCredentials,
SessionConstants.SCOPE_TO_OPERATIONS_TASKS_IN_BACKGROUND_MAP);
if (tasksInBackground == null) {
tasksInBackground = new HashMap();
- tasksInBackground.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksInBackground.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
sessionOp = new SessionOp<>();
- sessionOp
- .set(httpRequest,
- serviceCredentials,
- SessionConstants.SCOPE_TO_OPERATIONS_TASKS_IN_BACKGROUND_MAP,
- tasksInBackground);
+ sessionOp.set(httpRequest, serviceCredentials, SessionConstants.SCOPE_TO_OPERATIONS_TASKS_IN_BACKGROUND_MAP,
+ tasksInBackground);
} else {
- tasksInBackground.put(taskWrapper.getTask().getId().getValue(),
- taskWrapper);
+ tasksInBackground.put(taskWrapper.getTask().getId().getValue(), taskWrapper);
}
}
@@ -2132,19 +1715,21 @@ public class SessionUtil {
*
*
* @param httpRequest
+ * Request
* @param serviceCredentials
+ * Service credentials
* @param taskWrapper
+ * Task wrapper
*/
- public static void removeTaskInBackground(HttpServletRequest httpRequest,
- ServiceCredentials serviceCredentials, TaskWrapper taskWrapper) {
+ public static void removeTaskInBackground(HttpServletRequest httpRequest, ServiceCredentials serviceCredentials,
+ TaskWrapper taskWrapper) {
if (taskWrapper == null) {
logger.error("TaskWrapper is null");
return;
}
- if (taskWrapper.getTask() == null
- || taskWrapper.getTask().getId() == null
+ if (taskWrapper.getTask() == null || taskWrapper.getTask().getId() == null
|| taskWrapper.getTask().getId().getValue() == null
|| taskWrapper.getTask().getId().getValue().isEmpty()) {
logger.error("TaskWrapper contains invalid Task: " + taskWrapper);
@@ -2152,20 +1737,16 @@ public class SessionUtil {
}
SessionOp> sessionOp = new SessionOp<>();
- HashMap