added admin icon for ACL

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@91862 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-02-18 16:15:20 +00:00
parent 811c284756
commit 8156873a0b
7 changed files with 11 additions and 3 deletions

View File

@ -301,5 +301,8 @@ public interface Icons extends ClientBundle {
@Source("icons/vreShare.png") @Source("icons/vreShare.png")
ImageResource vreFolder(); ImageResource vreFolder();
@Source("icons/admin.png")
ImageResource administrator();
} }

View File

@ -80,6 +80,11 @@ public class Resources {
return AbstractImagePrototype.create(ICONS.users()); return AbstractImagePrototype.create(ICONS.users());
} }
public static AbstractImagePrototype getIconAdministrator(){
return AbstractImagePrototype.create(ICONS.administrator());
}
public static AbstractImagePrototype getIconCut(){ public static AbstractImagePrototype getIconCut(){
return AbstractImagePrototype.create(ICONS.cut()); return AbstractImagePrototype.create(ICONS.cut());

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -23,6 +23,7 @@ public class GetPermissionIconByACL {
String id = acl.getId(); String id = acl.getId();
if (id.compareTo("ADMINISTRATOR") == 0) { if (id.compareTo("ADMINISTRATOR") == 0) {
return Resources.getIconAdministrator();
} else if (id.compareTo("READ_ONLY") == 0) { } else if (id.compareTo("READ_ONLY") == 0) {
return Resources.getIconReadOnly(); return Resources.getIconReadOnly();
} else if (id.compareTo("WRITE_OWNER") == 0) { } else if (id.compareTo("WRITE_OWNER") == 0) {

View File

@ -2,7 +2,6 @@ package org.gcube.portlets.user.workspace.client.view.sharing;
import java.util.List; import java.util.List;
import org.gcube.portlets.user.workspace.client.resources.Resources;
import org.gcube.portlets.user.workspace.client.util.GetPermissionIconByACL; import org.gcube.portlets.user.workspace.client.util.GetPermissionIconByACL;
import org.gcube.portlets.user.workspace.shared.WorkspaceACL; import org.gcube.portlets.user.workspace.shared.WorkspaceACL;
import org.gcube.portlets.user.workspace.shared.WorkspaceACL.USER_TYPE; import org.gcube.portlets.user.workspace.shared.WorkspaceACL.USER_TYPE;

View File

@ -2102,7 +2102,7 @@ public class GWTWorkspaceBuilder {
switch (acl) { switch (acl) {
case ADMINISTRATOR: case ADMINISTRATOR:
acls.add(new WorkspaceACL(acl.toString(), acl.toString(), false, USER_TYPE.ADMINISTRATOR, "")); acls.add(new WorkspaceACL(acl.toString(), "Admin", false, USER_TYPE.ADMINISTRATOR, ""));
break; break;
case READ_ONLY: case READ_ONLY:
acls.add(new WorkspaceACL(acl.toString(), "Read Only", false, USER_TYPE.OTHER, "Users can read any file but cannot update/delete")); acls.add(new WorkspaceACL(acl.toString(), "Read Only", false, USER_TYPE.OTHER, "Users can read any file but cannot update/delete"));

View File

@ -111,7 +111,7 @@ public class WsUtil {
// }else if(user.compareToIgnoreCase("francesco.mangiacrapa")==0){ // }else if(user.compareToIgnoreCase("francesco.mangiacrapa")==0){
// //
// withoutPortal = true; // withoutPortal = true;
//END UNCOMMENT //// END UNCOMMENT
}else{ }else{
withoutPortal = false; withoutPortal = false;