Class NewsRepository
- All Implemented Interfaces:
org.silverpeas.core.persistence.datasource.repository.EntityRepository<News>
@Repository
public class NewsRepository
extends org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository<News>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByComponentId(String componentId) getByComponentIds(List<String> componentIds) getByForeignId(String foreignId) getByIdAndInstanceId(String id, String instanceId) Gets the news with the given identifier in the specified QuickInfo instance.Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.SilverpeasJpaEntityRepository
deleteByComponentInstanceIdMethods 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, updateFromNamedQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
delete, deleteById, getById, save, save
-
Constructor Details
-
NewsRepository
public NewsRepository()
-
-
Method Details
-
getByIdAndInstanceId
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.
-
getByComponentId
-
getByComponentIds
-
getByForeignId
-
getBlockingNews
-
getTickerNews
-