public class DashboardsApi extends Object
| Constructor and Description |
|---|
DashboardsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<DashboardGadget> |
addGadget(Long dashboardId,
DashboardGadgetSettings dashboardGadgetSettings,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add gadget to dashboard
Adds a gadget to a dashboard.
|
io.reactivex.Single<BulkEditShareableEntityResponse> |
bulkEditDashboards(BulkEditShareableEntityRequest bulkEditShareableEntityRequest,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Bulk edit dashboards
Bulk edit dashboards.
|
io.reactivex.Single<Dashboard> |
copyDashboard(String id,
DashboardDetails dashboardDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Copy dashboard
Copies a dashboard.
|
io.reactivex.Single<Dashboard> |
createDashboard(DashboardDetails dashboardDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create dashboard
Creates a dashboard.
|
io.reactivex.Completable |
deleteDashboard(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete dashboard
Deletes a dashboard.
|
io.reactivex.Completable |
deleteDashboardItemProperty(String dashboardId,
String itemId,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete dashboard item property
Deletes a dashboard item property.
|
io.reactivex.Single<AvailableDashboardGadgetsResponse> |
getAllAvailableDashboardGadgets(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get available gadgets
Gets a list of all available gadgets that can be added to all dashboards.
|
io.reactivex.Single<PageOfDashboards> |
getAllDashboards(Optional<String> filter,
Optional<Integer> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all dashboards
Returns a list of dashboards owned by or shared with the user.
|
io.reactivex.Single<DashboardGadgetResponse> |
getAllGadgets(Long dashboardId,
Optional<List<String>> moduleKey,
Optional<List<String>> uri,
Optional<List<Long>> gadgetId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get gadgets
Returns a list of dashboard gadgets on a dashboard.
|
io.reactivex.Single<Dashboard> |
getDashboard(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get dashboard
Returns a dashboard.
|
io.reactivex.Single<EntityProperty> |
getDashboardItemProperty(String dashboardId,
String itemId,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get dashboard item property
Returns the key and value of a dashboard item property.
|
io.reactivex.Single<PropertyKeys> |
getDashboardItemPropertyKeys(String dashboardId,
String itemId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get dashboard item property keys
Returns the keys of all properties for a dashboard item.
|
io.reactivex.Single<PageBeanDashboard> |
getDashboardsPaginated(Optional<String> dashboardName,
Optional<String> accountId,
Optional<String> owner,
Optional<String> groupname,
Optional<String> groupId,
Optional<Long> projectId,
Optional<String> orderBy,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<String> status,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Search for dashboards
Returns a [paginated](#pagination) list of dashboards.
|
io.reactivex.Single<Object> |
removeGadget(Long dashboardId,
Long gadgetId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Remove gadget from dashboard
Removes a dashboard gadget from a dashboard.
|
io.reactivex.Single<Object> |
setDashboardItemProperty(String dashboardId,
String itemId,
String propertyKey,
Object body,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set dashboard item property
Sets the value of a dashboard item property.
|
io.reactivex.Single<Dashboard> |
updateDashboard(String id,
DashboardDetails dashboardDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update dashboard
Updates a dashboard, replacing all the dashboard details with those provided.
|
io.reactivex.Single<Object> |
updateGadget(Long dashboardId,
Long gadgetId,
DashboardGadgetUpdateRequest dashboardGadgetUpdateRequest,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update gadget on dashboard
Changes the title, position, and color of the gadget on a dashboard.
|
public DashboardsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<DashboardGadget> addGadget(Long dashboardId, DashboardGadgetSettings dashboardGadgetSettings, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)dashboardGadgetSettings - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<BulkEditShareableEntityResponse> bulkEditDashboards(BulkEditShareableEntityRequest bulkEditShareableEntityRequest, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
bulkEditShareableEntityRequest - The details of dashboards being updated in bulk. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Dashboard> copyDashboard(String id, DashboardDetails dashboardDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - (required)dashboardDetails - Dashboard details. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Dashboard> createDashboard(DashboardDetails dashboardDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardDetails - Dashboard details. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deleteDashboard(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the dashboard. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deleteDashboardItemProperty(String dashboardId, String itemId, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)itemId - The ID of the dashboard item. (required)propertyKey - The key of the dashboard item property. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<AvailableDashboardGadgetsResponse> getAllAvailableDashboardGadgets(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageOfDashboards> getAllDashboards(Optional<String> filter, Optional<Integer> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
filter - The filter applied to the list of dashboards. Valid values are: * `favourite` Returns dashboards the user has marked as favorite. * `my` Returns dashboards owned by the user. (optional)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0)maxResults - The maximum number of items to return per page. (optional, default to 20)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<DashboardGadgetResponse> getAllGadgets(Long dashboardId, Optional<List<String>> moduleKey, Optional<List<String>> uri, Optional<List<Long>> gadgetId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)moduleKey - The list of gadgets module keys. To include multiple module keys, separate module keys with ampersand: `moduleKey=key:one&moduleKey=key:two`. (optional, default to new ArrayList<>())uri - The list of gadgets URIs. To include multiple URIs, separate URIs with ampersand: `uri=/rest/example/uri/1&uri=/rest/example/uri/2`. (optional, default to new ArrayList<>())gadgetId - The list of gadgets IDs. To include multiple IDs, separate IDs with ampersand: `gadgetId=10000&gadgetId=10001`. (optional, default to new ArrayList<>())restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Dashboard> getDashboard(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the dashboard. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<EntityProperty> getDashboardItemProperty(String dashboardId, String itemId, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)itemId - The ID of the dashboard item. (required)propertyKey - The key of the dashboard item property. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PropertyKeys> getDashboardItemPropertyKeys(String dashboardId, String itemId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)itemId - The ID of the dashboard item. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanDashboard> getDashboardsPaginated(Optional<String> dashboardName, Optional<String> accountId, Optional<String> owner, Optional<String> groupname, Optional<String> groupId, Optional<Long> projectId, Optional<String> orderBy, Optional<Long> startAt, Optional<Integer> maxResults, Optional<String> status, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardName - String used to perform a case-insensitive partial match with `name`. (optional)accountId - User account ID used to return dashboards with the matching `owner.accountId`. This parameter cannot be used with the `owner` parameter. (optional)owner - This parameter is deprecated because of privacy changes. Use `accountId` instead. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. User name used to return dashboards with the matching `owner.name`. This parameter cannot be used with the `accountId` parameter. (optional)groupname - As a group's name can change, use of `groupId` is recommended. Group name used to return dashboards that are shared with a group that matches `sharePermissions.group.name`. This parameter cannot be used with the `groupId` parameter. (optional)groupId - Group ID used to return dashboards that are shared with a group that matches `sharePermissions.group.groupId`. This parameter cannot be used with the `groupname` parameter. (optional)projectId - Project ID used to returns dashboards that are shared with a project that matches `sharePermissions.project.id`. (optional)orderBy - [Order](#ordering) the results by a field: * `description` Sorts by dashboard description. Note that this sort works independently of whether the expand to display the description field is in use. * `favourite_count` Sorts by dashboard popularity. * `id` Sorts by dashboard ID. * `is_favourite` Sorts by whether the dashboard is marked as a favorite. * `name` Sorts by dashboard name. * `owner` Sorts by dashboard owner name. (optional, default to name)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 50)status - The status to filter by. It may be active, archived or deleted. (optional, default to active)expand - Use [expand](#expansion) to include additional information about dashboard in the response. This parameter accepts a comma-separated list. Expand options include: * `description` Returns the description of the dashboard. * `owner` Returns the owner of the dashboard. * `viewUrl` Returns the URL that is used to view the dashboard. * `favourite` Returns `isFavourite`, an indicator of whether the user has set the dashboard as a favorite. * `favouritedCount` Returns `popularity`, a count of how many users have set this dashboard as a favorite. * `sharePermissions` Returns details of the share permissions defined for the dashboard. * `editPermissions` Returns details of the edit permissions defined for the dashboard. * `isWritable` Returns whether the current user has permission to edit the dashboard. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> removeGadget(Long dashboardId, Long gadgetId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)gadgetId - The ID of the gadget. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> setDashboardItemProperty(String dashboardId, String itemId, String propertyKey, Object body, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)itemId - The ID of the dashboard item. (required)propertyKey - The key of the dashboard item property. The maximum length is 255 characters. For dashboard items with a spec URI and no complete module key, if the provided propertyKey is equal to \"config\", the request body's JSON must be an object with all keys and values as strings. (required)body - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Dashboard> updateDashboard(String id, DashboardDetails dashboardDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the dashboard to update. (required)dashboardDetails - Replacement dashboard details. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> updateGadget(Long dashboardId, Long gadgetId, DashboardGadgetUpdateRequest dashboardGadgetUpdateRequest, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
dashboardId - The ID of the dashboard. (required)gadgetId - The ID of the gadget. (required)dashboardGadgetUpdateRequest - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2023 Everit Kft.. All rights reserved.