public interface FavoriteService
| Modifier and Type | Method and Description |
|---|---|
void |
addFavorite(javax.jcr.Node node,
String userName)
Adds favorite to a node.
|
List<javax.jcr.Node> |
getAllFavoriteNodesByUser(String workspace,
String repository,
String userName)
Gets all favorite nodes by a given user.
|
boolean |
isFavoriter(String userName,
javax.jcr.Node node)
Checks if a node is in favorite list of a given user.
|
void |
removeFavorite(javax.jcr.Node node,
String userName)
Removes favorite from a node.
|
void addFavorite(javax.jcr.Node node,
String userName)
throws Exception
node - The node to which favorite is added.userName - The user who added favorite to the node.Exception - The exception will be raised if the node can not add
mixin.void removeFavorite(javax.jcr.Node node,
String userName)
throws Exception
node - The node from which favorite is removed.userName - The user who removed favorite from the node.ExceptionList<javax.jcr.Node> getAllFavoriteNodesByUser(String workspace, String repository, String userName) throws Exception
workspace - The workspace from which the favorite nodes are got.repository - The repository from which the favorite nodes are got.userName - The user who added favorite.ExceptionCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.