Interface QuickInfoService
- All Superinterfaces:
org.silverpeas.core.ApplicationService
- All Known Implementing Classes:
DefaultQuickInfoService
public interface QuickInfoService
extends org.silverpeas.core.ApplicationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId) voidCreating new news from an existing one.static QuickInfoServiceget()getAllNews(String componentId) getAllNewsByStatus(String componentId, String userId) getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) getNews(org.silverpeas.core.ResourceReference newsRef) Gets the specified news in the QuickInfo instance it belongs to.getNewsForTicker(String userId) getPlatformNews(String userId) getUnreadBlockingNews(String userId) getVisibleNews(String componentId) 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) Methods inherited from interface org.silverpeas.core.ApplicationService
getComponentMessages, getComponentSettings, isRelatedTo
-
Method Details
-
get
-
getContributionById
Optional<News> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) - Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService
-
create
-
copyNews
Creating new news from an existing one.- Parameters:
newsToCopy- news to copy.pasteDetail- the details about the copy (user identifier and component destination).
-
publish
Publishes the specified news of a QuickInfo instance.- Parameters:
newsRef- the reference of the news (its identifier and its QuickInfo instance).userId- the unique identifier of the user publishing the news.- Throws:
org.silverpeas.kernel.exception.NotFoundException- if the instance has no such news.
-
update
void update(News news, List<org.silverpeas.core.pdc.pdc.model.PdcPosition> positions, Collection<org.silverpeas.core.io.upload.UploadedFile> uploadedFiles, boolean forcePublishing) -
removeNews
void removeNews(org.silverpeas.core.ResourceReference newsRef) Removes the specified news from the QuickInfo instance it belongs to.- Parameters:
newsRef- the reference of the news (its identifier and its QuickInfo instance).- Throws:
org.silverpeas.kernel.exception.NotFoundException- if the instance has no such news.
-
getAllNews
-
getAllNewsByStatus
-
getVisibleNews
-
getPlatformNews
-
getNewsForTicker
-
getUnreadBlockingNews
-
acknowledgeNews
-
getNews
Gets the specified news in the QuickInfo instance it belongs to.- 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
-
submitNewsOnHomepage
Submits the specified news of a QuickInfo instance to the news of the main page.- Parameters:
newsRef- the reference of the news (its identifier and its QuickInfo instance).userId- the unique identifier of the user submitting the news.- Throws:
org.silverpeas.kernel.exception.NotFoundException- if the instance has no such news.
-
performReminder
void performReminder(org.silverpeas.core.reminder.Reminder reminder) Performs processes about news linked to given reminder.
If news is not concerned, nothing is performed.- Parameters:
reminder- aReminderinstance.
-