Interface CustomContentDao
- All Known Implementing Classes:
PluginContentHibernateDao
public interface CustomContentDao
-
Method Summary
Modifier and TypeMethodDescriptionlong
countChildrenOfType
(long id, String contentModuleKey) Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKeyfindAllChildren
(long id) Retrieves all children of the specified content.findAllContainedOfType
(long containerContentId, String pluginContentKey) findAllInSpace
(long spaceId) findAllInSpace
(String pluginContentKey, long spaceId) findAllInSpaceWithAttachments
(long spaceId) findAllInSpaceWithAttachments
(String pluginContentKey, long spaceId) findAllWithAttachments
(String pluginContentKey) Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey.<T> List<T>
findByQuery
(ContentQuery<T> query, boolean cacheable, LimitedRequest request) <T> Iterator<T>
findByQuery
(ContentQuery<T> query, int offset, int maxResults) findChildrenOfType
(long id, String pluginContentKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder) findCurrentInSpace
(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder) int
findTotalInSpace
(long spaceId, String pluginModuleKey) getById
(long id) <T> List<T>
queryForList
(ContentQuery<T> query) It is strongly recommended that thequeryForList(ContentQuery, int, int)
method be used in preference to this one, as this method does not apply pagination limits to the result set.<T> List<T>
queryForList
(ContentQuery<T> query, int offset, int maxResults)
-
Method Details
-
findByQuery
-
queryForList
- Since:
- 7.14
-
queryForList
It is strongly recommended that thequeryForList(ContentQuery, int, int)
method be used in preference to this one, as this method does not apply pagination limits to the result set. This can result in excessive memory pressure. This method should only be used when the query is self-limiting, or when the size of the result set is otherwise known in advance.- Since:
- 7.16
-
findByQuery
- Since:
- 8.7
-
findTotalInSpace
-
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
-
findAllInSpaceWithAttachments
-
findAllInSpace
-
findAll
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey- Parameters:
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returned- Returns:
- iterator of
CustomContentEntityObject
-
findAllWithAttachments
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey. We are loading- Parameters:
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returned- Returns:
- iterator of
CustomContentEntityObject
-
findAllChildren
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
-
findAllContainedOfType
Iterator<CustomContentEntityObject> findAllContainedOfType(long containerContentId, String pluginContentKey) -
getById
-