Interface LabelDaoInternal

All Superinterfaces:
LabelDao
All Known Implementing Classes:
HibernateLabelDao

public interface LabelDaoInternal extends LabelDao
Dao for Labels.
Since:
6.10.0
  • Method Details

    • findByDetailsInSpace

      PageResponse<Label> findByDetailsInSpace(String name, String namespace, String owner, String spaceKey, LimitedRequest limitedRequest)
      Allow to find labels by details in Space with pagination.
      Parameters:
      name -
      namespace -
      owner -
      spaceKey -
      limitedRequest -
      Returns:
      a paginated response with list with labels.
      Since:
      9.2.6
    • findBySingleDegreeSeparation

      PageResponse<Label> findBySingleDegreeSeparation(Label content, LimitedRequest limitedRequest)
      Since:
      9.3.0
    • findBySingleDegreeSeparation

      PageResponse<Label> findBySingleDegreeSeparation(Label content, String spaceKey, LimitedRequest limitedRequest)
      Since:
      9.2.6
    • findMostPopular

      PageResponse<LabelSearchResult> findMostPopular(String namespace, LimitedRequest limitedRequest)
      Since:
      9.3.0
    • getTotalLabelInSpace

      long getTotalLabelInSpace(String name, String namespace, String owner, String spaceKey)
      Count total number of labels in space
      Parameters:
      name -
      namespace -
      owner -
      spaceKey -
      Returns:
      number of labels matching the details.
    • findMostPopularBySpace

      PageResponse<LabelSearchResult> findMostPopularBySpace(String namespace, String key, LimitedRequest limitedRequest)
      Find the most popular labels in the specified space. You can restrict the number of results returned by this query by setting the maxResults and offset parameters.
      Parameters:
      namespace - Namespace of the label (can be null).
      key - of the space whose content must have the returned labels.
      limitedRequest - pagination request
      Returns:
      a paginated response with LabelSearchResult objects that map the label to the number of times it appears in the space.
      Since:
      9.2.6
    • findRecentlyUsedBySpace

      PageResponse<Label> findRecentlyUsedBySpace(String key, LimitedRequest limitedRequest)
      Find the most recently used labels in the specified space. You can restrict the number of results returned by this query by setting the maxResults and offset parameters.
      Parameters:
      key - of the space whose content must have the returned labels.
      limitedRequest - pagination request
      Returns:
      a paginated response with Label objects in an order from the most to the least recently used.
      Since:
      9.2.6
    • findRecentlyUsedLabellingsBySpace

      PageResponse<Labelling> findRecentlyUsedLabellingsBySpace(String key, LimitedRequest limitedRequest)
      Find the most recently used labellings in the specified space. You can restrict the number of results returned by this query by setting the maxResults and offset parameters.
      Parameters:
      key - of the space whose content must have the returned labellings.
      limitedRequest - pagination request
      Returns:
      a partial list of Labelling objects in an order from the most to the least recently used.
      Since:
      9.2.6
    • findRecentlyUsed

      PageResponse<Label> findRecentlyUsed(LimitedRequest limitedRequest)
      Since:
      9.2.4
    • save

      void save(Label label)
      Since:
      9.0.