Revision eee72ed5 src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java | ||
---|---|---|
58 | 58 |
import gr.grnet.pithos.web.client.Pithos; |
59 | 59 |
import gr.grnet.pithos.web.client.SharingUsers; |
60 | 60 |
import gr.grnet.pithos.web.client.catalog.GetUserCatalogs; |
61 |
import gr.grnet.pithos.web.client.catalog.UpdateUserCatalogs; |
|
61 | 62 |
import gr.grnet.pithos.web.client.catalog.UserCatalogs; |
62 | 63 |
import gr.grnet.pithos.web.client.foldertree.AccountResource; |
63 | 64 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
... | ... | |
201 | 202 |
fetchSharedContainers(userLevelDataProviderForIDs.getList().iterator(), callback); |
202 | 203 |
} else { |
203 | 204 |
// First fetch unknown display names and then proceed |
204 |
new GetUserCatalogs(app, userIDsWithUnknownDisplayNames) {
|
|
205 |
new UpdateUserCatalogs(app, userIDsWithUnknownDisplayNames) {
|
|
205 | 206 |
@Override |
206 |
public void onSuccess(Request request, Response response, JSONObject result, UserCatalogs userCatalogs) { |
|
207 |
// for(Map.Entry<String, String> entry : userCatalogs) { |
|
208 |
// final String id = entry.getKey(); |
|
209 |
// final String name = entry.getValue(); |
|
210 |
// LOG("mapping: userID("+id+") -> name("+name+")"); |
|
211 |
// } |
|
212 |
|
|
213 |
// Update the cached user catalogs |
|
214 |
app.getUserCatalogs().updateFrom(userCatalogs); |
|
215 |
|
|
207 |
public void onSuccess(UserCatalogs requestedUserCatalogs, UserCatalogs updatedUserCatalogs) { |
|
216 | 208 |
fetchSharedContainers(userLevelDataProviderForIDs.getList().iterator(), callback); |
217 | 209 |
} |
218 | 210 |
|
Also available in: Unified diff