2016-08-03 15:50:25 +02:00
|
|
|
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 {
|
|
|
|
|
2016-08-30 16:47:43 +02:00
|
|
|
POSTS_MADE_BY_USER("Your recent posts"),
|
2016-10-07 11:28:00 +02:00
|
|
|
LIKES_MADE_BY_USER("Posts you liked"),
|
|
|
|
COMMENTS_MADE_BY_USER("Posts you commented"),
|
|
|
|
LIKES_GOT_BY_USER("Likes to your posts"),
|
|
|
|
COMMENTS_GOT_BY_USER("Replies to your posts");
|
2016-08-03 15:50:25 +02:00
|
|
|
|
|
|
|
private final String actionHumanFriendly;
|
|
|
|
|
|
|
|
private ShowUserStatisticAction(String s) {
|
|
|
|
actionHumanFriendly = s;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getHumanFriendlyAction() {
|
|
|
|
return this.actionHumanFriendly;
|
|
|
|
}
|
|
|
|
}
|