-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6243 from deutschebank/db-contrib/waltz-6221-add-…
…string-filters-to-filter-group-population Db contrib/waltz 6221 add string filters to filter group population
- Loading branch information
Showing
5 changed files
with
152 additions
and
76 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
waltz-model/src/main/java/org/finos/waltz/model/report_grid/FilterOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.finos.waltz.model.report_grid; | ||
|
||
import java.util.Optional; | ||
|
||
public enum FilterOperator { | ||
CONTAINS_ANY_OPTION, | ||
CONTAINS_ANY_STRING; | ||
|
||
public static Optional<FilterOperator> parseString(String operator) { | ||
if (operator.equalsIgnoreCase(CONTAINS_ANY_OPTION.name())) { | ||
return Optional.of(CONTAINS_ANY_OPTION); | ||
} else if (operator.equalsIgnoreCase(CONTAINS_ANY_STRING.name())) { | ||
return Optional.of(CONTAINS_ANY_STRING); | ||
} else { | ||
return Optional.empty(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters