Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@90598 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9f3f7fbd7d
commit
4f843a681f
|
@ -72,6 +72,13 @@ public interface TDGWTService extends RemoteService {
|
||||||
public TabResource getTabResourceInformation(TRId trId) throws TDGWTServiceException;
|
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
|
* Set current tabular resource
|
||||||
|
|
|
@ -50,6 +50,8 @@ public interface TDGWTServiceAsync {
|
||||||
|
|
||||||
void getTabResourceInformation(TRId trId,AsyncCallback<TabResource> callback);
|
void getTabResourceInformation(TRId trId,AsyncCallback<TabResource> callback);
|
||||||
|
|
||||||
|
void getTRCreationDate(TRId trId,AsyncCallback<String> callback);
|
||||||
|
|
||||||
void setTabResource(TabResource tabResource, AsyncCallback<Void> callback);
|
void setTabResource(TabResource tabResource, AsyncCallback<Void> callback);
|
||||||
|
|
||||||
void getTabularResources(AsyncCallback<ArrayList<TabResource>> callback);
|
void getTabularResources(AsyncCallback<ArrayList<TabResource>> callback);
|
||||||
|
|
|
@ -1415,7 +1415,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
FileUtil.setImportFile(fileUploadSession, is, wi.getName(),
|
FileUtil.setImportFile(fileUploadSession, is, wi.getName(),
|
||||||
"text/csv");
|
"text/csv");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
fileUploadSession.getFileUploadMonitor().setFailed(
|
fileUploadSession/**
|
||||||
|
* Get informations on tabular resource
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* @throws TDGWTServiceException
|
||||||
|
*/.getFileUploadMonitor().setFailed(
|
||||||
"An error occured elaborating the file",
|
"An error occured elaborating the file",
|
||||||
FileUtil.exceptionDetailMessage(e));
|
FileUtil.exceptionDetailMessage(e));
|
||||||
fileUploadSession.setFileUploadState(FileUploadState.FAILED);
|
fileUploadSession.setFileUploadState(FileUploadState.FAILED);
|
||||||
|
@ -1431,7 +1436,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
FileUploadState.COMPLETED);
|
FileUploadState.COMPLETED);
|
||||||
SessionUtil.setFileUploadSession(session, fileUploadSession);
|
SessionUtil.setFileUploadSession(session, fileUploadSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
public String getTRCreationDate(TRId trId) throws TDGWTServiceException {
|
public String getTRCreationDate(TRId trId) throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
|
|
Loading…
Reference in New Issue