summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-05-14 07:46:08 (EDT)
committer Stephan Born2013-08-28 12:51:28 (EDT)
commit2f2a3d35f8ff4ecbe808446a672b327df5f5862d (patch)
treee6e015a8916f6ce5dce17eefd2fa9918a12abe02
parent66793bf7b1d5e1eaa26ca8a827aec3be23a65a9a (diff)
downloadorg.eclipse.stardust.ui.web-2f2a3d35f8ff4ecbe808446a672b327df5f5862d.zip
org.eclipse.stardust.ui.web-2f2a3d35f8ff4ecbe808446a672b327df5f5862d.tar.gz
org.eclipse.stardust.ui.web-2f2a3d35f8ff4ecbe808446a672b327df5f5862d.tar.bz2
Jira-ID: CRNT-27602
Added code for case-insensitive first letter search on CreateOrModifyDeputyPopupBean.applyFilters() for searching user with similar grant. git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@64818 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/deputy/CreateOrModifyDeputyPopupBean.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/deputy/CreateOrModifyDeputyPopupBean.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/deputy/CreateOrModifyDeputyPopupBean.java
index 31042d2..5047c21 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/deputy/CreateOrModifyDeputyPopupBean.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/deputy/CreateOrModifyDeputyPopupBean.java
@@ -424,13 +424,17 @@ public class CreateOrModifyDeputyPopupBean extends PopupUIComponentBean
*/
private void applyFilters(UserQuery userQuery, String searchValue)
{
+ String nameFirstLetterCaseChanged = UserUtils.alternateFirstLetter(searchValue);
userQuery.setPolicy(new UserDetailsPolicy(UserDetailsLevel.Core));
-
+
FilterAndTerm andFilter = userQuery.getFilter().addAndTerm();
FilterOrTerm filter = andFilter.addOrTerm();
filter.or(UserQuery.FIRST_NAME.like(searchValue));
+ filter.or(UserQuery.FIRST_NAME.like(nameFirstLetterCaseChanged));
filter.or(UserQuery.LAST_NAME.like(searchValue));
+ filter.or(UserQuery.LAST_NAME.like(nameFirstLetterCaseChanged));
filter.or(UserQuery.ACCOUNT.like(searchValue));
+ filter.or(UserQuery.ACCOUNT.like(nameFirstLetterCaseChanged));
userQuery.where(filter);
userQuery.orderBy(UserQuery.LAST_NAME).and(UserQuery.FIRST_NAME).and(UserQuery.ACCOUNT);