Revision ebead1b5 src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java
b/src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java | ||
---|---|---|
91 | 91 |
close.addClickHandler(new ClickHandler() { |
92 | 92 |
|
93 | 93 |
@Override |
94 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
94 |
public void onClick(ClickEvent event) { |
|
95 | 95 |
hide(); |
96 | 96 |
} |
97 | 97 |
}); |
... | ... | |
127 | 127 |
HorizontalPanel permButtons = new HorizontalPanel(); |
128 | 128 |
Button add = new Button("Add Group", new ClickHandler() { |
129 | 129 |
@Override |
130 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
130 |
public void onClick(ClickEvent event) { |
|
131 | 131 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false); |
132 | 132 |
dlg.center(); |
133 | 133 |
} |
... | ... | |
138 | 138 |
|
139 | 139 |
Button addUser = new Button("Add User", new ClickHandler() { |
140 | 140 |
@Override |
141 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
141 |
public void onClick(ClickEvent event) { |
|
142 | 142 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true); |
143 | 143 |
dlg.center(); |
144 | 144 |
} |
... | ... | |
159 | 159 |
String okLabel = "Update"; |
160 | 160 |
final Button ok = new Button(okLabel, new ClickHandler() { |
161 | 161 |
@Override |
162 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
162 |
public void onClick(ClickEvent event) { |
|
163 | 163 |
updateFolder(); |
164 | 164 |
closeDialog(); |
165 | 165 |
} |
... | ... | |
207 | 207 |
final String path = folder.getParent().getUri() + "/" + newName; |
208 | 208 |
PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getParent().getOwner(), path) { |
209 | 209 |
@Override |
210 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
210 |
public void onSuccess(Resource result) { |
|
211 | 211 |
Iterator<File> iter = folder.getFiles().iterator(); |
212 | 212 |
app.copyFiles(iter, folder.getParent().getOwner(), folder.getParent().getUri() + "/" + newName, new Command() { |
213 | 213 |
@Override |
... | ... | |
236 | 236 |
} |
237 | 237 |
|
238 | 238 |
@Override |
239 |
protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
|
|
239 |
protected void onUnauthorized(Response response) { |
|
240 | 240 |
app.sessionExpired(); |
241 | 241 |
} |
242 | 242 |
}; |
... | ... | |
254 | 254 |
if (newPermissions != null) { |
255 | 255 |
PostRequest updateFolder = new PostRequest(app.getApiPath(), folder.getOwner(), path) { |
256 | 256 |
@Override |
257 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
257 |
public void onSuccess(Resource result) { |
|
258 | 258 |
app.updateFolder(folder.getParent(), false, new Command() { |
259 | 259 |
|
260 | 260 |
@Override |
... | ... | |
273 | 273 |
final String path1 = folder.getUri(); |
274 | 274 |
PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getOwner(), path1) { |
275 | 275 |
@Override |
276 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
276 |
public void onSuccess(Resource result) { |
|
277 | 277 |
updateMetadata(path, newPermissions); |
278 | 278 |
} |
279 | 279 |
|
... | ... | |
289 | 289 |
} |
290 | 290 |
|
291 | 291 |
@Override |
292 |
protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
|
|
292 |
protected void onUnauthorized(Response response) { |
|
293 | 293 |
app.sessionExpired(); |
294 | 294 |
} |
295 | 295 |
}; |
... | ... | |
310 | 310 |
} |
311 | 311 |
|
312 | 312 |
@Override |
313 |
protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
|
|
313 |
protected void onUnauthorized(Response response) { |
|
314 | 314 |
app.sessionExpired(); |
315 | 315 |
} |
316 | 316 |
}; |
Also available in: Unified diff