public class ChartPopupResource extends Object
Constructor and Description |
---|
ChartPopupResource(JiraAuthenticationContext authenticationContext,
com.atlassian.gadgets.view.GadgetViewFactory gadgetViewFactory,
VelocityRequestContextFactory velocityRequestContextFactory,
PortalPageService portalPageService,
SearchRequestService searchRequestService,
SearchService searchService,
com.atlassian.gadgets.dashboard.DashboardService dashboardService,
com.atlassian.gadgets.dashboard.spi.DashboardItemStateFactory gadgetStateFactory,
UserUtil userUtil,
com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory,
SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory,
VelocityTemplatingEngine templatingEngine) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addGadgetToDashboard(Gadget gadget)
Saves the gadget specified as a parameter to a particular dashboard.
|
javax.ws.rs.core.Response |
getChartContents(Long gadgetId,
String gadgetUri,
Long filterId,
String jql,
javax.servlet.http.HttpServletRequest request)
Renders the contents for a particular chart needed to display this chart in the issue navigator 'Charts' popup.
|
javax.ws.rs.core.Response |
getGadgetToDashboardForm(Long filterId,
String jql)
Returns the save to dashboard form.
|
public ChartPopupResource(JiraAuthenticationContext authenticationContext, com.atlassian.gadgets.view.GadgetViewFactory gadgetViewFactory, VelocityRequestContextFactory velocityRequestContextFactory, PortalPageService portalPageService, SearchRequestService searchRequestService, SearchService searchService, com.atlassian.gadgets.dashboard.DashboardService dashboardService, com.atlassian.gadgets.dashboard.spi.DashboardItemStateFactory gadgetStateFactory, UserUtil userUtil, com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory, VelocityTemplatingEngine templatingEngine)
public javax.ws.rs.core.Response getChartContents(Long gadgetId, String gadgetUri, Long filterId, String jql, @Context javax.servlet.http.HttpServletRequest request)
gadgetId
- The id of the gadget being rendered. Really just a bogus identifier associated with the popup
panel being displayed.gadgetUri
- The gadget spec URI for the chart being displayed.filterId
- The saved filter id to use for this chart. May be null if this is an anonymous filterjql
- The query entered by the user. May be null if the user was using a saved filterrequest
- The httpServletRequestpublic javax.ws.rs.core.Response getGadgetToDashboardForm(Long filterId, String jql)
filterId
- FilterId that was used to run the queryjql
- JQL that was used to run the querypublic javax.ws.rs.core.Response addGadgetToDashboard(Gadget gadget)
gadget
- The gadget to add to a dashboard.Copyright © 2002-2015 Atlassian. All Rights Reserved.