Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
John Samuel Ako Deutesfeld
ARSnova Backend
Commits
78b0fd0a
Commit
78b0fd0a
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add LogicalOperator for FindQuery
parent
35260703
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/entities/FindQuery.java
+16
-0
16 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/FindQuery.java
with
16 additions
and
0 deletions
src/main/java/de/thm/arsnova/entities/FindQuery.java
+
16
−
0
View file @
78b0fd0a
...
...
@@ -24,9 +24,24 @@ import org.springframework.core.style.ToStringCreator;
import
java.util.Map
;
public
class
FindQuery
<
E
extends
Entity
>
{
enum
LogicalOperator
{
AND
,
OR
}
private
LogicalOperator
operator
=
LogicalOperator
.
AND
;
private
E
properties
;
private
Map
<
String
,
Object
>
externalFilters
;
public
LogicalOperator
getOperator
()
{
return
operator
;
}
@JsonView
(
View
.
Public
.
class
)
public
void
setOperator
(
final
LogicalOperator
operator
)
{
this
.
operator
=
operator
;
}
public
E
getProperties
()
{
return
properties
;
}
...
...
@@ -48,6 +63,7 @@ public class FindQuery<E extends Entity> {
@Override
public
String
toString
()
{
return
new
ToStringCreator
(
getClass
())
.
append
(
"operator"
,
operator
)
.
append
(
"properties"
,
properties
)
.
append
(
"externalFilters"
,
externalFilters
)
.
toString
();
...
...
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