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 235c948..0c39137 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 @@ -72,6 +72,13 @@ public interface TDGWTService extends RemoteService { public TabResource getTabResourceInformation(TRId trId) throws TDGWTServiceException; + /** + * Get creation date on tabular resource + * + * @return + * @throws TDGWTServiceException + */ + public String getTRCreationDate(TRId trId) throws TDGWTServiceException; /** * Set current tabular resource 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 5691d87..c673546 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 @@ -50,6 +50,8 @@ public interface TDGWTServiceAsync { void getTabResourceInformation(TRId trId,AsyncCallback callback); + void getTRCreationDate(TRId trId,AsyncCallback callback); + void setTabResource(TabResource tabResource, AsyncCallback callback); void getTabularResources(AsyncCallback> callback); diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index 563b626..ad58d03 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -1415,7 +1415,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements FileUtil.setImportFile(fileUploadSession, is, wi.getName(), "text/csv"); } catch (Exception e) { - fileUploadSession.getFileUploadMonitor().setFailed( + fileUploadSession/** + * Get informations on tabular resource + * + * @return + * @throws TDGWTServiceException + */.getFileUploadMonitor().setFailed( "An error occured elaborating the file", FileUtil.exceptionDetailMessage(e)); fileUploadSession.setFileUploadState(FileUploadState.FAILED); @@ -1431,7 +1436,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements FileUploadState.COMPLETED); SessionUtil.setFileUploadSession(session, fileUploadSession); } - + + + /** + * + * {@inheritDoc} + */ public String getTRCreationDate(TRId trId) throws TDGWTServiceException { try { HttpSession session = this.getThreadLocalRequest().getSession();