Class LinkServiceImpl

java.lang.Object
io.meeds.social.link.service.LinkServiceImpl
All Implemented Interfaces:
io.meeds.social.link.service.LinkService

public class LinkServiceImpl extends Object implements io.meeds.social.link.service.LinkService
  • Field Details

  • Constructor Details

    • LinkServiceImpl

      public LinkServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, io.meeds.social.cms.service.CMSService cmsService, LinkStorage linkStorage)
  • Method Details

    • getLinkSetting

      public io.meeds.social.link.model.LinkSetting getLinkSetting(String linkSettingName, String language, org.exoplatform.services.security.Identity identity) throws IllegalAccessException
      Specified by:
      getLinkSetting in interface io.meeds.social.link.service.LinkService
      Throws:
      IllegalAccessException
    • getLinkSetting

      public io.meeds.social.link.model.LinkSetting getLinkSetting(String linkSettingName)
      Specified by:
      getLinkSetting in interface io.meeds.social.link.service.LinkService
    • getLinkSetting

      public io.meeds.social.link.model.LinkSetting getLinkSetting(String linkSettingName, String language, boolean includeTranslations)
      Specified by:
      getLinkSetting in interface io.meeds.social.link.service.LinkService
    • getLinkSetting

      public io.meeds.social.link.model.LinkSetting getLinkSetting(long linkSettingId)
      Specified by:
      getLinkSetting in interface io.meeds.social.link.service.LinkService
    • hasLinkSetting

      public boolean hasLinkSetting(String linkSettingName)
      Specified by:
      hasLinkSetting in interface io.meeds.social.link.service.LinkService
    • getLinkSettingByLinkId

      public io.meeds.social.link.model.LinkSetting getLinkSettingByLinkId(long linkId)
      Specified by:
      getLinkSettingByLinkId in interface io.meeds.social.link.service.LinkService
    • initLinkSetting

      public io.meeds.social.link.model.LinkSetting initLinkSetting(String name, String pageReference, long spaceId)
      Specified by:
      initLinkSetting in interface io.meeds.social.link.service.LinkService
    • saveLinkSetting

      public io.meeds.social.link.model.LinkSetting saveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links, org.exoplatform.services.security.Identity identity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveLinkSetting in interface io.meeds.social.link.service.LinkService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveLinkSetting

      public io.meeds.social.link.model.LinkSetting saveLinkSetting(io.meeds.social.link.model.LinkSetting linkSetting, List<io.meeds.social.link.model.Link> links) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveLinkSetting in interface io.meeds.social.link.service.LinkService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveLinkData

      public void saveLinkData(String linkSettingName, io.meeds.social.link.model.LinkData linkData) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveLinkData in interface io.meeds.social.link.service.LinkService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getLinkData

      public io.meeds.social.link.model.LinkData getLinkData(String linkSettingName) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getLinkData in interface io.meeds.social.link.service.LinkService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getLinks

      public List<io.meeds.social.link.model.Link> getLinks(String linkSettingName)
      Specified by:
      getLinks in interface io.meeds.social.link.service.LinkService
    • getLinks

      public List<io.meeds.social.link.model.Link> getLinks(String linkSettingName, String language, boolean includeTranslations)
      Specified by:
      getLinks in interface io.meeds.social.link.service.LinkService
    • getLinkIconStream

      public InputStream getLinkIconStream(String linkSettingName, long linkId) throws IOException
      Specified by:
      getLinkIconStream in interface io.meeds.social.link.service.LinkService
      Throws:
      IOException
    • hasAccessPermission

      public boolean hasAccessPermission(String linkSettingName, org.exoplatform.services.security.Identity identity)
      Specified by:
      hasAccessPermission in interface io.meeds.social.link.service.LinkService
    • hasEditPermission

      public boolean hasEditPermission(String linkSettingName, org.exoplatform.services.security.Identity identity)
      Specified by:
      hasEditPermission in interface io.meeds.social.link.service.LinkService