Revision 34cd9aff
b/src/gr/grnet/pithos/web/client/Const.java | ||
---|---|---|
24 | 24 |
public static final String LOGIN_URL = "loginUrl"; |
25 | 25 |
|
26 | 26 |
public static final String PERCENT_100 = "100%"; |
27 |
public static final String PERCENT_75 = "75%"; |
|
28 |
|
|
27 | 29 |
public static final String DATE_FORMAT_1 = "EEE, dd MMM yyyy HH:mm:ss"; |
28 | 30 |
public static final String AUTH_COOKIE = "authCookie"; |
29 | 31 |
|
b/src/gr/grnet/pithos/web/client/FileShareDialog.java | ||
---|---|---|
272 | 272 |
}); |
273 | 273 |
addUser.addStyleName("button"); |
274 | 274 |
permButtons.add(addUser); |
275 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER); |
|
276 | 275 |
|
277 |
Button add = new Button("Add Group", new ClickHandler() { |
|
276 |
Button addGroup = new Button("Add Group", new ClickHandler() {
|
|
278 | 277 |
@Override |
279 | 278 |
public void onClick(ClickEvent event) { |
280 | 279 |
if (app.getAccount().getGroups().isEmpty()) { |
... | ... | |
298 | 297 |
} |
299 | 298 |
} |
300 | 299 |
}); |
301 |
add.addStyleName("button"); |
|
302 |
permButtons.add(add); |
|
303 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
300 |
addGroup.addStyleName("button"); |
|
301 |
permButtons.add(addGroup); |
|
304 | 302 |
|
303 |
|
|
304 |
Button addEverybody = new Button("Add everybody", new ClickHandler() { |
|
305 |
@Override |
|
306 |
public void onClick(ClickEvent event) { |
|
307 |
Pithos.LOG("Adding to Everybody"); |
|
308 |
Pithos.LOG(""); |
|
309 |
permList.addPermission("*", true, false); |
|
310 |
permList.updatePermissionTable(); |
|
311 |
} |
|
312 |
}); |
|
313 |
addEverybody.addStyleName("button"); |
|
314 |
permButtons.add(addEverybody); |
|
315 |
|
|
316 |
permButtons.setCellHorizontalAlignment(addGroup, HasHorizontalAlignment.ALIGN_CENTER); |
|
305 | 317 |
privatePermPanel.add(permList); |
306 | 318 |
privatePermPanel.add(permButtons); |
307 | 319 |
|
b/src/gr/grnet/pithos/web/client/PermissionsAddDialog.java | ||
---|---|---|
189 | 189 |
public void onSuccess(UserCatalogs requestedUserCatalogs, UserCatalogs updatedUserCatalogs) { |
190 | 190 |
final String userID = updatedUserCatalogs.getID(userDisplayName); |
191 | 191 |
if(userID == null) { |
192 |
Pithos.LOG("PermissionsDialog::addUserPermission(), UpdateUserCatalogs() => Unknown user ", userDisplayName); |
|
192 | 193 |
app.displayWarning("Unknown user " + userDisplayName); |
193 | 194 |
} |
194 | 195 |
else if(!alreadyHasPermission(userID)) { |
b/src/gr/grnet/pithos/web/client/PermissionsList.java | ||
---|---|---|
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
public void addPermission(String userID, boolean read, boolean write) { |
133 |
Pithos.LOG("PermissionsList::addPermission(userID=", userID, ", read=", read, ", write=", write, ")"); |
|
133 | 134 |
permissions.put(userID, new Boolean[]{Boolean.valueOf(read), Boolean.valueOf(write)}); |
134 | 135 |
hasChanges = true; |
135 | 136 |
updatePermissionTable(); |
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
399 | 399 |
} |
400 | 400 |
|
401 | 401 |
private void initialize() { |
402 |
userCatalogs.updateWithIDAndName("*", "All Pithos users"); |
|
403 |
|
|
402 | 404 |
lastModified = new Date(); //Initialize if-modified-since value with now. |
403 | 405 |
resources.pithosCss().ensureInjected(); |
404 | 406 |
boolean bareContent = Window.Location.getParameter("noframe") != null; |
405 |
String contentWidth = bareContent ? Const.PERCENT_100 : "75%";
|
|
407 |
String contentWidth = bareContent ? Const.PERCENT_100 : Const.PERCENT_75;
|
|
406 | 408 |
|
407 | 409 |
VerticalPanel outer = new VerticalPanel(); |
408 | 410 |
outer.setWidth(Const.PERCENT_100); |
Also available in: Unified diff