[Task #17524] Hiding 'Add Administrator" on VRE Folders
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@181717 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
40f4088413
commit
e15c1d8ebe
|
@ -2092,7 +2092,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
|
|
||||||
} else if (event instanceof UpdatedVREPermissionEvent) {
|
} else if (event instanceof UpdatedVREPermissionEvent) {
|
||||||
UpdatedVREPermissionEvent vreEvent = (UpdatedVREPermissionEvent) event;
|
UpdatedVREPermissionEvent vreEvent = (UpdatedVREPermissionEvent) event;
|
||||||
sub.updatedVREPermissions(vreEvent.getVreFolderId());
|
sub.updatedVREPermissions(vreEvent.getVreFolder());
|
||||||
|
|
||||||
} else if (event instanceof UpdateWorkspaceSizeEvent) {
|
} else if (event instanceof UpdateWorkspaceSizeEvent) {
|
||||||
sub.updateWorksapaceSize(true);
|
sub.updateWorksapaceSize(true);
|
||||||
|
|
|
@ -2,37 +2,56 @@ package org.gcube.portlets.user.workspace.client.event;
|
||||||
|
|
||||||
import org.gcube.portlets.user.workspace.client.interfaces.EventsTypeEnum;
|
import org.gcube.portlets.user.workspace.client.interfaces.EventsTypeEnum;
|
||||||
import org.gcube.portlets.user.workspace.client.interfaces.GuiEventInterface;
|
import org.gcube.portlets.user.workspace.client.interfaces.GuiEventInterface;
|
||||||
|
import org.gcube.portlets.user.workspace.client.model.FileModel;
|
||||||
|
|
||||||
import com.google.gwt.event.shared.GwtEvent;
|
import com.google.gwt.event.shared.GwtEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The Class UpdatedVREPermissionEvent.
|
||||||
*
|
*
|
||||||
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
||||||
* Mar 14, 2014
|
|
||||||
*
|
*
|
||||||
|
* Sep 17, 2019
|
||||||
*/
|
*/
|
||||||
public class UpdatedVREPermissionEvent extends GwtEvent<UpdatedVREPermissionEventHandler> implements GuiEventInterface {
|
public class UpdatedVREPermissionEvent extends GwtEvent<UpdatedVREPermissionEventHandler> implements GuiEventInterface {
|
||||||
public static Type<UpdatedVREPermissionEventHandler> TYPE = new Type<UpdatedVREPermissionEventHandler>();
|
public static Type<UpdatedVREPermissionEventHandler> TYPE = new Type<UpdatedVREPermissionEventHandler>();
|
||||||
|
|
||||||
private String vreFolderId = null;
|
private FileModel vreFolder = null;
|
||||||
|
|
||||||
public UpdatedVREPermissionEvent(String folderId) {
|
/**
|
||||||
this.vreFolderId = folderId;
|
* Instantiates a new updated VRE permission event.
|
||||||
|
*
|
||||||
|
* @param folder the folder
|
||||||
|
*/
|
||||||
|
public UpdatedVREPermissionEvent(FileModel folder) {
|
||||||
|
this.vreFolder = folder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Type<UpdatedVREPermissionEventHandler> getAssociatedType() {
|
public Type<UpdatedVREPermissionEventHandler> getAssociatedType() {
|
||||||
return TYPE;
|
return TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void dispatch(UpdatedVREPermissionEventHandler handler) {
|
protected void dispatch(UpdatedVREPermissionEventHandler handler) {
|
||||||
handler.onUpdateVREPermissions(this);
|
handler.onUpdateVREPermissions(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVreFolderId() {
|
/**
|
||||||
return vreFolderId;
|
* Gets the vre folder.
|
||||||
|
*
|
||||||
|
* @return the vre folder
|
||||||
|
*/
|
||||||
|
public FileModel getVreFolder() {
|
||||||
|
return vreFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
|
@ -159,11 +159,11 @@ public interface SubscriberInterface {
|
||||||
List<FileModel> targetFileModels);
|
List<FileModel> targetFileModels);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updated vre permissions.
|
* Updated VRE permissions.
|
||||||
*
|
*
|
||||||
* @param vreFolderId the vre folder id
|
* @param vreFolder the vre folder
|
||||||
*/
|
*/
|
||||||
void updatedVREPermissions(String vreFolderId);
|
void updatedVREPermissions(FileModel vreFolder);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changed file model id.
|
* Changed file model id.
|
||||||
|
|
|
@ -159,7 +159,7 @@ public class DialogPermission extends Dialog {
|
||||||
"The permissions have been changed correctly");
|
"The permissions have been changed correctly");
|
||||||
|
|
||||||
AppControllerExplorer.getEventBus()
|
AppControllerExplorer.getEventBus()
|
||||||
.fireEvent(new UpdatedVREPermissionEvent(folder.getIdentifier()));
|
.fireEvent(new UpdatedVREPermissionEvent(folder));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue