Class LinksServiceImpl

java.lang.Object
org.alfresco.repo.links.LinksServiceImpl
All Implemented Interfaces:
LinksService

public class LinksServiceImpl extends Object implements LinksService
Since:
4.0
Author:
Nick Burch (based on existing webscript controllers in the REST API)
  • Field Details

  • Constructor Details

    • LinksServiceImpl

      public LinksServiceImpl()
  • Method Details

    • setNodeDAO

      public void setNodeDAO(NodeDAO nodeDAO)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setSiteService

      public void setSiteService(SiteService siteService)
    • setSearchService

      public void setSearchService(SearchService searchService)
    • setContentService

      public void setContentService(ContentService contentService)
    • setTaggingService

      public void setTaggingService(TaggingService taggingService)
    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
    • setCannedQueryRegistry

      public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry)
      Set the registry of canned queries
    • getSiteLinksContainer

      protected NodeRef getSiteLinksContainer(String siteShortName, boolean create)
      Fetches the Links Container on a site, creating as required if requested.
    • getLink

      public LinkInfo getLink(String siteShortName, String linkName)
      Description copied from interface: LinksService
      Retrieves an existing LinkInfo from the repository
      Specified by:
      getLink in interface LinksService
    • createLink

      public LinkInfo createLink(String siteShortName, String title, String description, String url, boolean internal)
      Description copied from interface: LinksService
      Creates a new LinkInfo in the given site, with the specified settings
      Specified by:
      createLink in interface LinksService
      Returns:
      The newly created LinkInfo
    • updateLink

      public LinkInfo updateLink(LinkInfo link)
      Description copied from interface: LinksService
      Updates an existing LinkInfo in the repository.
      Specified by:
      updateLink in interface LinksService
      Returns:
      The updated LinkInfo
    • deleteLink

      public void deleteLink(LinkInfo link)
      Description copied from interface: LinksService
      Deletes an existing LinkInfo from the repository
      Specified by:
      deleteLink in interface LinksService
    • listLinks

      public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, org.alfresco.query.PagingRequest paging)
      Description copied from interface: LinksService
      Retrieves all LinkInfo instances in the repository for the given site.
      Specified by:
      listLinks in interface LinksService
    • listLinks

      public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, String user, org.alfresco.query.PagingRequest paging)
      Description copied from interface: LinksService
      Retrieves all LinkInfo instances in the repository for the given site and the specified user.
      Specified by:
      listLinks in interface LinksService
    • listLinks

      public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, Date from, Date to, org.alfresco.query.PagingRequest paging)
      Description copied from interface: LinksService
      Retrieves all LinkInfo instances in the repository for the given site, created in the specified date range
      Specified by:
      listLinks in interface LinksService
    • 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: LinksService
      Finds all LinkInfo instances indexed in the repository for the given site, created by the specified user in the specified date range, with the given tag
      Specified by:
      findLinks in interface LinksService