Interface QuickInfoService
-
- All Superinterfaces:
org.silverpeas.core.ApplicationService
- All Known Implementing Classes:
DefaultQuickInfoService
public interface QuickInfoService extends org.silverpeas.core.ApplicationService
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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)static QuickInfoServiceget()List<News>getAllNews(String componentId)NewsByStatusgetAllNewsByStatus(String componentId, String userId)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 id)List<News>getNewsForTicker(String userId)List<News>getPlatformNews(String userId)List<News>getUnreadBlockingNews(String userId)List<News>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.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
-
get
static QuickInfoService get()
-
getContributionById
Optional<News> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
- Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService
-
copyNews
void copyNews(News newsToCopy, org.silverpeas.core.admin.component.model.PasteDetail pasteDetail)
Creating new news from an existing one.- Parameters:
newsToCopy- news to copy.pasteDetail- the details about the copy (user identifier and component destination).
-
publish
void publish(org.silverpeas.core.ResourceReference newsRef, String userId)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.
-
getAllNewsByStatus
NewsByStatus getAllNewsByStatus(String componentId, String userId)
-
acknowledgeNews
void acknowledgeNews(org.silverpeas.core.ResourceReference newsRef, String userId)
-
getNews
News getNews(org.silverpeas.core.ResourceReference newsRef)
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.
-
submitNewsOnHomepage
void submitNewsOnHomepage(org.silverpeas.core.ResourceReference newsRef, String userId)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.
-
-