Interface LabelDaoInternal
- All Superinterfaces:
LabelDao
- All Known Implementing Classes:
HibernateLabelDao
Dao for Labels.
- Since:
- 6.10.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindByDetailsInSpace
(String name, String namespace, String owner, String spaceKey, LimitedRequest limitedRequest) Allow to find labels by details in Space with pagination.findBySingleDegreeSeparation
(Label content, LimitedRequest limitedRequest) findBySingleDegreeSeparation
(Label content, String spaceKey, LimitedRequest limitedRequest) findMostPopular
(String namespace, LimitedRequest limitedRequest) findMostPopularBySpace
(String namespace, String key, LimitedRequest limitedRequest) Find the most popular labels in the specified space.findRecentlyUsed
(LimitedRequest limitedRequest) findRecentlyUsedBySpace
(String key, LimitedRequest limitedRequest) Find the most recently used labels in the specified space.findRecentlyUsedLabellingsBySpace
(String key, LimitedRequest limitedRequest) Find the most recently used labellings in the specified space.long
getTotalLabelInSpace
(String name, String namespace, String owner, String spaceKey) Count total number of labels in spacevoid
Methods inherited from interface com.atlassian.confluence.labels.persistence.dao.LabelDao
deleteLabellingBySpace, findAllContentForAllLabels, findAllUserLabelledContent, findByDetails, findByDetailsInSpace, findByDetailsInSpaces, findById, findByLabel, findBySingleDegreeSeparation, findBySingleDegreeSeparation, findBySingleDegreeSeparation, findBySingleDegreeSeparation, findBySpace, findContentCountForLabel, findContentForLabel, findContentInSpaceForAllLabels, findContentInSpacesForAllLabels, findCurrentContentForLabel, findCurrentContentForLabelAndSpace, findForAllLabels, findForAllLabels, findGlobalLabelsByNamePrefix, findLabellingByContentAndLabel, findLabellingById, findMostPopular, findMostPopularBySpace, findRecentlyUsed, findRecentlyUsedBySpace, findRecentlyUsedLabelling, findRecentlyUsedLabellingsBySpace, findRecentlyUsedUserLabellings, findRecentlyUsedUserLabels, findSpacesContainingContentWithLabel, findSpacesWithLabel, findTeamLabelsByNamePrefix, findUnusedLabels, getFavouriteLabellingsByContentIds, getFavouriteSpaces, remove, remove
-
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
- Since:
- 9.3.0
-
findBySingleDegreeSeparation
PageResponse<Label> findBySingleDegreeSeparation(Label content, String spaceKey, LimitedRequest limitedRequest) - Since:
- 9.2.6
-
findMostPopular
- Since:
- 9.3.0
-
getTotalLabelInSpace
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
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
- Since:
- 9.2.4
-
save
- Since:
- 9.0.
-