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 -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId) voidCreating new news from an existing one.getAllNews(String componentId) getAllNewsByStatus(String componentId, String userId) org.silverpeas.kernel.bundle.LocalizationBundlegetComponentMessages(String language) org.silverpeas.kernel.bundle.SettingBundlegetContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) getNews(org.silverpeas.core.ResourceReference newsRef) Gets the specified news in the QuickInfo instance it belongs to.getNewsByForeignId(String foreignId) getNewsForTicker(String userId) getPlatformNews(String userId) getUnreadBlockingNews(String userId) 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.voidPublishes 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)
-
Constructor Details
-
DefaultQuickInfoService
public DefaultQuickInfoService()
-
-
Method Details
-
getContributionById
public Optional<News> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) - Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService- Specified by:
getContributionByIdin interfaceQuickInfoService
-
getVisibleNews
- Specified by:
getVisibleNewsin interfaceQuickInfoService
-
getAllNews
- Specified by:
getAllNewsin interfaceQuickInfoService
-
getAllNewsByStatus
- Specified by:
getAllNewsByStatusin interfaceQuickInfoService
-
getNews
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
- Specified by:
getNewsByForeignIdin interfaceQuickInfoService
-
acknowledgeNews
- Specified by:
acknowledgeNewsin interfaceQuickInfoService
-
getComponentSettings
public org.silverpeas.kernel.bundle.SettingBundle getComponentSettings()- Specified by:
getComponentSettingsin interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
- Specified by:
getComponentMessagesin interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
- Specified by:
isRelatedToin interfaceorg.silverpeas.core.ApplicationService
-
create
- 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
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
- Specified by:
getPlatformNewsin interfaceQuickInfoService
-
getNewsForTicker
- Specified by:
getNewsForTickerin interfaceQuickInfoService
-
getUnreadBlockingNews
- Specified by:
getUnreadBlockingNewsin interfaceQuickInfoService
-
submitNewsOnHomepage
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.
-