com.atlassian.confluence.core.persistence
Interface ContentEntityObjectDao
- All Superinterfaces:
- ObjectDao, VersionedObjectDao
- All Known Subinterfaces:
- ContentDao, MailDao, PageDao, UserStatusDao
- All Known Implementing Classes:
- CachingPageDao, ContentEntityObjectHibernateDao, DefaultContentDao, HibernateMailDao, HibernatePageDao, HibernateUserStatusDao
public interface ContentEntityObjectDao
- extends VersionedObjectDao
getById
ContentEntityObject getById(long id)
getContentAuthoredByUser
List getContentAuthoredByUser(String username)
getAllCurrentEntities
Iterator getAllCurrentEntities()
getRecentlyAddedEntities
Iterator getRecentlyAddedEntities(String spaceKey,
int maxResults)
getRecentlyModifiedEntities
Iterator getRecentlyModifiedEntities(int maxResults)
getRecentlyModifiedEntities
Iterator getRecentlyModifiedEntities(String spaceKey,
int maxResults)
getRecentlyModifiedForChangeDigest
List getRecentlyModifiedForChangeDigest(Date fromDate)
- Retrieves a list of
ContentEntityObject
s that have been newly added or modified
since the date specified. This list excludes drafts, space descriptions and mail.
- Parameters:
fromDate
- content modified after this date will be returned
- Returns:
- a list of
ContentEntityObject
s that have been newly added or modified
since the date specified
getRecentlyModifiedEntitiesForUser
Iterator getRecentlyModifiedEntitiesForUser(String username)
getLockedContentBySpace
List getLockedContentBySpace(String spaceKey)
getTrashedContent
List getTrashedContent(String spaceKey)
getObjectType
String getObjectType(long id)
getFirstVersionBefore
ContentEntityObject getFirstVersionBefore(long originalVersionContentId,
int version)
getFirstVersionAfter
ContentEntityObject getFirstVersionAfter(long originalVersionContentId,
int version)
getVersion
ContentEntityObject getVersion(long originalVersionContentId,
int version)
getVersionHistorySummary
List getVersionHistorySummary(long originalContentId)
findPreviousVersions
List findPreviousVersions(long originalContentId)
getLastEditedVersionsOf
List<ContentEntityObject> getLastEditedVersionsOf(ContentEntityObject content)
- Retrieves all the last edited versions for each user who has contributed to the specified piece of content.
That is, if a user has contributed multiple edits, only the version that corresponds to their latest edit will be added to the list returned.
Result will be sorted with the earliest version coming first.
- Parameters:
content
- content (must be the latest version)
- Returns:
- the last edited versions for each user who has contributed to the specified piece of content.
- Throws:
IllegalArgumentException
- if the content is not the latest version or null