Jean-Francois Leveque

Documentation

......@@ -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);
......