Refactored to the new version of elastic search client's compliancy

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@141595 82a268e6-3cf1-43bd-a215-b396298e98cf
Feature/26194
Massimiliano Assante 7 years ago
parent 3606f4347b
commit 1f72e641b1

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/news-feed-2.2.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<classpathentry kind="src" output="target/news-feed-2.3.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/news-feed-2.2.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<classpathentry excluding="**" kind="src" output="target/news-feed-2.3.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
@ -39,5 +39,5 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/news-feed-2.2.0-SNAPSHOT/WEB-INF/classes"/>
<classpathentry kind="output" path="target/news-feed-2.3.0-SNAPSHOT/WEB-INF/classes"/>
</classpath>

@ -1,9 +1,16 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets-user.news-feed.2-3-0"
date="2017-01-16">
<Change>Minor css fix </Change>
<Change>Refactored to the new version of elastic search client's
compliancy</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.news-feed.2-2-0"
date="2016-12-02">
<Change>removed asl session</Change>
<Change>Increased general performance and bugfixes</Change>
<Change>fetching of users list to mention in comments loaded on demand</Change>
<Change>fetching of users list to mention in comments loaded on demand
</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.news-feed.2-1-0"
date="2016-10-29">

@ -12,7 +12,7 @@
<groupId>org.gcube.portlets.user</groupId>
<artifactId>news-feed</artifactId>
<packaging>war</packaging>
<version>2.2.0-SNAPSHOT</version>
<version>2.3.0-SNAPSHOT</version>
<name>gCube News Feed Portlet</name>
<description>

@ -51,8 +51,8 @@ import org.gcube.portlets.user.newsfeed.shared.OperationResult;
import org.gcube.portlets.user.newsfeed.shared.UserSettings;
import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
import org.gcube.social_networking.socialutillibrary.Utils;
import org.gcube.socialnetworking.social_data_search_client.ElasticSearchClient;
import org.gcube.socialnetworking.social_data_search_client.ElasticSearchClientImpl;
import org.gcube.socialnetworking.social_data_search_client.ElasticSearchClientInterface;
import org.gcube.vomanagement.usermanagement.GroupManager;
import org.gcube.vomanagement.usermanagement.UserManager;
import org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault;
@ -100,7 +100,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
/**
* Elasticsearch client
*/
private ElasticSearchClientInterface escl;
private ElasticSearchClient escl;
private final static int MAX_FEEDS_NO = 30;
@ -387,7 +387,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
}
// query elastic search
List<EnhancedFeed> enhancedFeeds = escl.searchInEnhancedFeeds(query, vres, from, quantity);
List<EnhancedFeed> enhancedFeeds = escl.search(query, vres, from, quantity);
// retrieve the ids of liked feeds by the user
List<String> likedFeeds = store.getAllLikedFeedIdsByUser(userName);

@ -126,8 +126,8 @@ div#comment-inputContainer textarea.post-comment.comment-dark-color {
.new-feeds-show {
opacity: 1;
background: #D6E2FC;
height: 18px;
width: 70%;
height: 20px;
width: 95%;
}
.new-feeds-available:hover {

Loading…
Cancel
Save