Class QuickReloadResource
java.lang.Object
com.atlassian.confluence.plugins.quickreload.QuickReloadResource
Endpoint for retrieving comments and page content after a specified time.
Useful for showing live updates to a page.
-
Constructor Summary
ConstructorDescriptionQuickReloadResource
(CommentManager commentManager, CommentRenderService commentRenderer, UserAccessor userAccessor, PageManager pageManager, PermissionManager permissionManager, I18NBeanFactory i18NBeanFactory, QuickReloadCaches caches, AccessModeService accessModeService, GlobalSettingsManager settingsManager, LicenseService licenseService, AttachmentManager attachmentManager) -
Method Summary
-
Constructor Details
-
QuickReloadResource
public QuickReloadResource(CommentManager commentManager, CommentRenderService commentRenderer, UserAccessor userAccessor, PageManager pageManager, PermissionManager permissionManager, I18NBeanFactory i18NBeanFactory, QuickReloadCaches caches, AccessModeService accessModeService, GlobalSettingsManager settingsManager, LicenseService licenseService, AttachmentManager attachmentManager)
-
-
Method Details
-
getAll
public javax.ws.rs.core.Response getAll(@Context javax.servlet.http.HttpServletRequest request, Long pageId, Long since) Finds any new comments or latest edit to this page since a given time, and returns the rendered html and user details. It is expected that this is polled by a client at regular intervals and, as such, processing done here needs to be as efficient as is humanly possible.- Parameters:
pageId
- Currently loaded pagesince
- Time of last poll
-