com.atlassian.confluence.content.persistence
Interface CustomContentDao

All Superinterfaces:
ContentEntityObjectDao, ObjectDao, VersionedObjectDao
All Known Implementing Classes:
PluginContentHibernateDao

public interface CustomContentDao
extends ContentEntityObjectDao


Field Summary
 
Fields inherited from interface bucket.core.persistence.ObjectDao
NON_CACHEABLE
 
Method Summary
 long countChildrenOfType(long id, String contentModuleKey)
           
 Iterator<CustomContentEntityObject> findAll(String pluginContentKey)
          Retrieves an iterator of CustomContentEntityObject with the specified pluginContentKey
 Iterator<CustomContentEntityObject> findAllChildren(long id)
          Retrieves all children of the specified content.
 Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpace(String pluginContentKey, long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
           
 Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginContentKey, long spaceId)
           
 Iterator<CustomContentEntityObject> findAllWithAttachments(String pluginContentKey)
          Retrieves an iterator of CustomContentEntityObject with the specified pluginContentKey.
<T> PageResponse<T>
findByQuery(ContentQuery<T> query, boolean cacheable, LimitedRequest request, com.google.common.base.Predicate<T> predicate)
           
<T> Iterator<T>
findByQuery(ContentQuery<T> query, int offset, int maxResults)
           
 Iterator<CustomContentEntityObject> findChildrenOfType(long id, String pluginContentKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
           
 Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
           
 int findTotalInSpace(long spaceId, String pluginModuleKey)
           
 
Methods inherited from interface com.atlassian.confluence.core.persistence.ContentEntityObjectDao
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findHistoricalVersionsAfterVersion, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary
 
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

findByQuery

<T> Iterator<T> findByQuery(ContentQuery<T> query,
                            int offset,
                            int maxResults)

findByQuery

<T> PageResponse<T> findByQuery(ContentQuery<T> query,
                                boolean cacheable,
                                LimitedRequest request,
                                com.google.common.base.Predicate<T> predicate)

findTotalInSpace

int findTotalInSpace(long spaceId,
                     String pluginModuleKey)

findCurrentInSpace

Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId,
                                                       String pluginModuleKey,
                                                       int offset,
                                                       int maxResults,
                                                       CustomContentManager.SortField sortField,
                                                       CustomContentManager.SortOrder sortOrder)

findAllInSpaceWithAttachments

Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginContentKey,
                                                                  long spaceId)

findAllInSpace

Iterator<CustomContentEntityObject> findAllInSpace(String pluginContentKey,
                                                   long spaceId)

findAllInSpaceWithAttachments

Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)

findAllInSpace

Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)

findAll

Iterator<CustomContentEntityObject> findAll(String pluginContentKey)
Retrieves an iterator of CustomContentEntityObject with the specified pluginContentKey

Parameters:
pluginContentKey - CustomContentEntityObject with this plugin content key will be returned
Returns:
iterator of CustomContentEntityObject

findAllWithAttachments

Iterator<CustomContentEntityObject> findAllWithAttachments(String pluginContentKey)
Retrieves an iterator of CustomContentEntityObject with the specified pluginContentKey. We are loading

Parameters:
pluginContentKey - CustomContentEntityObject with this plugin content key will be returned
Returns:
iterator of CustomContentEntityObject

findAllChildren

Iterator<CustomContentEntityObject> findAllChildren(long id)
Retrieves all children of the specified content.

Parameters:
id - children of this content entity will be returned
Returns:
iterator of CustomContentEntityObject

findChildrenOfType

Iterator<CustomContentEntityObject> findChildrenOfType(long id,
                                                       String pluginContentKey,
                                                       int offset,
                                                       int maxResults,
                                                       CustomContentManager.SortField sortField,
                                                       CustomContentManager.SortOrder sortOrder)

countChildrenOfType

long countChildrenOfType(long id,
                         String contentModuleKey)


Copyright © 2003–2015 Atlassian. All rights reserved.