Interface ContentDao
- All Known Subinterfaces:
- ContentDaoInternal
- All Known Implementing Classes:
- DefaultContentDao
 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.
- Since:
- 4.0
- 
Method SummaryModifier and TypeMethodDescriptiongetById(long id) intThis is for internal use only, Do not rely on it as a public API.intThis is for internal use only, Do not rely on it as a public API.intThis is for internal use only, Do not rely on it as a public API.intgetLatestOrderedWikiContentFromContentId(long startContentId, int maxRows) getLatestOrderedXhtmlContentFromContentIds(long startContentId, long endContentId) This is for internal use only, Do not rely on it as a public API.getLatestOrderedXhtmlContentIds(long startContentId, int maxRows) This is for internal use only, Do not rely on it as a public API.getOrderedXhtmlContentFromContentId(long startContentId, int maxRows) This is for internal use only, Do not rely on it as a public API.getXhtmlSpaceDescriptionsFromContentId(long startContentId, int maxRows) This is for internal use only, Do not rely on it as a public API.voidsave(ContentEntityObject contentEntityObject) voidsave(ContentEntityObject entity, ContentEntityObject entityClone) voidsaveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave) This is for internal use only, Do not rely on it as a public API.
- 
Method Details- 
getById
- 
getLatestContentCountint getLatestContentCount()
- 
getLatestOrderedWikiContentFromContentIdList<ContentEntityObject> getLatestOrderedWikiContentFromContentId(long startContentId, int maxRows) - Parameters:
- startContentId- start content id
- maxRows- max rows
- Returns:
- the latest versions of wiki content within the specified bounds
 
- 
getOrderedXhtmlContentFromContentIdThis 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. - Parameters:
- startContentId-
- maxRows-
- Returns:
- a list ordered by id of all the ContentEntityObjects with XHTML formatted bodies.
 
- 
getLatestOrderedXhtmlContentFromContentIdsList<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. - Returns:
- a list ordered by id of all the latest ContentEntityObjects with XHTML formatted bodies.
 
- 
getLatestOrderedXhtmlContentIdsThis 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. - Parameters:
- startContentId-
- maxRows-
- Returns:
- a ordered list of IDs of all the latest ContentEntityObjects with XHTML formatted bodies.
 
- 
getXhtmlSpaceDescriptionsFromContentIdThis 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. - Parameters:
- startContentId-
- maxRows-
- Returns:
- a list ordered by id of all the SpaceDescriptions with BodyContent of type BodyType.XHTML
 
- 
getCountOfXhtmlContentint 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. - Returns:
- the number of CEO's with XHTML content.
 
- 
getCountOfLatestXhtmlContentint 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. - Returns:
- the number of latest CEO's with XHTML content.
 
- 
getCountOfXhtmlSpaceDescriptionsint 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. - Returns:
- the number of SpaceDescriptions with BodyContent of type BodyType.XHTML
 
- 
saveRawWithoutReindexvoid 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. 
- 
save- Since:
- 10.0
 
- 
save- Since:
- 10.0
 
 
-