public interface FavouritesService
Modifier and Type | Interface and Description |
---|---|
static class |
FavouritesService.SortFields |
static class |
FavouritesService.Type |
Modifier and Type | Field and Description |
---|---|
static List<org.alfresco.util.Pair<FavouritesService.SortFields,Boolean>> |
DEFAULT_SORT_PROPS |
Modifier and Type | Method and Description |
---|---|
PersonFavourite |
addFavourite(String userName,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Add the entity identified by nodeRef as a favourite for user "userName".
|
PersonFavourite |
getFavourite(String userName,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get a specific favourite for user "userName".
|
org.alfresco.query.PagingResults<PersonFavourite> |
getPagedFavourites(String userName,
Set<FavouritesService.Type> types,
List<org.alfresco.util.Pair<FavouritesService.SortFields,Boolean>> sortProps,
org.alfresco.query.PagingRequest pagingRequest)
A paged list of favourites for user "userName".
|
FavouritesService.Type |
getType(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
boolean |
isFavourite(String userName,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Is the entity identified by nodeRef a favourite document of user "userName".
|
boolean |
removeFavourite(String userName,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Remove the document identified by nodeRef as a favourite for user "userName".
|
static final List<org.alfresco.util.Pair<FavouritesService.SortFields,Boolean>> DEFAULT_SORT_PROPS
FavouritesService.Type getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
@Auditable(parameters={"userName","nodeRef"}) PersonFavourite addFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
userName
- StringnodeRef
- NodeRef@Auditable(parameters={"userName","nodeRef"}) boolean isFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
userName
- StringnodeRef
- NodeRef@Auditable(parameters={"userName","nodeRef"}) boolean removeFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
userName
- StringnodeRef
- NodeRef@Auditable(parameters={"userName","types","pagingRequest"}) org.alfresco.query.PagingResults<PersonFavourite> getPagedFavourites(String userName, Set<FavouritesService.Type> types, List<org.alfresco.util.Pair<FavouritesService.SortFields,Boolean>> sortProps, org.alfresco.query.PagingRequest pagingRequest)
userName
- StringpagingRequest
- PagingRequest@Auditable(parameters={"userName","nodeRef"}) PersonFavourite getFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
userName
- StringnodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.