915: TDM - Support the Spanish language

Task-Url: https://support.d4science.org/issues/915

Updated Spanish Support

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@119598 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-10-09 16:17:24 +00:00
parent c57b44c3f4
commit 405615f724
6 changed files with 51 additions and 42 deletions

View File

@ -309,7 +309,6 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TDGWTService {
private static final String TEMPLATE_NOT_COMPATIBLE_EXCEPTION = "Template not compatible with this tabular resource!";
private static final String NO_VALID_TABULAR_RESOURCE_ID_PRESENT = "No valid tabular resource id present!";
private static final String TABULAR_RESOURCE_IS_FINAL = "Tabular Resource Is Final!";
private static final String TABULAR_RESOURCE_IS_LOCKED = "Tabular Resource Is Locked!";
private static final long serialVersionUID = -5707400086333186368L;
@ -4942,16 +4941,20 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
/**
*
*
* @param session TODO
* @param service
* @param trId
* @throws TDGWTServiceException
*/
protected void checkTabularResourceIsFinal(TabularResource tabularResource)
protected void checkTabularResourceIsFinal(TabularResource tabularResource, HttpSession session)
throws TDGWTServiceException {
try {
if (tabularResource.isFinalized()) {
logger.error(TABULAR_RESOURCE_IS_FINAL);
throw new TDGWTIsFinalException(TABULAR_RESOURCE_IS_FINAL);
ResourceBundle messages = getResourceBundle(session);
logger.error(messages.getString(TDGWTServiceMessagesConstants.tabularResourceIsFinal));
throw new TDGWTIsFinalException(TDGWTServiceMessagesConstants.tabularResourceIsFinal);
}
} catch (TDGWTServiceException e) {
@ -5261,7 +5264,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ChangeColumnType opEx = new OpExecution4ChangeColumnType(
service, changeColumnTypeSession);
@ -5319,7 +5322,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4AddColumn opEx = new OpExecution4AddColumn(service,
addColumnSession, expression);
@ -5392,7 +5395,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4DeleteColumn opEx = new OpExecution4DeleteColumn(
service, deleteColumnSession);
@ -5469,7 +5472,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4FilterColumn opEx = new OpExecution4FilterColumn(
service, filterColumnSession, expression);
@ -5547,7 +5550,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ReplaceColumnByExpression opEx = new OpExecution4ReplaceColumnByExpression(
service, replaceColumnByExpressionSession,
@ -5621,7 +5624,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4LabelColumn opEx = new OpExecution4LabelColumn(service,
labelColumnSession);
@ -5702,7 +5705,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ChangeTableType opEx = new OpExecution4ChangeTableType(
service, changeTableTypeSession);
@ -5876,7 +5879,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4DeleteRows opEx = new OpExecution4DeleteRows(service,
deleteRowsSession);
@ -6031,7 +6034,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4Duplicates opEx = new OpExecution4Duplicates(service,
duplicatesSession);
@ -6096,7 +6099,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
Task trTask = service.removeValidations(tabularResourceId);
logger.debug("Start Task on service: TaskId " + trTask.getId());
@ -6369,7 +6372,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TabularResource tr = service.getTabularResource(tabularResourceId);
checkTabularResourceLocked(tr);
checkTabularResourceIsFinal(tr);
checkTabularResourceIsFinal(tr, null);
logger.debug("setTabResourceInformation - old information:" + tr);
@ -6493,7 +6496,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TabularResource tr = service.getTabularResource(tabularResourceId);
checkTabularResourceLocked(tr);
checkTabularResourceIsFinal(tr);
checkTabularResourceIsFinal(tr, null);
logger.debug("setTabResourceToFinal: " + tr);
@ -6706,7 +6709,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
TemplateId templateId = new TemplateId(templateApplySession
.getTemplateData().getId());
@ -6812,7 +6815,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ReplaceColumn opEx = new OpExecution4ReplaceColumn(
service, replaceColumnSession);
@ -6881,7 +6884,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ReplaceBatch opEx = new OpExecution4ReplaceBatch(
service, replaceBatchColumnSession);
@ -7234,7 +7237,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
List<HistoryStep> history = tabularResource.getHistory();
@ -7344,7 +7347,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
HistoryStepId historyStepId = new HistoryStepId(
rollBackSession.getHistoryId());
@ -7543,7 +7546,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4EditRow opEx = new OpExecution4EditRow(service,
editRowSession);
@ -7669,7 +7672,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
if (taskResubmitSession.getTaskId() == null
|| taskResubmitSession.getTaskId().isEmpty()) {
@ -7731,7 +7734,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
if (taskResumeSession.getTaskId() == null
|| taskResumeSession.getTaskId().isEmpty()) {
@ -7949,7 +7952,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4SplitColumn opEx = new OpExecution4SplitColumn(service,
splitColumnSession);
@ -8017,7 +8020,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4MergeColumn opEx = new OpExecution4MergeColumn(service,
mergeColumnSession);
@ -8269,7 +8272,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4CodelistMapping opEx = new OpExecution4CodelistMapping(
service, codelistMappingSession, storageId);
@ -8317,7 +8320,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4GroupBy opEx = new OpExecution4GroupBy(service,
groupBySession);
@ -8377,7 +8380,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4TimeAggregation opEx = new OpExecution4TimeAggregation(
service, timeAggregationSession);
@ -8442,7 +8445,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4Normalization opEx = new OpExecution4Normalization(
service, normalizationSession);
@ -8511,7 +8514,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4Denormalization opEx = new OpExecution4Denormalization(
service, denormalizationSession);
@ -8576,7 +8579,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4Union opEx = new OpExecution4Union(service,
unionSession);
@ -8641,7 +8644,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ChangeColumnsPosition opEx = new OpExecution4ChangeColumnsPosition(
service, changeColumnsPositionSession);
@ -8703,7 +8706,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4ReplaceByExternal opEx = new OpExecution4ReplaceByExternal(
service, replaceByExternalSession);
@ -9599,7 +9602,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4GeospatialCreateCoordinates opEx = new OpExecution4GeospatialCreateCoordinates(
aslSession, service, geospatialCreateCoordinatesSession);
@ -9676,7 +9679,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4GeospatialDownscaleCSquare opEx = new OpExecution4GeospatialDownscaleCSquare(
service, geospatialDownscaleCSquareSession);
@ -9751,7 +9754,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
OpExecution4GeometryCreatePoint opEx = new OpExecution4GeometryCreatePoint(
service, geometryCreatePointSession);
@ -9830,7 +9833,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
ColumnData column = applyAndDetachColumnRulesSession.getColumn();
if (column == null) {
@ -9942,7 +9945,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
RuleId ruleId = new RuleId(applyTableRuleSession
.getRuleDescriptionData().getId());
@ -10008,7 +10011,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
ColumnData column = detachColumnRulesSession.getColumn();
if (column == null) {
@ -10084,7 +10087,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
checkTabularResourceIsFlow(tabularResource);
checkTabularResourceLocked(tabularResource);
checkTabularResourceIsFinal(tabularResource);
checkTabularResourceIsFinal(tabularResource, session);
ArrayList<RuleDescriptionData> rules = detachTableRulesSession
.getRules();

View File

@ -14,4 +14,6 @@ public class TDGWTServiceMessagesConstants {
public static final String securityExceptionRights = "securityExceptionRights";
public static final String tabularResourceIsFinal = "tabularResourceIsFinal";
}

View File

@ -1,2 +1,3 @@
sessionExpired = Session Expired!
securityExceptionRights = Security exception, you don't have the required rights!
tabularResourceIsFinal = Tabular Resource Is Final!

View File

@ -1,2 +1,3 @@
sessionExpired = Session Expired!
securityExceptionRights = Security exception, you don't have the required rights!
tabularResourceIsFinal = Tabular Resource Is Final!

View File

@ -1,2 +1,3 @@
sessionExpired = Sesión Ha Finalizado!
securityExceptionRights = Excepción de seguridad, usted no tiene los derechos necesarios!
securityExceptionRights = Excepción de seguridad, usted no tiene los derechos necesarios!
tabularResourceIsFinal = La Tabular Resource es Final!

View File

@ -1,2 +1,3 @@
sessionExpired = Sessione Scaduta!
securityExceptionRights = Eccezione di sicurezza, non si dispone dei diritti necessari!
tabularResourceIsFinal = La Tabular Resource è Finale!