Difference between Managers and Services in Confluence API

Domenico Manzo [Actonic]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2017

Working with Confluence API in some add-ons I've noticed that some functions available from "managers" and some from "services".
For example:
CommentService (https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/content/service/CommentService.html) and CommentManager (https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/pages/CommentManager.html)
LabelManager (https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/labels/LabelManager.html) and LabelsService (https://docs.atlassian.com/confluence/6.3.4/com/atlassian/confluence/labels/service/LabelsService.html)
and so on.
What is the point to divide API functions into managers and services? What is the main difference between them?

2 answers

0 votes
Domenico Manzo [Actonic]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2017

Thanks @Aleksandr Zuevich!

It will be great to hear some explanation from Atlassian team too :)

0 votes
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2017

Hi Domenico,

Nice to meet you here :)

In my opinion Services are high level while Managers are low level. Services in their implementation use Managers and their methods.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events