Fixed access type to comply with StorageHub

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-sharing-widget@179466 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-05-17 10:15:36 +00:00
parent cbc49652b1
commit f90fa79e66
3 changed files with 5 additions and 5 deletions

View File

@ -531,7 +531,7 @@ public class GWTWorkspaceSharingBuilder {
break;
case WRITE_ALL:
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ANY, "Write Any", false, USER_TYPE.OTHER,
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ALL, "Write Any", false, USER_TYPE.OTHER,
"Any user can update/delete any file"));
break;
@ -582,7 +582,7 @@ public class GWTWorkspaceSharingBuilder {
break;
case WRITE_ALL:
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ANY, "Write Any", false, USER_TYPE.OTHER,
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ALL, "Write Any", false, USER_TYPE.OTHER,
"Any user can update/delete any file"));
break;
default:
@ -631,7 +631,7 @@ public class GWTWorkspaceSharingBuilder {
break;
case WRITE_ALL:
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ANY, "Write Any", false, USER_TYPE.OTHER,
acls.add(new WorkspaceACL(acl.toString(), ACL_TYPE.WRITE_ALL, "Write All", false, USER_TYPE.OTHER,
"Any user can update/delete any file"));
break;
default:

View File

@ -566,7 +566,7 @@ public class WorkspaceSharingServiceImpl extends RemoteServiceServlet implements
switch (acl.getAclType()) {
case READ_ONLY:
return AccessType.READ_ONLY;
case WRITE_ANY:
case WRITE_ALL:
return AccessType.WRITE_ALL;
case WRITE_OWNER:
return AccessType.WRITE_OWNER;

View File

@ -13,6 +13,6 @@ public enum ACL_TYPE {
ADMINISTRATOR, // "Users are administrators"
READ_ONLY, // "Users can read any file but cannot update/delete"
WRITE_OWNER, //"Users can update/delete only their files"
WRITE_ANY; //"Any user can update/delete any file"
WRITE_ALL; //"Any user can update/delete any file"
}