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 Summary
Constructors Constructor Description DefaultQuickInfoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId)voidcopyNews(News newsToCopy, org.silverpeas.core.admin.component.model.PasteDetail pasteDetail)Creating new news from an existing one.Newscreate(News news)List<News>getAllNews(String componentId)NewsByStatusgetAllNewsByStatus(String componentId, String userId)org.silverpeas.kernel.bundle.LocalizationBundlegetComponentMessages(String language)org.silverpeas.kernel.bundle.SettingBundlegetComponentSettings()Optional<News>getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)NewsgetNews(org.silverpeas.core.ResourceReference newsRef)Gets the specified news in the QuickInfo instance it belongs to.NewsgetNewsByForeignId(String foreignId)List<News>getNewsForTicker(String userId)List<News>getPlatformNews(String userId)List<News>getUnreadBlockingNews(String userId)List<News>getVisibleNews(String componentId)booleanisRelatedTo(String instanceId)voidperformReminder(org.silverpeas.core.reminder.Reminder reminder)Performs processes about news linked to given reminder.
If news is not concerned, nothing is performed.voidpublish(org.silverpeas.core.ResourceReference newsRef, String userId)Publishes the specified news of a QuickInfo instance.voidremoveNews(org.silverpeas.core.ResourceReference newsRef)Removes the specified news from the QuickInfo instance it belongs to.voidsubmitNewsOnHomepage(org.silverpeas.core.ResourceReference newsRef, String userId)Submits the specified news of a QuickInfo instance to the news of the main page.voidupdate(News news, List<org.silverpeas.core.pdc.pdc.model.PdcPosition> positions, Collection<org.silverpeas.core.io.upload.UploadedFile> uploadedFiles, boolean forcePublishing)
-
-
-
Method Detail
-
getContributionById
public Optional<News> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
- Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService- Specified by:
getContributionByIdin interfaceQuickInfoService
-
getVisibleNews
public List<News> getVisibleNews(String componentId)
- Specified by:
getVisibleNewsin interfaceQuickInfoService
-
getAllNews
public List<News> getAllNews(String componentId)
- Specified by:
getAllNewsin interfaceQuickInfoService
-
getAllNewsByStatus
public NewsByStatus getAllNewsByStatus(String componentId, String userId)
- Specified by:
getAllNewsByStatusin interfaceQuickInfoService
-
getNews
public News getNews(org.silverpeas.core.ResourceReference newsRef)
Description copied from interface:QuickInfoServiceGets the specified news in the QuickInfo instance it belongs to.- Specified by:
getNewsin interfaceQuickInfoService- 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:
getNewsByForeignIdin interfaceQuickInfoService
-
acknowledgeNews
public void acknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId)- Specified by:
acknowledgeNewsin interfaceQuickInfoService
-
getComponentSettings
public org.silverpeas.kernel.bundle.SettingBundle getComponentSettings()
- Specified by:
getComponentSettingsin interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
public org.silverpeas.kernel.bundle.LocalizationBundle getComponentMessages(String language)
- Specified by:
getComponentMessagesin interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
public boolean isRelatedTo(String instanceId)
- Specified by:
isRelatedToin interfaceorg.silverpeas.core.ApplicationService
-
create
public News create(News news)
- Specified by:
createin interfaceQuickInfoService
-
copyNews
public void copyNews(News newsToCopy, org.silverpeas.core.admin.component.model.PasteDetail pasteDetail)
Description copied from interface:QuickInfoServiceCreating new news from an existing one.- Specified by:
copyNewsin interfaceQuickInfoService- 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:QuickInfoServicePublishes the specified news of a QuickInfo instance.- Specified by:
publishin interfaceQuickInfoService- 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:
updatein interfaceQuickInfoService
-
removeNews
public void removeNews(org.silverpeas.core.ResourceReference newsRef)
Description copied from interface:QuickInfoServiceRemoves the specified news from the QuickInfo instance it belongs to.- Specified by:
removeNewsin interfaceQuickInfoService- Parameters:
newsRef- the reference of the news (its identifier and its QuickInfo instance).
-
getPlatformNews
public List<News> getPlatformNews(String userId)
- Specified by:
getPlatformNewsin interfaceQuickInfoService
-
getNewsForTicker
public List<News> getNewsForTicker(String userId)
- Specified by:
getNewsForTickerin interfaceQuickInfoService
-
getUnreadBlockingNews
public List<News> getUnreadBlockingNews(String userId)
- Specified by:
getUnreadBlockingNewsin interfaceQuickInfoService
-
submitNewsOnHomepage
public void submitNewsOnHomepage(org.silverpeas.core.ResourceReference newsRef, String userId)Description copied from interface:QuickInfoServiceSubmits the specified news of a QuickInfo instance to the news of the main page.- Specified by:
submitNewsOnHomepagein interfaceQuickInfoService- 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:QuickInfoServicePerforms processes about news linked to given reminder.
If news is not concerned, nothing is performed.- Specified by:
performReminderin interfaceQuickInfoService- Parameters:
reminder- aReminderinstance.
-
-