Class DefaultQuickInfoService

  • All Implemented Interfaces:
    QuickInfoService, org.silverpeas.core.ApplicationService

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

      • DefaultQuickInfoService

        public DefaultQuickInfoService()
    • Method Detail

      • 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
      • 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.
      • 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
      • 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).
      • 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.