Added userstore to Dialog Create a Shared Folder
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@128608 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8bd79e021d
commit
c22dbbbdb3
|
@ -441,7 +441,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isNewFolder)
|
if(isNewFolder)
|
||||||
dialogSharedFolder = new DialogShareFolder(parentDirectoryName,eventBus);
|
dialogSharedFolder = new DialogShareFolder(parentDirectoryName, eventBus, userStore);
|
||||||
else
|
else
|
||||||
dialogSharedFolder = new DialogShareFolder(parentDirectoryName, sourceFileModel, eventBus, userStore);
|
dialogSharedFolder = new DialogShareFolder(parentDirectoryName, sourceFileModel, eventBus, userStore);
|
||||||
|
|
||||||
|
|
|
@ -64,8 +64,7 @@ public class DialogShareFolder extends Dialog {
|
||||||
* @param eventBus the event bus
|
* @param eventBus the event bus
|
||||||
*/
|
*/
|
||||||
public DialogShareFolder(String folderParentName, final FileModel folder, HandlerManager eventBus, UserStore userStore) {
|
public DialogShareFolder(String folderParentName, final FileModel folder, HandlerManager eventBus, UserStore userStore) {
|
||||||
this.userStore = userStore;
|
initUserStore(userStore);
|
||||||
this.suggestPanel = new MultiValuePanel(userStore);
|
|
||||||
initLayout(folderParentName);
|
initLayout(folderParentName);
|
||||||
this.parentFolder = folder;
|
this.parentFolder = folder;
|
||||||
this.setIcon(Resources.getIconShareFolder());
|
this.setIcon(Resources.getIconShareFolder());
|
||||||
|
@ -176,6 +175,11 @@ public class DialogShareFolder extends Dialog {
|
||||||
this.show();
|
this.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void initUserStore(UserStore userStore){
|
||||||
|
this.userStore = userStore;
|
||||||
|
this.suggestPanel = new MultiValuePanel(userStore);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update recipient of share.
|
* Update recipient of share.
|
||||||
*
|
*
|
||||||
|
@ -290,9 +294,10 @@ public class DialogShareFolder extends Dialog {
|
||||||
*
|
*
|
||||||
* @param folderParentName the folder parent name
|
* @param folderParentName the folder parent name
|
||||||
* @param eventBus the event bus
|
* @param eventBus the event bus
|
||||||
|
* @param userStore the user store
|
||||||
*/
|
*/
|
||||||
public DialogShareFolder(String folderParentName, HandlerManager eventBus) {
|
public DialogShareFolder(String folderParentName, HandlerManager eventBus, UserStore userStore) {
|
||||||
|
initUserStore(userStore);
|
||||||
initLayout(folderParentName);
|
initLayout(folderParentName);
|
||||||
this.setIcon(Resources.getIconSharedFolder());
|
this.setIcon(Resources.getIconSharedFolder());
|
||||||
setHeading("Create a new shared folder in: "+folderParentName);
|
setHeading("Create a new shared folder in: "+folderParentName);
|
||||||
|
|
|
@ -2758,7 +2758,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
public String getACLsDescriptionForWorkspaceItemById(String workspaceItemId) throws Exception{
|
public String getACLsDescriptionForWorkspaceItemById(String workspaceItemId) throws Exception{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
workspaceLogger.trace("Get ACLsDescriptionForWorkspaceItemById: "+workspaceItemId);
|
workspaceLogger.info("Get ACLsDescriptionForWorkspaceItemById: "+workspaceItemId);
|
||||||
|
|
||||||
Workspace workspace = getWorkspace();
|
Workspace workspace = getWorkspace();
|
||||||
WorkspaceItem wsItem = workspace.getItem(workspaceItemId);
|
WorkspaceItem wsItem = workspace.getItem(workspaceItemId);
|
||||||
|
|
Loading…
Reference in New Issue