Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cines Vitamui
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dad
Cines Vitamui
Commits
3cc656eb
Commit
3cc656eb
authored
3 years ago
by
Gaëlle FOURNIER
Browse files
Options
Downloads
Patches
Plain Diff
TULEAP 24209 : Fix search rules with adapted query
parent
ff65fa2c
No related branches found
No related tags found
1 merge request
!51
Merge mis a jour vitam-ui
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/dsl/VitamQueryHelper.java
+17
-3
17 additions, 3 deletions
...gouv/vitamui/referential/common/dsl/VitamQueryHelper.java
with
17 additions
and
3 deletions
api/api-referential/referential-commons/src/main/java/fr/gouv/vitamui/referential/common/dsl/VitamQueryHelper.java
+
17
−
3
View file @
3cc656eb
...
...
@@ -119,14 +119,28 @@ public class VitamQueryHelper {
case
IDENTIFIER:
case
ID:
case
PUID:
case
RULE_ID:
case
RULE_VALUE:
case
RULE_TYPE:
// string equals operation
final
String
stringValue
=
(
String
)
entry
.
getValue
();
queryOr
.
add
(
eq
(
searchKey
,
stringValue
));
haveOrParameters
=
true
;
break
;
case
RULE_TYPE:
// string equals operation filter as a and
final
String
ruleType
=
(
String
)
entry
.
getValue
();
query
.
add
(
eq
(
searchKey
,
ruleType
));
break
;
case
RULE_ID:
// string wildward operation
final
String
ruleId
=
(
String
)
entry
.
getValue
();
queryOr
.
add
(
wildcard
(
searchKey
,
"*"
+
ruleId
+
"*"
));
haveOrParameters
=
true
;
break
;
case
RULE_VALUE:
// string match phrase prefix operation
final
String
ruleValue
=
(
String
)
entry
.
getValue
();
queryOr
.
add
(
matchPhrasePrefix
(
searchKey
,
ruleValue
));
haveOrParameters
=
true
;
break
;
case
EV_TYPE_PROC:
// string equals operation
final
String
evTypeProc
=
(
String
)
entry
.
getValue
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment