Fixed external file open in resources
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@112304 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
110596da88
commit
493187a0aa
|
@ -8573,6 +8573,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
resolver = new UriResolverManager(uriResolverSession
|
||||
.getApplicationType().toString());
|
||||
params.put("smp-uri", uriResolverSession.getUuid());
|
||||
params.put("fileName", uriResolverSession.getFileName());
|
||||
logger.debug("Uri Resolver params: " + params);
|
||||
link = resolver.getLink(params, true); // true, link is shorted
|
||||
// otherwise none
|
||||
|
|
|
@ -35,7 +35,7 @@ public class FilesStorage {
|
|||
|
||||
public static final Logger logger = LoggerFactory
|
||||
.getLogger(FilesStorage.class);
|
||||
|
||||
|
||||
public String storageCSVTempFile(String user, File file) {
|
||||
String url = null;
|
||||
try {
|
||||
|
|
|
@ -16,7 +16,8 @@ public class UriResolverSession implements Serializable {
|
|||
|
||||
private String uuid;
|
||||
private ApplicationType applicationType;
|
||||
|
||||
private String fileName;
|
||||
|
||||
public UriResolverSession() {
|
||||
super();
|
||||
}
|
||||
|
@ -25,6 +26,17 @@ public class UriResolverSession implements Serializable {
|
|||
super();
|
||||
this.uuid = uuid;
|
||||
this.applicationType = applicationType;
|
||||
this.fileName=null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public UriResolverSession(String uuid, ApplicationType applicationType,
|
||||
String fileName) {
|
||||
super();
|
||||
this.uuid = uuid;
|
||||
this.applicationType = applicationType;
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
|
@ -42,11 +54,21 @@ public class UriResolverSession implements Serializable {
|
|||
public void setApplicationType(ApplicationType applicationType) {
|
||||
this.applicationType = applicationType;
|
||||
}
|
||||
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UriResolverSession [uuid=" + uuid + ", applicationType="
|
||||
+ applicationType + "]";
|
||||
+ applicationType + ", fileName=" + fileName + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue