Added further support to show feeds related to user's statistics, such as: recent posts, recent likes/comments made, recent likes/comments got
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@130957 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6d7d952e99
commit
35a733be7d
|
@ -9,6 +9,7 @@ public class GCubeSocialNetworking implements EntryPoint {
|
|||
public static final String USER_PROFILE_OID = "userIdentificationParameter";
|
||||
public static final String HASHTAG_OID = "hashtagIdentificationParameter";
|
||||
public static final String SEARCH_OID = "elasticSearchIdentificationParameter";
|
||||
public static final String SHOW_STATISTICS_ACTION_OID = "showUserStatisticsActionParameter"; // see ShowUserStatisticAction
|
||||
public static final String GROUP_MEMBERS_OID = "teamIdentificationParameter";
|
||||
public void onModuleLoad() {
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package org.gcube.portal.databook.shared;
|
||||
|
||||
/**
|
||||
* Enum class that specify the possible actions to take when the GCubeSocialNetworking.SHOW_STATISTICS_ACTION_OID parameter
|
||||
* is found in the page url
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public enum ShowUserStatisticAction {
|
||||
|
||||
POSTS_MADE_BY_USER("Recent Posts"),
|
||||
LIKES_MADE_BY_USER("Recent Likes Made"),
|
||||
COMMENTS_MADE_BY_USER("Recent Comments Made"),
|
||||
LIKES_GOT_BY_USER("Recent Likes Got"),
|
||||
COMMENTS_GOT_BY_USER("Recent Comments Got");
|
||||
|
||||
private final String actionHumanFriendly;
|
||||
|
||||
private ShowUserStatisticAction(String s) {
|
||||
actionHumanFriendly = s;
|
||||
}
|
||||
|
||||
public String getHumanFriendlyAction() {
|
||||
return this.actionHumanFriendly;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue