Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@93404 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9eb4a6a1aa
commit
c973a5f7a3
|
@ -229,7 +229,13 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
"CURRENT_TABULAR_RESOURCE is null");
|
||||
}
|
||||
logger.debug("GetTabResourceInformation():" + currentTR.toString());
|
||||
|
||||
|
||||
if(currentTR.getTrId()==null){
|
||||
logger.error("CURRENT_TABULAR_RESOURCE has TRId null");
|
||||
throw new TDGWTServiceException(
|
||||
"CURRENT_TABULAR_RESOURCE has TRId null");
|
||||
}
|
||||
|
||||
ArrayList<TRMetadata> trMetadatas = getTRMetadata(currentTR
|
||||
.getTrId());
|
||||
updateTabResourceInformation(currentTR, trMetadatas);
|
||||
|
@ -260,8 +266,15 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
@SuppressWarnings("unused")
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
// ASLSession aslSession = SessionUtil.getAslSession(session);
|
||||
logger.debug("GetTabResourceInformation(TRId):" + trId.toString());
|
||||
if(trId==null){
|
||||
logger.error("GetTabularREsourceInformation TRId is null");
|
||||
throw new TDGWTServiceException(
|
||||
"GetTabularREsourceInformation TRId is null");
|
||||
}
|
||||
|
||||
logger.debug("GetTabResourceInformation:" + trId.toString());
|
||||
TabResource currentTR = new TabResource();
|
||||
currentTR.setTrId(trId);
|
||||
|
||||
ArrayList<TRMetadata> trMetadatas = getTRMetadata(currentTR
|
||||
.getTrId());
|
||||
|
@ -1151,7 +1164,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
ASLSession aslSession = SessionUtil.getAslSession(session);
|
||||
|
||||
logger.debug("GetTabularResources");
|
||||
AuthorizationProvider.instance.set(new AuthorizationToken(
|
||||
aslSession.getUsername()));
|
||||
TabularDataService service = TabularDataServiceFactory.getService();
|
||||
|
@ -1164,6 +1177,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
int i;
|
||||
for (i = 0; i < trs.size(); i++) {
|
||||
TabularResource tr = trs.get(i);
|
||||
logger.debug("GetTabularResources RetrieveMetadata");
|
||||
try {
|
||||
TabResource t = retrieveTRMetadataFromService(service, tr,
|
||||
i);
|
||||
|
@ -2066,8 +2080,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
ASLSession aslSession = SessionUtil.getAslSession(session);
|
||||
|
||||
logger.debug("GetTRMetadata on " + trId.toString());
|
||||
|
||||
logger.debug("GetTRMetadata on " + trId);
|
||||
|
||||
AuthorizationProvider.instance.set(new AuthorizationToken(
|
||||
aslSession.getUsername()));
|
||||
|
@ -3980,9 +3994,10 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
Table table = service.getLastTable(serviceTR);
|
||||
|
||||
TRId trId = new TRId(
|
||||
new Long(cloned.getId().getValue()).toString(), new Long(
|
||||
table.getId().getValue()).toString());
|
||||
trId.setTableType(table.getTableType().getName());
|
||||
new Long(cloned.getId().getValue()).toString(),
|
||||
cloned.getTableType(),
|
||||
new Long(
|
||||
table.getId().getValue()).toString(), table.getTableType().getName());
|
||||
|
||||
TabResource tabResource = new TabResource();
|
||||
tabResource.setTrId(trId);
|
||||
|
|
Loading…
Reference in New Issue