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 void
acknowledgeNews(String id, String userId)
News
create(News news)
List<News>
getAllNews(String componentId)
NewsByStatus
getAllNewsByStatus(String componentId, String userId)
org.silverpeas.core.util.LocalizationBundle
getComponentMessages(String language)
org.silverpeas.core.util.SettingBundle
getComponentSettings()
Optional<News>
getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
News
getNews(String id)
News
getNewsByForeignId(String foreignId)
List<News>
getNewsForTicker(String userId)
List<News>
getPlatformNews(String userId)
List<News>
getUnreadBlockingNews(String userId)
List<News>
getVisibleNews(String componentId)
boolean
isRelatedTo(String instanceId)
void
performReminder(org.silverpeas.core.reminder.Reminder reminder)
Performs processes about news linked to given reminder.
If news is not concerned, nothing is performed.void
publish(String id, String userId)
void
removeNews(String id)
void
submitNewsOnHomepage(String id, String userId)
void
update(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:
getContributionById
in interfaceorg.silverpeas.core.ApplicationService
- Specified by:
getContributionById
in interfaceQuickInfoService
-
getVisibleNews
public List<News> getVisibleNews(String componentId)
- Specified by:
getVisibleNews
in interfaceQuickInfoService
-
getAllNews
public List<News> getAllNews(String componentId)
- Specified by:
getAllNews
in interfaceQuickInfoService
-
getAllNewsByStatus
public NewsByStatus getAllNewsByStatus(String componentId, String userId)
- Specified by:
getAllNewsByStatus
in interfaceQuickInfoService
-
getNews
public News getNews(String id)
- Specified by:
getNews
in interfaceQuickInfoService
-
getNewsByForeignId
public News getNewsByForeignId(String foreignId)
- Specified by:
getNewsByForeignId
in interfaceQuickInfoService
-
acknowledgeNews
public void acknowledgeNews(String id, String userId)
- Specified by:
acknowledgeNews
in interfaceQuickInfoService
-
getComponentSettings
public org.silverpeas.core.util.SettingBundle getComponentSettings()
- Specified by:
getComponentSettings
in interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
public org.silverpeas.core.util.LocalizationBundle getComponentMessages(String language)
- Specified by:
getComponentMessages
in interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
public boolean isRelatedTo(String instanceId)
- Specified by:
isRelatedTo
in interfaceorg.silverpeas.core.ApplicationService
-
create
public News create(News news)
- Specified by:
create
in interfaceQuickInfoService
-
publish
public void publish(String id, String userId)
- Specified by:
publish
in interfaceQuickInfoService
-
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 interfaceQuickInfoService
-
removeNews
public void removeNews(String id)
- Specified by:
removeNews
in interfaceQuickInfoService
-
getPlatformNews
public List<News> getPlatformNews(String userId)
- Specified by:
getPlatformNews
in interfaceQuickInfoService
-
getNewsForTicker
public List<News> getNewsForTicker(String userId)
- Specified by:
getNewsForTicker
in interfaceQuickInfoService
-
getUnreadBlockingNews
public List<News> getUnreadBlockingNews(String userId)
- Specified by:
getUnreadBlockingNews
in interfaceQuickInfoService
-
submitNewsOnHomepage
public void submitNewsOnHomepage(String id, String userId)
- Specified by:
submitNewsOnHomepage
in interfaceQuickInfoService
-
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 interfaceQuickInfoService
- Parameters:
reminder
- aReminder
instance.
-
-