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 Map<String,Object> |
buildFromActivity(Activity activity) |
protected Map<String,Object> |
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 final 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, org.json.JSONException
IOException
org.json.JSONException
protected Map<String,Object> buildFromActivity(Activity activity)
protected Map<String,Object> buildFromDocument(Activity activity) throws IOException, org.json.JSONException
IOException
org.json.JSONException
protected String getDocumentUrl(DocumentModel doc)
protected static String replaceURLsByLinks(String message)
protected static String computeLinkFor(String url)
Copyright © 2018 Nuxeo. All rights reserved.