Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/rest/MultipleGetCommand.java
b/web_client/src/gr/grnet/pithos/web/client/rest/MultipleGetCommand.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client.rest; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.GSS;
|
|
37 |
import gr.grnet.pithos.web.client.Pithos;
|
|
38 | 38 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
39 | 39 |
import gr.grnet.pithos.web.client.rest.resource.FolderResource; |
40 | 40 |
import gr.grnet.pithos.web.client.rest.resource.GroupResource; |
... | ... | |
74 | 74 |
public MultipleGetCommand(Class<T> aNewClass, String[] pathToGet, boolean showLoading, Cached[] theCached) { |
75 | 75 |
setShowLoadingIndicator(showLoading); |
76 | 76 |
if (isShowLoadingIndicator()) |
77 |
GSS.get().showLoadingIndicator("Getting "+pathToGet.length+" items", null);
|
|
77 |
Pithos.get().showLoadingIndicator("Getting "+pathToGet.length+" items", null);
|
|
78 | 78 |
aclass = aNewClass; |
79 | 79 |
paths = pathToGet; |
80 | 80 |
this.cached = theCached; |
... | ... | |
156 | 156 |
boolean com = isComplete(); |
157 | 157 |
if (com) { |
158 | 158 |
if (isShowLoadingIndicator()) |
159 |
GSS.get().hideLoadingIndicator();
|
|
159 |
Pithos.get().hideLoadingIndicator();
|
|
160 | 160 |
if (hasErrors()) |
161 | 161 |
for(String p : errors.keySet()) |
162 | 162 |
onError(p, errors.get(p)); |
... | ... | |
180 | 180 |
} |
181 | 181 |
else if (aclass.equals(FileResource.class)){ |
182 | 182 |
result1 = new FileResource(path); |
183 |
result1.createFromJSON(response.getHeader("X-GSS-Metadata"));
|
|
183 |
result1.createFromJSON(response.getHeader("X-Pithos-Metadata"));
|
|
184 | 184 |
} |
185 | 185 |
else if (aclass.equals(GroupsResource.class)) { |
186 | 186 |
result1 = new GroupsResource(path); |
Also available in: Unified diff