Class ContentLinkServiceImpl

java.lang.Object
io.meeds.social.cms.service.ContentLinkServiceImpl
All Implemented Interfaces:
io.meeds.social.cms.service.ContentLinkService

@Service public class ContentLinkServiceImpl extends Object implements io.meeds.social.cms.service.ContentLinkService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEdit(io.meeds.social.cms.model.ContentObjectIdentifier contentObject, String username)
     
    boolean
    canView(io.meeds.social.cms.model.ContentObjectIdentifier link, String username)
     
    void
    deleteLinks(io.meeds.social.cms.model.ContentObjectIdentifier contentObject)
     
    List<io.meeds.social.cms.model.ContentLinkExtension>
     
    io.meeds.social.cms.model.ContentLink
    getLink(io.meeds.social.cms.model.ContentLinkIdentifier link)
     
    io.meeds.social.cms.model.ContentLink
    getLink(io.meeds.social.cms.model.ContentLinkIdentifier linkIdentifier, String username)
     
    List<io.meeds.social.cms.model.ContentLinkIdentifier>
    getLinkIdentifiers(io.meeds.social.cms.model.ContentObject contentObject)
     
    List<io.meeds.social.cms.model.ContentLink>
    getLinks(io.meeds.social.cms.model.ContentObject contentObject, Locale locale, String username)
     
    void
    saveLinks(io.meeds.social.cms.model.ContentObject contentObject, List<? extends io.meeds.social.cms.model.ContentObjectIdentifier> links)
     
    void
    saveLinks(io.meeds.social.cms.model.ContentObject contentObject, List<? extends io.meeds.social.cms.model.ContentObjectIdentifier> links, String username)
     
    List<io.meeds.social.cms.model.ContentLinkSearchResult>
    searchLinks(String objectType, String keyword, String username, Locale locale, int offset, int limit)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContentLinkServiceImpl

      public ContentLinkServiceImpl()
  • Method Details

    • getExtensions

      public List<io.meeds.social.cms.model.ContentLinkExtension> getExtensions()
      Specified by:
      getExtensions in interface io.meeds.social.cms.service.ContentLinkService
    • getLinks

      public List<io.meeds.social.cms.model.ContentLink> getLinks(io.meeds.social.cms.model.ContentObject contentObject, Locale locale, String username) throws IllegalAccessException
      Specified by:
      getLinks in interface io.meeds.social.cms.service.ContentLinkService
      Throws:
      IllegalAccessException
    • searchLinks

      public List<io.meeds.social.cms.model.ContentLinkSearchResult> searchLinks(String objectType, String keyword, String username, Locale locale, int offset, int limit)
      Specified by:
      searchLinks in interface io.meeds.social.cms.service.ContentLinkService
    • saveLinks

      public void saveLinks(io.meeds.social.cms.model.ContentObject contentObject, List<? extends io.meeds.social.cms.model.ContentObjectIdentifier> links, String username) throws IllegalAccessException
      Specified by:
      saveLinks in interface io.meeds.social.cms.service.ContentLinkService
      Throws:
      IllegalAccessException
    • saveLinks

      public void saveLinks(io.meeds.social.cms.model.ContentObject contentObject, List<? extends io.meeds.social.cms.model.ContentObjectIdentifier> links)
      Specified by:
      saveLinks in interface io.meeds.social.cms.service.ContentLinkService
    • deleteLinks

      public void deleteLinks(io.meeds.social.cms.model.ContentObjectIdentifier contentObject)
      Specified by:
      deleteLinks in interface io.meeds.social.cms.service.ContentLinkService
    • getLinkIdentifiers

      public List<io.meeds.social.cms.model.ContentLinkIdentifier> getLinkIdentifiers(io.meeds.social.cms.model.ContentObject contentObject)
      Specified by:
      getLinkIdentifiers in interface io.meeds.social.cms.service.ContentLinkService
    • getLink

      public io.meeds.social.cms.model.ContentLink getLink(io.meeds.social.cms.model.ContentLinkIdentifier linkIdentifier, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getLink in interface io.meeds.social.cms.service.ContentLinkService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getLink

      public io.meeds.social.cms.model.ContentLink getLink(io.meeds.social.cms.model.ContentLinkIdentifier link)
      Specified by:
      getLink in interface io.meeds.social.cms.service.ContentLinkService
    • canView

      public boolean canView(io.meeds.social.cms.model.ContentObjectIdentifier link, String username)
      Specified by:
      canView in interface io.meeds.social.cms.service.ContentLinkService
    • canEdit

      public boolean canEdit(io.meeds.social.cms.model.ContentObjectIdentifier contentObject, String username)
      Specified by:
      canEdit in interface io.meeds.social.cms.service.ContentLinkService