Start embedding the new full-text search functionalities. Added xerces and guava dependencies to pom (in order to use elasticsearch)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@124160 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-02-13 17:14:05 +00:00
parent 28bc6966d6
commit b4197ceec3
3 changed files with 14 additions and 2 deletions

12
pom.xml
View File

@ -27,6 +27,7 @@
<properties> <properties>
<!-- Convenience property to set the GWT version --> <!-- Convenience property to set the GWT version -->
<gwtVersion>2.6.1</gwtVersion> <gwtVersion>2.6.1</gwtVersion>
<guavaVersion>18.0</guavaVersion>
<distroDirectory>distro</distroDirectory> <distroDirectory>distro</distroDirectory>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
@ -113,11 +114,22 @@
<artifactId>notifications-common-library</artifactId> <artifactId>notifications-common-library</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>{guavaVersion}</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.socialnetworking</groupId> <groupId>org.gcube.socialnetworking</groupId>
<artifactId>social-data-search-client</artifactId> <artifactId>social-data-search-client</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version> <version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency> </dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.portlets.widgets</groupId> <groupId>org.gcube.portlets.widgets</groupId>
<artifactId>user-selection-dialog</artifactId> <artifactId>user-selection-dialog</artifactId>

View File

@ -586,7 +586,7 @@ public class NewsFeedPanel extends Composite {
if (feeds.size() == 0) { if (feeds.size() == 0) {
newsPanel.add(new ResultsFor("results for", query)); newsPanel.add(new ResultsFor("results for", query));
newsPanel.add(new HTML("<div class=\"nofeed-message\" style=\"height: 200px;\">" + newsPanel.add(new HTML("<div class=\"nofeed-message\" style=\"height: 200px;\">" +
"Sorry, looks like we found no updates for: " + query +"</div>")); "Sorry, looks like we found no match for: " + query +"</div>"));
} }
else { else {
newsPanel.setHeight(""); newsPanel.setHeight("");

View File

@ -139,7 +139,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
*/ */
public String getDevelopmentUser() { public String getDevelopmentUser() {
String user = NewsConstants.TEST_USER; String user = NewsConstants.TEST_USER;
user = "costantino.perciante"; // user = "costantino.perciante";
return user; return user;
} }
/** /**