Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86555 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ef27461516
commit
de31a646e5
|
@ -191,6 +191,34 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public TabResource getTabResourceInformation(TRId trId) throws TDGWTServiceException {
|
||||||
|
try {
|
||||||
|
session = this.getThreadLocalRequest().getSession();
|
||||||
|
aslSession = SessionUtil.getAslSession(session);
|
||||||
|
|
||||||
|
TabResource currentTR=new TabResource();
|
||||||
|
currentTR.setTrId(trId);
|
||||||
|
ArrayList<TRMetadata> trMetadatas = getTRMetadata(currentTR
|
||||||
|
.getTrId());
|
||||||
|
updateTabResourceInformation(currentTR, trMetadatas);
|
||||||
|
SessionUtil.setTabResource(session, currentTR);
|
||||||
|
return currentTR;
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error(
|
||||||
|
"Error setting TabResource parameter: "
|
||||||
|
+ e.getLocalizedMessage(), e);
|
||||||
|
throw new TDGWTServiceException(
|
||||||
|
"Error setting TabResource parameter: "
|
||||||
|
+ e.getLocalizedMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void updateTabResourceInformation(TabResource tabResource,
|
protected void updateTabResourceInformation(TabResource tabResource,
|
||||||
ArrayList<TRMetadata> trMetadatas) {
|
ArrayList<TRMetadata> trMetadatas) {
|
||||||
for (TRMetadata trMetadata : trMetadatas) {
|
for (TRMetadata trMetadata : trMetadatas) {
|
||||||
|
|
Loading…
Reference in New Issue