public class MostLiked extends Object
Modifier and Type | Field and Description |
---|---|
protected ActivityStreamService |
activityService |
protected String |
contextPath |
protected OperationContext |
ctx |
protected String |
documentLinkBuilder |
protected Date |
fromDt |
static Pattern |
HTTP_URL_PATTERN |
static String |
ID |
protected LikeService |
likeService |
protected int |
limit |
protected CoreSession |
session |
protected Date |
toDt |
Constructor and Description |
---|
MostLiked() |
Modifier and Type | Method and Description |
---|---|
protected net.sf.json.JSONObject |
buildFromActivity(Activity activity) |
protected net.sf.json.JSONObject |
buildFromDocument(Activity activity) |
protected static String |
computeLinkFor(String url) |
protected String |
getDocumentUrl(DocumentModel doc) |
protected static String |
replaceURLsByLinks(String message) |
Blob |
run() |
public static final String ID
public static Pattern HTTP_URL_PATTERN
protected CoreSession session
protected LikeService likeService
protected ActivityStreamService activityService
protected OperationContext ctx
protected String contextPath
protected int limit
protected String documentLinkBuilder
public MostLiked()
public Blob run() throws IOException
IOException
protected net.sf.json.JSONObject buildFromActivity(Activity activity)
protected net.sf.json.JSONObject buildFromDocument(Activity activity) throws IOException
IOException
protected String getDocumentUrl(DocumentModel doc)
protected static String replaceURLsByLinks(String message)
protected static String computeLinkFor(String url)
Copyright © 2016 Nuxeo SA. All rights reserved.