Class QuickReloadResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.quickreload.QuickReloadResource
-
public class QuickReloadResource extends Object
Endpoint for retrieving comments and page content after a specified time. Useful for showing live updates to a page.
-
-
Constructor Summary
Constructors Constructor Description QuickReloadResource(CommentManager commentManager, CommentRenderService commentRenderer, UserAccessor userAccessor, PageManager pageManager, PermissionManager permissionManager, I18NBeanFactory i18NBeanFactory, QuickReloadCaches caches, AccessModeService accessModeService, GlobalSettingsManager settingsManager, LicenseService licenseService, AttachmentManager attachmentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getAll(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.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-