com.atlassian.confluence.plugins.gadgets.confluencepagegadget
Class PageGadgetResource
java.lang.Object
com.atlassian.confluence.plugins.gadgets.confluencepagegadget.PageGadgetResource
public class PageGadgetResource
- extends java.lang.Object
REST resource for retrieving the page html and resources for use by the page gadget.
Method Summary |
javax.ws.rs.core.Response |
getRendererHtml(com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String pageId)
Returns the body and head values needed to insert a page into a gadget iframe. |
javax.ws.rs.core.Response |
validate(com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String pageId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageGadgetResource
public PageGadgetResource(PageManager pageManager,
@Qualifier(value="viewRenderer")
Renderer viewRenderer,
SettingsManager settingsManager,
ConfluenceWebResourceManager webResourceManager,
ThemeManager themeManager,
PermissionManager permissionManager,
UserAccessor userAccessor)
getRendererHtml
public javax.ws.rs.core.Response getRendererHtml(@Context
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String pageId)
- Returns the body and head values needed to insert a page into a gadget iframe.
- Parameters:
authenticationContext
- - the userContext `pageId
- - the id of page to view
- Returns:
- an object with the body, resources and the full html
validate
public javax.ws.rs.core.Response validate(@Context
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String pageId)
Copyright © 2003-2014 Atlassian. All Rights Reserved.