Class SpaceLabelServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.SpaceLabelServiceImpl
- All Implemented Interfaces:
SpaceLabelService
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.SpaceLabelService
SpaceLabelService.Validator
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceLabelServiceImpl
(SpaceManagerInternal spaceManager, PaginationService paginationService, PermissionManager permissionManager, LabelManager labelManager, LabelFactory labelFactory, SpaceService.Validator spaceValidator) -
Method Summary
Modifier and TypeMethodDescriptionfindAllContentLabelsPaginated
(String spaceKey, PageRequest pageRequest) Returns a paginated list of all Labels used by Content within the given Space.findPopularContentLabelsPaginated
(String spaceKey, PageRequest pageRequest) Returns a paginated list of the most popular Labels used by Content within the given Space.findRecentContentLabelsPaginated
(String spaceKey, PageRequest pageRequest) Returns a paginated list of the most recent Labels used by Content within the given Space.findRelatedContentLabelsPaginated
(String spaceKey, String labelName, PageRequest pageRequest) Returns a paginated list of related Labels used by Content within the given Space.Get the validator view of the Space Service.
-
Constructor Details
-
SpaceLabelServiceImpl
public SpaceLabelServiceImpl(SpaceManagerInternal spaceManager, PaginationService paginationService, PermissionManager permissionManager, LabelManager labelManager, LabelFactory labelFactory, SpaceService.Validator spaceValidator)
-
-
Method Details
-
findAllContentLabelsPaginated
Description copied from interface:SpaceLabelService
Returns a paginated list of all Labels used by Content within the given Space.- Specified by:
findAllContentLabelsPaginated
in interfaceSpaceLabelService
- Parameters:
spaceKey
- the key of the Space the User is attempting to search.pageRequest
- the pagination parameters.- Returns:
- Paginated list of labels.
-
findPopularContentLabelsPaginated
public PageResponse<Label> findPopularContentLabelsPaginated(String spaceKey, PageRequest pageRequest) Description copied from interface:SpaceLabelService
Returns a paginated list of the most popular Labels used by Content within the given Space.- Specified by:
findPopularContentLabelsPaginated
in interfaceSpaceLabelService
- Parameters:
spaceKey
- the key of the Space the User is attempting to search.pageRequest
- the pagination parameters.- Returns:
- Paginated list of labels.
-
findRecentContentLabelsPaginated
public PageResponse<Label> findRecentContentLabelsPaginated(String spaceKey, PageRequest pageRequest) Description copied from interface:SpaceLabelService
Returns a paginated list of the most recent Labels used by Content within the given Space.- Specified by:
findRecentContentLabelsPaginated
in interfaceSpaceLabelService
- Parameters:
spaceKey
- the key of the Space the User is attempting to search.pageRequest
- the pagination parameters.- Returns:
- Paginated list of labels.
-
findRelatedContentLabelsPaginated
public PageResponse<Label> findRelatedContentLabelsPaginated(String spaceKey, String labelName, PageRequest pageRequest) Description copied from interface:SpaceLabelService
Returns a paginated list of related Labels used by Content within the given Space. A Label is defined as being related to another when it is found attached to the same Content as the Label specified in the request.- Specified by:
findRelatedContentLabelsPaginated
in interfaceSpaceLabelService
- Parameters:
spaceKey
- the key of the Space the User is attempting to search.labelName
- the Label to match on.pageRequest
- the pagination parameters.- Returns:
- Paginated list of labels.
-
validator
Description copied from interface:SpaceLabelService
Get the validator view of the Space Service.- Specified by:
validator
in interfaceSpaceLabelService
-