Package org.alfresco.repo.links
Class LinksServiceImpl
java.lang.Object
org.alfresco.repo.links.LinksServiceImpl
- All Implemented Interfaces:
LinksService
- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLink(String siteShortName, String title, String description, String url, boolean internal) Creates a newLinkInfoin the given site, with the specified settingsvoiddeleteLink(LinkInfo link) Deletes an existingLinkInfofrom the repositoryorg.alfresco.query.PagingResults<LinkInfo>findLinks(String siteShortName, String user, Date from, Date to, String tag, org.alfresco.query.PagingRequest paging) Finds allLinkInfoinstances indexed in the repository for the given site, created by the specified user in the specified date range, with the given tagRetrieves an existingLinkInfofrom the repositoryprotected NodeRefgetSiteLinksContainer(String siteShortName, boolean create) Fetches the Links Container on a site, creating as required if requested.org.alfresco.query.PagingResults<LinkInfo>Retrieves allLinkInfoinstances in the repository for the given site and the specified user.org.alfresco.query.PagingResults<LinkInfo>Retrieves allLinkInfoinstances in the repository for the given site, created in the specified date rangeorg.alfresco.query.PagingResults<LinkInfo>Retrieves allLinkInfoinstances in the repository for the given site.voidsetCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry) Set the registry ofcanned queriesvoidsetContentService(ContentService contentService) voidsetDictionaryService(DictionaryService dictionaryService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeDAO(NodeDAO nodeDAO) voidsetNodeService(NodeService nodeService) voidsetSearchService(SearchService searchService) voidsetSiteService(SiteService siteService) voidsetTaggingService(TaggingService taggingService) voidsetTransactionService(TransactionService transactionService) updateLink(LinkInfo link) Updates an existingLinkInfoin the repository.
-
Field Details
-
LINKS_COMPONENT
- See Also:
-
CANNED_QUERY_GET_CHILDREN
- See Also:
-
-
Constructor Details
-
LinksServiceImpl
public LinksServiceImpl()
-
-
Method Details
-
setNodeDAO
-
setNodeService
-
setSiteService
-
setSearchService
-
setContentService
-
setTaggingService
-
setNamespaceService
-
setDictionaryService
-
setTransactionService
-
setCannedQueryRegistry
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry) Set the registry ofcanned queries -
getSiteLinksContainer
Fetches the Links Container on a site, creating as required if requested. -
getLink
Description copied from interface:LinksServiceRetrieves an existingLinkInfofrom the repository- Specified by:
getLinkin interfaceLinksService
-
createLink
public LinkInfo createLink(String siteShortName, String title, String description, String url, boolean internal) Description copied from interface:LinksServiceCreates a newLinkInfoin the given site, with the specified settings- Specified by:
createLinkin interfaceLinksService- Returns:
- The newly created
LinkInfo
-
updateLink
Description copied from interface:LinksServiceUpdates an existingLinkInfoin the repository.- Specified by:
updateLinkin interfaceLinksService- Returns:
- The updated
LinkInfo
-
deleteLink
Description copied from interface:LinksServiceDeletes an existingLinkInfofrom the repository- Specified by:
deleteLinkin interfaceLinksService
-
listLinks
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, org.alfresco.query.PagingRequest paging) Description copied from interface:LinksServiceRetrieves allLinkInfoinstances in the repository for the given site.- Specified by:
listLinksin interfaceLinksService
-
listLinks
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, String user, org.alfresco.query.PagingRequest paging) Description copied from interface:LinksServiceRetrieves allLinkInfoinstances in the repository for the given site and the specified user.- Specified by:
listLinksin interfaceLinksService
-
listLinks
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, Date from, Date to, org.alfresco.query.PagingRequest paging) Description copied from interface:LinksServiceRetrieves allLinkInfoinstances in the repository for the given site, created in the specified date range- Specified by:
listLinksin interfaceLinksService
-
findLinks
public org.alfresco.query.PagingResults<LinkInfo> findLinks(String siteShortName, String user, Date from, Date to, String tag, org.alfresco.query.PagingRequest paging) Description copied from interface:LinksServiceFinds allLinkInfoinstances indexed in the repository for the given site, created by the specified user in the specified date range, with the given tag- Specified by:
findLinksin interfaceLinksService
-