public class FavouritesServiceImpl extends Object implements FavouritesService, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static interface |
FavouritesServiceImpl.OnAddFavouritePolicy |
static interface |
FavouritesServiceImpl.OnRemoveFavouritePolicy |
FavouritesService.SortFields, FavouritesService.Type
DEFAULT_SORT_PROPS
Constructor and Description |
---|
FavouritesServiceImpl() |
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".
|
void |
afterPropertiesSet() |
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) |
void |
init() |
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".
|
void |
setAuthenticationContext(AuthenticationContext authenticationContext) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setEventPublisher(org.alfresco.repo.events.EventPublisher eventPublisher) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPersonService(PersonService personService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setPreferenceService(PreferenceService preferenceService) |
void |
setSiteService(SiteService siteService) |
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setPersonService(PersonService personService)
public void setAuthenticationContext(AuthenticationContext authenticationContext)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setSiteService(SiteService siteService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setPreferenceService(PreferenceService preferenceService)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void init()
public FavouritesService.Type getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getType
in interface FavouritesService
public PersonFavourite addFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
FavouritesService
addFavourite
in interface FavouritesService
userName
- StringnodeRef
- NodeRefpublic boolean removeFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
FavouritesService
removeFavourite
in interface FavouritesService
userName
- StringnodeRef
- NodeRefpublic boolean isFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
FavouritesService
isFavourite
in interface FavouritesService
userName
- StringnodeRef
- NodeRefpublic 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)
FavouritesService
getPagedFavourites
in interface FavouritesService
userName
- StringpagingRequest
- PagingRequestpublic PersonFavourite getFavourite(String userName, org.alfresco.service.cmr.repository.NodeRef nodeRef)
FavouritesService
getFavourite
in interface FavouritesService
userName
- StringnodeRef
- NodeRefpublic void setEventPublisher(org.alfresco.repo.events.EventPublisher eventPublisher)
Copyright © 2005–2017 Alfresco Software. All rights reserved.