Fixed Tabular Resource type informations

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@93378 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-20 13:55:21 +00:00
parent b00f5a7c43
commit 18198f4a3b
1 changed files with 133 additions and 73 deletions

View File

@ -197,7 +197,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setTRId(session, tabResource.getTrId());
return;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error setting TabResource parameter: "
+ e.getLocalizedMessage(), e);
@ -224,9 +224,11 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw new TDGWTServiceException(
"CURRENT_TABULAR_RESOURCE is null");
}
logger.debug("GetTabResourceInformation():" + currentTR.toString());
TRId trId=retrieveTabularResourceType(currentTR.getTrId());
currentTR.setTrId(trId);
ArrayList<TRMetadata> trMetadatas = getTRMetadata(currentTR
.getTrId());
updateTabResourceInformation(currentTR, trMetadatas);
@ -236,7 +238,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
+ currentTR.toString());
return currentTR;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error setting TabResource parameter: "
+ e.getLocalizedMessage(), e);
@ -250,6 +252,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
*
* {@inheritDoc}
*/
@Override
public TabResource getTabResourceInformation(TRId trId)
throws TDGWTServiceException {
try {
@ -258,6 +261,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
// ASLSession aslSession = SessionUtil.getAslSession(session);
logger.debug("GetTabResourceInformation(TRId):" + trId.toString());
TabResource currentTR = new TabResource();
trId=retrieveTabularResourceType(trId);
currentTR.setTrId(trId);
ArrayList<TRMetadata> trMetadatas = getTRMetadata(currentTR
.getTrId());
@ -267,7 +271,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
+ currentTR.toString());
return currentTR;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error setting TabResource parameter: "
+ e.getLocalizedMessage(), e);
@ -386,7 +390,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return columns;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error retrieving Columns: " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error retrieving Columns: "
@ -464,7 +468,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return columns;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error retrieving Columns: " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error retrieving Columns: "
@ -529,7 +533,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return cData;
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error retrieving Column: " + e.getLocalizedMessage(),
e);
throw new TDGWTServiceException("Error retrieving Column: "
@ -541,6 +545,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
*
* {@inheritDoc}
*/
@Override
public TableData getLastTable(TRId trId) throws TDGWTServiceException {
try {
HttpSession session = this.getThreadLocalRequest().getSession();
@ -578,7 +583,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return tData;
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error in getLastTable(): " + e.getLocalizedMessage(),
e);
throw new TDGWTServiceException("Error in getLastTable(): "
@ -627,7 +632,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return tData;
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error in getTable(): " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error in getTable(): "
+ e.getLocalizedMessage());
@ -646,7 +651,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setTDOpenSession(session, s);
return;
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error setting TDOpenSession parameter: "
+ e.getLocalizedMessage());
throw new TDGWTServiceException(
@ -705,13 +710,10 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TabularDataService service, TabularResource tr, int i)
throws TDGWTServiceException {
Table table = null;
try {
table = service.getLastTable(tr.getId());
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error retrieving last table: " + e.getMessage());
e.printStackTrace();
throw new TDGWTServiceException("Error retrieving last table: "
@ -734,9 +736,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
t = new TabResource();
t.setTrId(null);
} else {
trId = new TRId(String.valueOf(tr.getId().getValue()),tr.getTableType(),
String.valueOf(tableId.getValue()), table.getTableType()
.getName());
trId = new TRId(String.valueOf(tr.getId().getValue()),
tr.getTableType(), String.valueOf(tableId.getValue()),
table.getTableType().getName());
t = getTabResourceInformation(trId);
}
@ -775,7 +777,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
if (t.getTrId() != null) {
ltr.add(t);
}
} catch (Exception e) {
} catch (Throwable e) {
logger.error("TabResource discarded: " + tr + " cause: "
+ e.getMessage());
}
@ -784,7 +786,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Codelists retrived: " + ltr);
SessionUtil.setCodelistsPagingLoaded(session, ltr);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving Codelist in setCodelistsPagingLoader(): "
+ e.getLocalizedMessage());
@ -861,7 +863,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Codelists retrieved: " + ltrTemp);
return codelistPagingLoadResult;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving Codelist in getCodelistsPagingLoader(): "
+ e.getLocalizedMessage());
@ -1135,7 +1137,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
if (t.getTrId() != null) {
ltr.add(t);
}
} catch (Exception e) {
} catch (Throwable e) {
logger.error("TabResource discarded: " + tr + " cause: "
+ e.getMessage());
}
@ -1143,7 +1145,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Tabular Resources retrived: " + ltr);
return ltr;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving TabularResources: "
+ e.getLocalizedMessage());
@ -1177,7 +1179,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
.getId()));
service.removeTabularResource(id);
return;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error removing TabularResource: "
+ e.getLocalizedMessage(), e);
@ -1209,12 +1211,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TabularResource serviceTR = service.createTabularResource();
Table table = service.getLastTable(serviceTR.getId());
syncTRMetaData(serviceTR, tabResource);
TRId trId = new TRId(String.valueOf(serviceTR.getId().getValue()),serviceTR.getTableType(),
String.valueOf(table.getId().getValue()), table
.getTableType().getName());
TRId trId = new TRId(String.valueOf(serviceTR.getId().getValue()),
serviceTR.getTableType(), String.valueOf(table.getId()
.getValue()), table.getTableType().getName());
tabResource.setTrId(trId);
return tabResource;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error creating new TabularResource: "
+ e.getLocalizedMessage(), e);
@ -1232,7 +1234,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
HttpSession session = this.getThreadLocalRequest().getSession();
return SessionUtil.retrieveCodelists(session);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error retrieving codelists: "
+ e.getLocalizedMessage());
@ -1247,7 +1249,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
HttpSession session = this.getThreadLocalRequest().getSession();
return SessionUtil.retrieveDatasets(session);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error retrieving datasets: "
+ e.getLocalizedMessage());
@ -1262,7 +1264,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
HttpSession session = this.getThreadLocalRequest().getSession();
return SessionUtil.retrieveAgencies(session);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error retrieving datasets: "
+ e.getLocalizedMessage());
@ -1343,7 +1345,37 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setSDMXImportTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in Client Library Request: "
+ e.getLocalizedMessage());
}
}
/**
* Retrieve and set Tabular Resource Type
*
* @param trId
* @return
* @throws TDGWTServiceException
*/
protected TRId retrieveTabularResourceType(TRId trId)
throws TDGWTServiceException {
try {
HttpSession session = this.getThreadLocalRequest().getSession();
ASLSession aslSession = SessionUtil.getAslSession(session);
AuthorizationProvider.instance.set(new AuthorizationToken(
aslSession.getUsername()));
TabularDataService service = TabularDataServiceFactory.getService();
TabularResourceId tabularResourceId = new TabularResourceId(
new Long(trId.getId()));
TabularResource tr = service.getTabularResource(tabularResourceId);
trId.setTableType(tr.getTableType());
logger.debug("Retrieved TRId type:"+ trId.toString());
return trId;
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in Client Library Request: "
+ e.getLocalizedMessage());
@ -1392,6 +1424,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String.valueOf(table.getId()
.getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
sdmxImportTabResource.setTrId(trId);
SessionUtil.setSDMXImportTabResource(session,
sdmxImportTabResource);
@ -1419,6 +1453,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String.valueOf(table.getId()
.getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
sdmxImportTabResource.setTrId(trId);
SessionUtil.setSDMXImportTabResource(session,
sdmxImportTabResource);
@ -1449,7 +1485,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
logger.debug("getSDMXImportMonitor(): " + importMonitor);
return importMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in importSDMX ImportMonitor: "
@ -1469,7 +1505,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setSDMXRegistrySource(session, sdmxRegistrySource);
return;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error setting SDMXRegistrySource parameter: "
+ e.getLocalizedMessage(), e);
@ -1490,7 +1526,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setCSVImportSession(session, importSession);
return;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error setting SDMXImportSession parameter: "
+ e.getLocalizedMessage(), e);
@ -1572,7 +1608,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
return CSVFileUtil.getHeader(fileUploadSession.getCsvFile(),
fileUploadSession.getParserConfiguration());
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error retrieving the CSV header", e);
throw new TDGWTServiceException(
"Error calculating the CSV header: "
@ -1602,7 +1638,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
return CSVFileUtil.checkCSV(fileUploadSession.getCsvFile(),
fileUploadSession.getParserConfiguration(), errorsLimit);
} catch (Exception e) {
} catch (Throwable e) {
logger.error("Error checking the CSV file", e);
throw new TDGWTServiceException("Error checking the CSV file: "
+ e.getLocalizedMessage());
@ -1740,7 +1776,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
Task trTask;
try {
trTask = service.execute(invocation, tabularResource.getId());
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Tabular Data Service error creating TabularResource: "
@ -1805,6 +1841,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String.valueOf(table.getId()
.getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
csvImportTabResource.setTrId(trId);
SessionUtil.setCSVImportTabResource(session,
csvImportTabResource);
@ -1853,7 +1891,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
logger.info("getImportMonitor(): " + importMonitor);
return importMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in importCSV CSVImportMonitor: "
@ -1884,7 +1922,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
w = home.getWorkspace();
wi = w.getItem(csvImportSession.getItemId());
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in importCSV getFileFromWorkspace accessing the workspace: "
@ -1926,7 +1964,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
FileUtil.setImportFile(fileUploadSession, is, wi.getName(),
"text/csv");
} catch (Exception e) {
} catch (Throwable e) {
fileUploadSession/**
* Get informations on tabular resource
*
@ -1971,7 +2009,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return sdf.format(tr.getCreationDate().getTime());
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error in getTRCreationDate(): " + e.getLocalizedMessage(),
e);
@ -2045,7 +2083,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("GetTRMetadata retrived: " + listTRMetadata.size());
return listTRMetadata;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error in getTRMetadata(): " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error in getTableMetadata(): "
@ -2168,7 +2206,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return listTabMetadata;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error in getTableMetadata(): " + e.getLocalizedMessage(),
e);
@ -2313,7 +2351,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
trTask = service.execute(invocation,
new TabularResourceId(Long.valueOf(trId.getId())));
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Tabular Data Service error exporting TabularResource: "
@ -2419,7 +2457,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("getExportMonitor(): " + exportMonitor);
return exportMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in exportSDMX SDMXExportMonitor: "
@ -2486,7 +2524,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
try {
trTask = service.execute(invocation,
new TabularResourceId(Long.valueOf(trId.getId())));
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Tabular Data Service error exporting TabularResource: "
@ -2601,7 +2639,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("getExportMonitor(): " + exportMonitor);
return exportMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in exportCSV CSVExportMonitor: "
@ -2986,7 +3024,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setChangeColumnTypeTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in ChangeColumnType: "
+ e.getLocalizedMessage());
@ -3050,6 +3088,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
changeColumnTypeMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3073,6 +3113,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
changeColumnTypeMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3090,7 +3132,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("ChangeColumnTypeMonitor(): " + changeColumnTypeMonitor);
return changeColumnTypeMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in change column type ChangeColumnTypeMonitor: "
@ -3130,7 +3172,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setDeleteColumnTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in DeleteColumn: "
+ e.getLocalizedMessage());
@ -3194,6 +3236,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
deleteColumnMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3219,6 +3263,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
deleteColumnMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3236,7 +3282,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("DeleteColumnMonitor(): " + deleteColumnMonitor);
return deleteColumnMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in delete column monitor DeleteColumnMonitor: "
@ -3277,7 +3323,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setLabelColumnTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Changing The Column Label: "
+ e.getLocalizedMessage());
@ -3341,6 +3387,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
labelColumnMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3366,6 +3414,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
labelColumnMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3383,7 +3433,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("LabelColumnMonitor(): " + labelColumnMonitor);
return labelColumnMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in delete column monitor LabelColumnMonitor: "
@ -3425,7 +3475,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setChangeTableTypeTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Changing Table Type: "
+ e.getLocalizedMessage());
@ -3489,6 +3539,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
changeTableTypeMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3513,6 +3565,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
changeTableTypeMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3530,7 +3584,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("ChangeTableTypeMonitor(): " + changeTableTypeMonitor);
return changeTableTypeMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in change table type monitor ChangeTableTypeMonitor: "
@ -3604,7 +3658,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
return columns;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error in getColumnsForDimension() retrieving Columns: "
+ e.getLocalizedMessage(), e);
@ -3678,7 +3732,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
return columns;
} catch (Exception e) {
} catch (Throwable e) {
logger.error(
"Error in getColumnsForDimension() retrieving Columns: "
+ e.getLocalizedMessage(), e);
@ -3717,7 +3771,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setDeleteRowsTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Deleting Rows: "
+ e.getLocalizedMessage());
@ -3782,6 +3836,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
deleteRowsMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3806,6 +3862,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
deleteRowsMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3823,7 +3881,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("DeleteRowsMonitor(): " + deleteRowsMonitor);
return deleteRowsMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in monitor DeleteRowsMonitor: "
@ -3832,8 +3890,6 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
}
/**
*
* {@inheritDoc}
@ -3869,7 +3925,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
SessionUtil.setTRId(session, trId);
return trId;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Cloning: "
+ e.getLocalizedMessage());
@ -3907,7 +3963,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Start Task on service: TaskId " + trTask.getId());
SessionUtil.setDuplicatesTask(session, trTask);
return;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in operation for duplicates: "
@ -3973,6 +4029,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
duplicatesMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -3997,6 +4055,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
trId.setTableId(String
.valueOf(table.getId().getValue()));
trId.setTableType(table.getTableType().getName());
retrieveTabularResourceType(trId);
duplicatesMonitor.setTrId(trId);
tabResource = SessionUtil.getTabResource(session);
tabResource.setTrId(trId);
@ -4014,7 +4074,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.info("DuplicatesMonitor(): " + duplicatesMonitor);
return duplicatesMonitor;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
"Error in monitor DuplicatesMonitor: "
@ -4053,7 +4113,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
ShareInfo shareInfo = new ShareInfo(tabResource, contacts);
return shareInfo;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in getShareInfo: "
+ e.getLocalizedMessage());
@ -4086,7 +4146,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Share with Users: " + users);
service.share(serviceTR, usersArray);
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in setShare: "
+ e.getLocalizedMessage());
@ -4136,7 +4196,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
tr.setMetadata(rights);
}
} catch (Exception e) {
} catch (Throwable e) {
logger.debug("Error in setTabResourceInformation: "
+ e.getLocalizedMessage());
e.printStackTrace();
@ -4167,7 +4227,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
logger.debug("Retrieved Occurences");
return occurences;
} catch (Exception e) {
} catch (Throwable e) {
logger.debug("Error in GetOccurencesForBatchReplace: "
+ e.getLocalizedMessage());
e.printStackTrace();