public class DashboardResource extends Object
/dashboard
resource.Constructor and Description |
---|
DashboardResource(JiraAuthenticationContext jiraAuthenticationContext,
PortalPageService portalPageService,
I18nHelper.BeanFactory i18nFactory,
JiraBaseUrls jiraBaseUrls,
ContextUriInfo uriInfo) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getDashboard(String id)
Returns a single dashboard.
|
javax.ws.rs.core.Response |
list(String filter,
Integer startAtParam,
Integer maxResultsParam)
Returns a list of all dashboards, optionally filtering them.
|
public DashboardResource(JiraAuthenticationContext jiraAuthenticationContext, PortalPageService portalPageService, I18nHelper.BeanFactory i18nFactory, JiraBaseUrls jiraBaseUrls, ContextUriInfo uriInfo)
public javax.ws.rs.core.Response list(String filter, Integer startAtParam, Integer maxResultsParam)
filter
- an optional filter that is applied to the list of dashboards. Valid values include
"favourite"
for returning only favourite dashboards, and "my"
for returning
dashboards that are owned by the calling user.startAtParam
- the index of the first dashboard to return (0-based). must be 0 or a multiple of
maxResults
maxResultsParam
- a hint as to the the maximum number of dashboards to return in each call. Note that the
JIRA server reserves the right to impose a maxResults
limit that is lower than the value that a
client provides, dues to lack or resources or any other condition. When this happens, your results will be
truncated. Callers should always check the returned maxResults
to determine the value that is
effectively being used.public javax.ws.rs.core.Response getDashboard(String id)
id
- the dashboard idCopyright © 2002-2015 Atlassian. All Rights Reserved.