Interface CustomContentDao

All Known Implementing Classes:
PluginContentHibernateDao

public interface CustomContentDao
  • Method Details

    • findByQuery

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

      <T> List<T> queryForList(ContentQuery<T> query, int offset, int maxResults)
      Since:
      7.14
    • queryForList

      <T> List<T> queryForList(ContentQuery<T> query)
      It is strongly recommended that the queryForList(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

      <T> List<T> findByQuery(ContentQuery<T> query, boolean cacheable, LimitedRequest request)
      Since:
      8.7
    • 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)
    • findAllContainedOfType

      Iterator<CustomContentEntityObject> findAllContainedOfType(long containerContentId, String pluginContentKey)
    • findByPluginModuleKeys

      Iterator<CustomContentEntityObject> findByPluginModuleKeys(Collection<String> pluginModuleKeys, LimitedRequest limitedRequest)
      Find CustomContentEntityObjects by multiple plugin module keys across all spaces with cursor support.
      Parameters:
      pluginModuleKeys - collection of plugin module keys to search for
      limitedRequest - request with cursor and limit information
      Returns:
      iterator of matching CustomContentEntityObjects
      Since:
      9.2.11
    • findInSpaceByPluginModuleKeys

      Iterator<CustomContentEntityObject> findInSpaceByPluginModuleKeys(Collection<String> pluginModuleKeys, long spaceId, LimitedRequest limitedRequest)
      Find CustomContentEntityObjects by multiple plugin module keys within a specific space with cursor support.
      Parameters:
      pluginModuleKeys - collection of plugin module keys to search for
      spaceId - the space ID to search within
      limitedRequest - request with cursor and limit information
      Returns:
      iterator of matching CustomContentEntityObjects
      Since:
      9.2.11
    • countAllByPluginModuleKeys

      long countAllByPluginModuleKeys(Collection<String> pluginModuleKeys)
      Count CustomContentEntityObjects by multiple plugin module keys across all spaces.
      Parameters:
      pluginModuleKeys - collection of plugin module keys to count
      Returns:
      total count of matching CustomContentEntityObjects
      Since:
      9.2.11
    • countAllInSpaceByPluginModuleKeys

      long countAllInSpaceByPluginModuleKeys(Collection<String> pluginModuleKeys, long spaceId)
      Count CustomContentEntityObjects by multiple plugin module keys within a specific space.
      Parameters:
      pluginModuleKeys - collection of plugin module keys to count
      spaceId - the space ID to search within
      Returns:
      total count of matching CustomContentEntityObjects in the space
      Since:
      9.2.11
    • getById

      CustomContentEntityObject getById(long id)