updated set ACL for VRE as users
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@92890 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
053a0fe127
commit
1e82f26fb9
|
@ -204,7 +204,7 @@ public interface GWTWorkspaceService extends RemoteService{
|
||||||
|
|
||||||
String getMyLogin();
|
String getMyLogin();
|
||||||
|
|
||||||
void updateACLForVREbyGroupIds(String folderId, String aclType) throws Exception;
|
void updateACLForVREbyUsers(String folderId, String aclType) throws Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param folderId
|
* @param folderId
|
||||||
|
|
|
@ -182,7 +182,7 @@ public interface GWTWorkspaceServiceAsync {
|
||||||
|
|
||||||
void getMyLogin(AsyncCallback<String> callback);
|
void getMyLogin(AsyncCallback<String> callback);
|
||||||
|
|
||||||
void updateACLForVREbyGroupIds(String folderId, String aclType,
|
void updateACLForVREbyUsers(String folderId, String aclType,
|
||||||
AsyncCallback<Void> callback);
|
AsyncCallback<Void> callback);
|
||||||
|
|
||||||
void getUserACLForFolderId(String folderId,
|
void getUserACLForFolderId(String folderId,
|
||||||
|
|
|
@ -2663,7 +2663,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void updateACLForVREbyGroupIds(String folderId, String aclType) throws Exception{
|
public void updateACLForVREbyUsers(String folderId, String aclType) throws Exception{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if(folderId == null)
|
if(folderId == null)
|
||||||
|
@ -2677,7 +2677,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
|
|
||||||
if(wsItem.isShared() && (wsItem.getType().equals(WorkspaceItemType.SHARED_FOLDER))){
|
if(wsItem.isShared() && (wsItem.getType().equals(WorkspaceItemType.SHARED_FOLDER))){
|
||||||
WorkspaceSharedFolder ite = (WorkspaceSharedFolder) workspace.getItemByPath(wsItem.getPath());
|
WorkspaceSharedFolder ite = (WorkspaceSharedFolder) workspace.getItemByPath(wsItem.getPath());
|
||||||
ite.setACL(ite.getGroupIds(), ACLType.valueOf(aclType));
|
ite.setACL(ite.getUsers(), ACLType.valueOf(aclType));
|
||||||
}else
|
}else
|
||||||
throw new Exception("Source item is not shared or shared folder");
|
throw new Exception("Source item is not shared or shared folder");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue