Class NewsRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository<News>
-
- org.silverpeas.components.quickinfo.repository.NewsRepository
-
-
Constructor Summary
Constructors Constructor Description NewsRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<News>getBlockingNews()List<News>getByComponentId(String componentId)List<News>getByComponentIds(List<String> componentIds)NewsgetByForeignId(String foreignId)NewsgetByIdAndInstanceId(String id, String instanceId)Gets the news with the given identifier in the specified QuickInfo instance.List<News>getTickerNews()-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository
deleteByComponentInstanceId
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository
contains, countByCriteria, countFromJpqlString, delete, deleteById, deleteFromJpqlQuery, deleteFromNamedQuery, findByCriteria, findByNamedQuery, findFirstByNamedQuery, flush, getAll, getById, getById, getEntityClass, getEntityManager, getFromJpqlString, getFromJpqlString, getFromNamedQuery, getFromNamedQuery, getIdentifierConverter, getMaximumItemsInClause, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromNamedQuery, listFromNamedQuery, newNamedParameters, noParameter, save, setMaximumItemsInClause, split, streamByNamedQuery, streamByNamedQuery, streamFromJpqlString, streamFromJpqlString, updateFromJpqlQuery, updateFromNamedQuery
-
-
-
-
Method Detail
-
getByIdAndInstanceId
public News getByIdAndInstanceId(String id, String instanceId)
Gets the news with the given identifier in the specified QuickInfo instance.- Parameters:
id- the unique identifier of the news.instanceId- the unique identifier of the QuickInfo instance.- Returns:
- the news or null if the instance has no such news.
-
-