Class DefaultQuickInfoService

java.lang.Object
org.silverpeas.components.quickinfo.model.DefaultQuickInfoService
All Implemented Interfaces:
QuickInfoService, org.silverpeas.core.ApplicationService

@Service @Named("quickinfoService") public class DefaultQuickInfoService extends Object implements QuickInfoService
  • Constructor Details

    • DefaultQuickInfoService

      public DefaultQuickInfoService()
  • Method Details

    • getContributionById

      public Optional<News> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
      Specified by:
      getContributionById in interface org.silverpeas.core.ApplicationService
      Specified by:
      getContributionById in interface QuickInfoService
    • getVisibleNews

      public List<News> getVisibleNews(String componentId)
      Specified by:
      getVisibleNews in interface QuickInfoService
    • getAllNews

      public List<News> getAllNews(String componentId)
      Specified by:
      getAllNews in interface QuickInfoService
    • getAllNewsByStatus

      public NewsByStatus getAllNewsByStatus(String componentId, String userId)
      Specified by:
      getAllNewsByStatus in interface QuickInfoService
    • getNews

      public News getNews(org.silverpeas.core.ResourceReference newsRef)
      Description copied from interface: QuickInfoService
      Gets the specified news in the QuickInfo instance it belongs to.
      Specified by:
      getNews in interface QuickInfoService
      Parameters:
      newsRef - the reference of the news (its identifier and its QuickInfo instance).
      Returns:
      the news or null if the instance has no such news.
    • getNewsByForeignId

      public News getNewsByForeignId(String foreignId)
      Specified by:
      getNewsByForeignId in interface QuickInfoService
    • acknowledgeNews

      public void acknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId)
      Specified by:
      acknowledgeNews in interface QuickInfoService
    • getComponentSettings

      public org.silverpeas.kernel.bundle.SettingBundle getComponentSettings()
      Specified by:
      getComponentSettings in interface org.silverpeas.core.ApplicationService
    • getComponentMessages

      public org.silverpeas.kernel.bundle.LocalizationBundle getComponentMessages(String language)
      Specified by:
      getComponentMessages in interface org.silverpeas.core.ApplicationService
    • isRelatedTo

      public boolean isRelatedTo(String instanceId)
      Specified by:
      isRelatedTo in interface org.silverpeas.core.ApplicationService
    • create

      public News create(News news)
      Specified by:
      create in interface QuickInfoService
    • copyNews

      public void copyNews(News newsToCopy, org.silverpeas.core.admin.component.model.PasteDetail pasteDetail)
      Description copied from interface: QuickInfoService
      Creating new news from an existing one.
      Specified by:
      copyNews in interface QuickInfoService
      Parameters:
      newsToCopy - news to copy.
      pasteDetail - the details about the copy (user identifier and component destination).
    • publish

      public void publish(org.silverpeas.core.ResourceReference newsRef, String userId)
      Description copied from interface: QuickInfoService
      Publishes the specified news of a QuickInfo instance.
      Specified by:
      publish in interface QuickInfoService
      Parameters:
      newsRef - the reference of the news (its identifier and its QuickInfo instance).
      userId - the unique identifier of the user publishing the news.
    • update

      public void update(News news, List<org.silverpeas.core.pdc.pdc.model.PdcPosition> positions, Collection<org.silverpeas.core.io.upload.UploadedFile> uploadedFiles, boolean forcePublishing)
      Specified by:
      update in interface QuickInfoService
    • removeNews

      public void removeNews(org.silverpeas.core.ResourceReference newsRef)
      Description copied from interface: QuickInfoService
      Removes the specified news from the QuickInfo instance it belongs to.
      Specified by:
      removeNews in interface QuickInfoService
      Parameters:
      newsRef - the reference of the news (its identifier and its QuickInfo instance).
    • getPlatformNews

      public List<News> getPlatformNews(String userId)
      Specified by:
      getPlatformNews in interface QuickInfoService
    • getNewsForTicker

      public List<News> getNewsForTicker(String userId)
      Specified by:
      getNewsForTicker in interface QuickInfoService
    • getUnreadBlockingNews

      public List<News> getUnreadBlockingNews(String userId)
      Specified by:
      getUnreadBlockingNews in interface QuickInfoService
    • submitNewsOnHomepage

      public void submitNewsOnHomepage(org.silverpeas.core.ResourceReference newsRef, String userId)
      Description copied from interface: QuickInfoService
      Submits the specified news of a QuickInfo instance to the news of the main page.
      Specified by:
      submitNewsOnHomepage in interface QuickInfoService
      Parameters:
      newsRef - the reference of the news (its identifier and its QuickInfo instance).
      userId - the unique identifier of the user submitting the news.
    • performReminder

      public void performReminder(org.silverpeas.core.reminder.Reminder reminder)
      Description copied from interface: QuickInfoService
      Performs processes about news linked to given reminder.
      If news is not concerned, nothing is performed.
      Specified by:
      performReminder in interface QuickInfoService
      Parameters:
      reminder - a Reminder instance.