public interface ContentDao extends ContentEntityObjectDao<ContentEntityObject>
This was introduced because ContentEntityManager
cannot be autowired by type in spring 2.0.
Secondly, was introduced to make unit testing easier.
You should not consider this interface public. It is required to provide some Confluence 4 migration specific functionality but not for use outside this context.
Modifier and Type | Method and Description |
---|---|
ContentEntityObject |
getById(long id)
Retrieve the object with a particular id from the database.
|
int |
getCountOfLatestXhtmlContent()
This is for internal use only, Do not rely on it as a public API.
|
int |
getCountOfXhtmlContent()
This is for internal use only, Do not rely on it as a public API.
|
int |
getCountOfXhtmlSpaceDescriptions()
This is for internal use only, Do not rely on it as a public API.
|
int |
getLatestContentCount() |
List<ContentEntityObject> |
getLatestOrderedWikiContentFromContentId(long startContentId,
int maxRows) |
List<ContentEntityObject> |
getLatestOrderedXhtmlContentFromContentIds(long startContentId,
long endContentId)
This is for internal use only, Do not rely on it as a public API.
|
List<Long> |
getLatestOrderedXhtmlContentIds(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API.
|
List<ContentEntityObject> |
getOrderedXhtmlContentFromContentId(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API.
|
List<ContentEntityObject> |
getXhtmlSpaceDescriptionsFromContentId(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API.
|
void |
saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
This is for internal use only, Do not rely on it as a public API.
|
countContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findDraftsWithUnpublishedChangesForUser, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
ContentEntityObject getById(long id)
ContentEntityObjectDao
getById
in interface ContentEntityObjectDao<ContentEntityObject>
id
- the id of the object to look upint getLatestContentCount()
List<ContentEntityObject> getLatestOrderedWikiContentFromContentId(long startContentId, int maxRows)
startContentId
- start content idmaxRows
- max rowsList<ContentEntityObject> getOrderedXhtmlContentFromContentId(long startContentId, int maxRows)
This is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
startContentId
- maxRows
- List<ContentEntityObject> getLatestOrderedXhtmlContentFromContentIds(long startContentId, long endContentId)
This is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
List<Long> getLatestOrderedXhtmlContentIds(long startContentId, int maxRows)
This is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
startContentId
- maxRows
- List<ContentEntityObject> getXhtmlSpaceDescriptionsFromContentId(long startContentId, int maxRows)
This is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
startContentId
- maxRows
- int getCountOfXhtmlContent()
This is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
int getCountOfLatestXhtmlContent()
This is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
int getCountOfXhtmlSpaceDescriptions()
This is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
void saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
This is for internal use only, Do not rely on it as a public API.
Perform a saveRaw but without performing the re-index; it is unnecessary in the context of a migration or upgrade.
Copyright © 2003–2020 Atlassian. All rights reserved.