updated Edit Permissions
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@111520 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5e194f7591
commit
2fd0cfe27d
|
@ -148,10 +148,10 @@ import org.gcube.portlets.widgets.fileupload.client.events.FileUploadCompleteEve
|
||||||
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadCompleteEventHandler;
|
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadCompleteEventHandler;
|
||||||
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadSelectedEvent;
|
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadSelectedEvent;
|
||||||
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadSelectedEventHandler;
|
import org.gcube.portlets.widgets.fileupload.client.events.FileUploadSelectedEventHandler;
|
||||||
|
import org.gcube.portlets.widgets.workspacesharingwidget.client.ConstantsSharing.LOAD_CONTACTS_AS;
|
||||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.MultiDragContactsEditPermissions;
|
import org.gcube.portlets.widgets.workspacesharingwidget.client.MultiDragContactsEditPermissions;
|
||||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.SimpleMultiDragConstants;
|
import org.gcube.portlets.widgets.workspacesharingwidget.client.MultiDragConstants;
|
||||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.SimpleMultiDragWorkspaceContact;
|
import org.gcube.portlets.widgets.workspacesharingwidget.client.SimpleMultiDragWorkspaceContact;
|
||||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.SimpleMultiDragWorkspaceContact.LOAD_CONTACTS_AS;
|
|
||||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing.multisuggest.DialogMultiDragContact;
|
import org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing.multisuggest.DialogMultiDragContact;
|
||||||
|
|
||||||
import com.extjs.gxt.ui.client.Registry;
|
import com.extjs.gxt.ui.client.Registry;
|
||||||
|
@ -2177,12 +2177,13 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
private void ediPermissions(final FileModel file) {
|
private void ediPermissions(final FileModel file) {
|
||||||
|
|
||||||
GWT.log("Edit Permissions on "+file);
|
GWT.log("Edit Permissions on "+file);
|
||||||
SimpleMultiDragConstants.HEADING_DIALOG = "Edit User/s permissions to: "+file.getName();
|
MultiDragConstants.HEADING_DIALOG = "Edit User/s permissions to: "+file.getName();
|
||||||
SimpleMultiDragConstants.ALL_CONTACTS_LEFT_LIST = "Shared User/s";
|
MultiDragConstants.ALL_CONTACTS_LEFT_LIST = "Shared User/s";
|
||||||
SimpleMultiDragConstants.SHARE_WITH_RIGHT_LIST = "Set permissions for User/s";
|
MultiDragConstants.SHARE_WITH_RIGHT_LIST = "Set permissions for User/s";
|
||||||
|
|
||||||
final MultiDragContactsEditPermissions multiDragContact = new MultiDragContactsEditPermissions(LOAD_CONTACTS_AS.SHARED_USER, file.getIdentifier(), false, false, true);
|
final MultiDragContactsEditPermissions multiDragContact = new MultiDragContactsEditPermissions(LOAD_CONTACTS_AS.SHARED_USER, file.getIdentifier(), true);
|
||||||
|
|
||||||
|
new MultiDragContactsEditPermissions(LOAD_CONTACTS_AS.SHARED_USER, file.getIdentifier(), true);
|
||||||
final DialogMultiDragContact multidrag = multiDragContact.getDialog();
|
final DialogMultiDragContact multidrag = multiDragContact.getDialog();
|
||||||
|
|
||||||
multidrag.setTxtHelp("Sets the permission for the user(s) dragged in the right list");
|
multidrag.setTxtHelp("Sets the permission for the user(s) dragged in the right list");
|
||||||
|
@ -2260,9 +2261,9 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
*/
|
*/
|
||||||
private void showAddAdministratorsDialog(final FileModel file) {
|
private void showAddAdministratorsDialog(final FileModel file) {
|
||||||
|
|
||||||
SimpleMultiDragConstants.HEADING_DIALOG = "Edit Administrator/s to: "+file.getName();
|
MultiDragConstants.HEADING_DIALOG = "Edit Administrator/s to: "+file.getName();
|
||||||
SimpleMultiDragConstants.ALL_CONTACTS_LEFT_LIST = "All Contacts";
|
MultiDragConstants.ALL_CONTACTS_LEFT_LIST = "All Contacts";
|
||||||
SimpleMultiDragConstants.SHARE_WITH_RIGHT_LIST = "New Administrator/s";
|
MultiDragConstants.SHARE_WITH_RIGHT_LIST = "New Administrator/s";
|
||||||
|
|
||||||
final SimpleMultiDragWorkspaceContact multiDragContact = new SimpleMultiDragWorkspaceContact(LOAD_CONTACTS_AS.ADMINISTRATOR, file.getIdentifier(), true, false, true);
|
final SimpleMultiDragWorkspaceContact multiDragContact = new SimpleMultiDragWorkspaceContact(LOAD_CONTACTS_AS.ADMINISTRATOR, file.getIdentifier(), true, false, true);
|
||||||
final Dialog multidrag = multiDragContact.getDialogMultiDragContact();
|
final Dialog multidrag = multiDragContact.getDialogMultiDragContact();
|
||||||
|
|
Loading…
Reference in New Issue