Revision dc8cc18a src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java | ||
---|---|---|
175 | 175 |
// }-*/; |
176 | 176 |
|
177 | 177 |
private void fetchSharingUsers(final Command callback) { |
178 |
GetRequest<SharingUsers> getSharingUsers = new GetRequest<SharingUsers>(app, SharingUsers.class, app.getApiPath(), "", "?format=json") {
|
|
178 |
GetRequest<SharingUsers> getSharingUsers = new GetRequest<SharingUsers>(SharingUsers.class, app.getApiPath(), "", "?format=json") { |
|
179 | 179 |
@Override |
180 | 180 |
public void onSuccess(final SharingUsers _result) { |
181 | 181 |
userLevelDataProviderForIDs.getList().clear(); |
... | ... | |
285 | 285 |
} |
286 | 286 |
|
287 | 287 |
private void fetchSharedContainers(final String userID, final ListDataProvider<Folder> dataProvider, final Command callback) { |
288 |
GetRequest<AccountResource> getUserSharedContainers = new GetRequest<AccountResource>(app, AccountResource.class, app.getApiPath(), userID, "?format=json") {
|
|
288 |
GetRequest<AccountResource> getUserSharedContainers = new GetRequest<AccountResource>(AccountResource.class, app.getApiPath(), userID, "?format=json") { |
|
289 | 289 |
|
290 | 290 |
@Override |
291 | 291 |
public void onSuccess(AccountResource _result) { |
... | ... | |
330 | 330 |
final Folder f = folderIterator.next(); |
331 | 331 |
|
332 | 332 |
String path = "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()); |
333 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(app, Folder.class, app.getApiPath(), userID, path, f) {
|
|
333 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), userID, path, f) { |
|
334 | 334 |
@Override |
335 | 335 |
public void onSuccess(Folder _result) { |
336 | 336 |
dataProvider.getList().add(_result); |
... | ... | |
376 | 376 |
|
377 | 377 |
public void fetchFolder(final Folder f, final ListDataProvider<Folder> dataProvider, final boolean showfiles, final Command callback) { |
378 | 378 |
String path = "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()); |
379 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(app, Folder.class, app.getApiPath(), f.getOwnerID(), path, f) {
|
|
379 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), f.getOwnerID(), path, f) { |
|
380 | 380 |
@Override |
381 | 381 |
public void onSuccess(final Folder _result) { |
382 | 382 |
if(showfiles) { |
Also available in: Unified diff