@Name(value="likeActions") @Scope(value=STATELESS) @Install(precedence=10) public class LikeActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
Constructor and Description |
---|
LikeActions() |
Modifier and Type | Method and Description |
---|---|
void |
cancelLike(Principal principal,
DocumentModel doc) |
long |
getLikesCount(DocumentModel doc) |
boolean |
hasUserLiked(Principal principal,
DocumentModel doc) |
void |
like(Principal principal,
DocumentModel doc) |
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
public LikeActions()
public boolean hasUserLiked(Principal principal, DocumentModel doc)
public void like(Principal principal, DocumentModel doc)
public void cancelLike(Principal principal, DocumentModel doc)
public long getLikesCount(DocumentModel doc)
Copyright © 2015 Nuxeo SA. All rights reserved.