diff options
author | ayalaben <ayala.benzvi@amdocs.com> | 2018-08-30 11:03:03 +0300 |
---|---|---|
committer | ayalaben <ayala.benzvi@amdocs.com> | 2018-08-30 11:03:03 +0300 |
commit | 11bbf9c1157e4abe6e18fbef04d4ff50ed2d33a8 (patch) | |
tree | 9ca1a1a8532216086878a56836055e6416894e1f | |
parent | 6c7b3b6ba546fbddca5211a6399d82593c587d74 (diff) |
Search Workflow by name case insensitive
Change-Id: I789e4e37ced7d1ebf21f1b68a101d033702b7b0b
Issue-ID: SDC-1662
Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
-rw-r--r-- | workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java | 3 |
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) { |