Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-03-06 12:58:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91726ab4a024f9072b96ae4fa8327e3e371fad42
91726ab4
1 parent
d28130c8
Documentation
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/main/java/org/legrog/web/publisher/PublisherSearchView.java
src/main/java/org/legrog/web/publisher/PublisherSearchView.java
View file @
91726ab
...
...
@@ -18,7 +18,11 @@ import java.util.List;
public
class
PublisherSearchView
implements
Serializable
{
transient
List
<
PublisherVersion
>
publisherVersions
=
new
ArrayList
<>();
String
searchString
=
new
String
();
String
searchString
=
new
String
();
/**
*
* @return whether search with non-empty string has returned an empty result
*/
transient
PublisherService
publisherService
;
...
...
@@ -36,12 +40,16 @@ public class PublisherSearchView implements Serializable {
//no args constructor to make it proxyable
}
/**
*
* @return whether search with non-empty string has returned an empty result
*/
public
boolean
searchEmpty
()
{
return
(!
searchString
.
isEmpty
())
&&
publisherVersions
.
isEmpty
();
}
/**
*
*
Searches for publishers containing searchString
*/
public
void
search
()
throws
SearchingException
{
this
.
publisherVersions
=
publisherService
.
search
(
this
.
searchString
);
...
...
Please
register
or
login
to post a comment