Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
adapt
ace
Commits
7e477cf7
Commit
7e477cf7
authored
Apr 10, 2017
by
Michael Ritter
Browse files
Use CollectionState enum in query param
parent
443eb2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ace-am/src/main/java/edu/umiacs/ace/monitor/access/StatusServlet.java
View file @
7e477cf7
...
...
@@ -32,6 +32,7 @@ package edu.umiacs.ace.monitor.access;
import
com.google.common.collect.ImmutableList
;
import
edu.umiacs.ace.monitor.core.Collection
;
import
edu.umiacs.ace.monitor.core.CollectionState
;
import
edu.umiacs.ace.monitor.support.CStateBean
;
import
edu.umiacs.ace.monitor.support.PageBean
;
import
edu.umiacs.ace.util.EntityManagerServlet
;
...
...
@@ -96,8 +97,6 @@ public class StatusServlet extends EntityManagerServlet {
RequestDispatcher
dispatcher
;
List
<
CollectionSummaryBean
>
collections
;
List
<
Collection
>
items
;
LOG
.
info
(
"Processing /Status request"
);
LOG
.
info
(
"Processing /Status additional info"
);
long
page
=
getParameter
(
request
,
PARAM_PAGE
,
DEFAULT_PAGE
);
int
count
=
(
int
)
getParameter
(
request
,
PARAM_COUNT
,
DEFAULT_COUNT
);
...
...
@@ -184,8 +183,8 @@ public class StatusServlet extends EntityManagerServlet {
}
if
(!
Strings
.
isEmpty
(
state
)
&&
state
.
length
()
==
1
)
{
query
.
setParameter
(
PARAM_STATE
,
state
.
charAt
(
0
));
countQuery
.
setParameter
(
PARAM_STATE
,
state
.
charAt
(
0
));
query
.
setParameter
(
PARAM_STATE
,
CollectionState
.
fromChar
(
state
.
charAt
(
0
))
)
;
countQuery
.
setParameter
(
PARAM_STATE
,
CollectionState
.
fromChar
(
state
.
charAt
(
0
))
)
;
}
items
=
query
.
getResultList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment