Interface AbstractPageDao
-
- All Known Subinterfaces:
AbstractPageDaoInternal
- All Known Implementing Classes:
HibernateAbstractPageDao
@Transactional(readOnly=true) public interface AbstractPageDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractPage
getAbstractPageById(long id)
Retrieves anAbstractPage
for the specified idList<AbstractPage>
getAbstractPageByIds(Iterable<Long> ids)
Retrieves a list ofAbstractPage
for the list of idint
getCountOfLatestXhtmlContent(long endContentId)
Count the number of AbstractPages that have an ID lower than the specified ID, excluding older versions.long
getHighestCeoId()
Get the highest content ID in the database, excluding older versions of content.List<ContentEntityObject>
getOrderedXhtmlContentFromContentId(long startContentId, long endContentId, int maxRows)
Gets the latest versions of AbstractPages between the given IDs limited by the specified number of rows.List<ContentEntityObject>
getPreviousVersionsOfPageWithTaskId(long pageId, long taskId, int maxRows)
Get previous versions of a CEO that contain the given task ID sorted by versions in descending order.List<ContentEntityObject>
getStaleSharedDrafts()
Get all stale shared drafts in the database.
-
-
-
Method Detail
-
getAbstractPageById
AbstractPage getAbstractPageById(long id)
Retrieves anAbstractPage
for the specified id
-
getAbstractPageByIds
List<AbstractPage> getAbstractPageByIds(Iterable<Long> ids)
Retrieves a list ofAbstractPage
for the list of id
-
getOrderedXhtmlContentFromContentId
List<ContentEntityObject> getOrderedXhtmlContentFromContentId(long startContentId, long endContentId, int maxRows)
Gets the latest versions of AbstractPages between the given IDs limited by the specified number of rows. Sorted by IDs in ascending order.- Parameters:
startContentId
- The minimum IDendContentId
- The maximum IDmaxRows
- The maximum number of rows to return- Returns:
- A list of CEOs that match the criteria.
-
getCountOfLatestXhtmlContent
int getCountOfLatestXhtmlContent(long endContentId)
Count the number of AbstractPages that have an ID lower than the specified ID, excluding older versions.- Parameters:
endContentId
- The maximum ID- Returns:
- The number of AbstractPages that have IDs lower than the specified ID
-
getHighestCeoId
long getHighestCeoId()
Get the highest content ID in the database, excluding older versions of content.- Returns:
- The highest content ID
-
getPreviousVersionsOfPageWithTaskId
List<ContentEntityObject> getPreviousVersionsOfPageWithTaskId(long pageId, long taskId, int maxRows)
Get previous versions of a CEO that contain the given task ID sorted by versions in descending order.- Parameters:
pageId
- The ID of the latest version of the pagetaskId
- The task ID to look for in previous versionsmaxRows
- The maximum number of previous versions to return- Returns:
- A maximum of maxRows previous versions of the page that contain the given taskId
-
getStaleSharedDrafts
List<ContentEntityObject> getStaleSharedDrafts()
Get all stale shared drafts in the database. These are drafts where the lastModified date is before the current version of the page- Returns:
- A list containing the stale shared drafts.
-
-