aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be
diff options
context:
space:
mode:
authorayalaben <ayala.benzvi@amdocs.com>2018-08-30 11:03:03 +0300
committerayalaben <ayala.benzvi@amdocs.com>2018-08-30 11:03:03 +0300
commit11bbf9c1157e4abe6e18fbef04d4ff50ed2d33a8 (patch)
tree9ca1a1a8532216086878a56836055e6416894e1f /workflow-designer-be
parent6c7b3b6ba546fbddca5211a6399d82593c587d74 (diff)
Search Workflow by name case insensitive
Change-Id: I789e4e37ced7d1ebf21f1b68a101d033702b7b0b Issue-ID: SDC-1662 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'workflow-designer-be')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
index a8998cce..9dd33132 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
@@ -174,7 +174,8 @@ public class WorkflowManagerImpl implements WorkflowManager {
private static Predicate<Item> addSearchNameFilter(Predicate<Item> filter, String searchNameFilter) {
return filter
- .and(item -> searchNameFilter == null || item.getName().contains(searchNameFilter));
+ .and(item -> searchNameFilter == null ||
+ item.getName().toLowerCase().contains(searchNameFilter.toLowerCase()));
}
private static Predicate<Item> addVersionStatusFilter(Predicate<Item> filter, Set<VersionStatus> versionStatuses) {