summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-07-18 07:57:11 (EDT)
committerStephan Born2013-09-23 04:54:18 (EDT)
commit7a3cec7b0f6445561bd70e3100d448fa24adc5c0 (patch)
treeeefef20da4a0ad36e54848cc7c4e8b17aa31d470
parent418020068bc6ee612531ba6567c6ccdad756212b (diff)
downloadorg.eclipse.stardust.ui.web-7a3cec7b0f6445561bd70e3100d448fa24adc5c0.zip
org.eclipse.stardust.ui.web-7a3cec7b0f6445561bd70e3100d448fa24adc5c0.tar.gz
org.eclipse.stardust.ui.web-7a3cec7b0f6445561bd70e3100d448fa24adc5c0.tar.bz2
Jira-ID: CRNT-29650
-Override openPopup in InviteParticipantsDialog.java and initialized notInvitedUser using getModelService().getNotInvitedUsers(). Removed the engine call from InviteParticipantsDialog.getNotInvitedUsers() git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@66100 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/portal/InviteParticipantsDialog.java26
1 files changed, 17 insertions, 9 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/portal/InviteParticipantsDialog.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/portal/InviteParticipantsDialog.java
index 90a701e..553bd20 100644
--- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/portal/InviteParticipantsDialog.java
+++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/portal/InviteParticipantsDialog.java
@@ -24,6 +24,7 @@ import javax.servlet.ServletContext;
import com.google.gson.JsonObject;
+import org.eclipse.stardust.common.CollectionUtils;
import org.eclipse.stardust.engine.api.runtime.User;
import org.eclipse.stardust.ui.web.common.PopupUIComponentBean;
import org.eclipse.stardust.ui.web.modeler.marshaling.JsonMarshaller;
@@ -42,6 +43,8 @@ public class InviteParticipantsDialog extends PopupUIComponentBean
private boolean notifyViaAlert;
private List<String> selectedUserAccounts;
+
+ private List<SelectItem> notInvitedUsers;
public InviteParticipantsDialog()
{
@@ -49,6 +52,18 @@ public class InviteParticipantsDialog extends PopupUIComponentBean
initialize();
}
+ @Override
+ public void openPopup()
+ {
+ List<User> userList = getModelService().getNotInvitedUsers();
+ notInvitedUsers = CollectionUtils.newArrayList();
+ for (User user : userList)
+ {
+ notInvitedUsers.add(new SelectItem(user.getAccount(), user.getFirstName() + " " + user.getLastName() + " ("
+ + user.getAccount() + ")"));
+ }
+ super.openPopup();
+ }
public ModelService getModelService()
{
return modelService;
@@ -83,15 +98,7 @@ public class InviteParticipantsDialog extends PopupUIComponentBean
*/
public List<SelectItem> getNotInvitedUsers()
{
- List<SelectItem> selectItemList = new ArrayList<SelectItem>();
-
- for (User user : getModelService().getNotInvitedUsers())
- {
- selectItemList.add(new SelectItem(user.getAccount(), user.getFirstName() + " "
- + user.getLastName() + " (" + user.getAccount() + ")"));
- }
-
- return selectItemList;
+ return notInvitedUsers;
}
/**
@@ -148,5 +155,6 @@ public class InviteParticipantsDialog extends PopupUIComponentBean
public void initialize()
{
selectedUserAccounts = new ArrayList<String>();
+ notInvitedUsers = new ArrayList<SelectItem>();
}
}