public class CurrentUserPreferencesApi extends Object
| Constructor and Description |
|---|
CurrentUserPreferencesApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
deleteLocale(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete locale
Deletes the locale of the user, which restores the default setting.
|
io.reactivex.Single<Locale> |
getLocale(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get locale
Returns the locale for the user.
|
io.reactivex.Single<String> |
getPreference(Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get preference
Returns the value of a preference of the current user.
|
io.reactivex.Completable |
removePreference(Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete preference
Deletes a preference of the user, which restores the default value of system defined settings.
|
io.reactivex.Single<Object> |
setLocale(Locale locale,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set locale
Sets the locale of the user.
|
io.reactivex.Single<Object> |
setPreference(String body,
Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set preference
Creates a preference for the user or updates a preference's value by sending a plain text string.
|
public CurrentUserPreferencesApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Object> deleteLocale(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes the locale of the user, which restores the default setting.
Permissions required: Permission to access Jira.
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<Locale> getLocale(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the locale for the user.
If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn't match a locale available Jira, the site default locale is returned.
This operation can be accessed anonymously.
Permissions required: None.
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<String> getPreference(Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the value of a preference of the current user.
Permissions required: Permission to access Jira.
key - The key of the preference.
(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.Completable removePreference(Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a preference of the user, which restores the default value of system defined settings.
Permissions required: Permission to access Jira.
key - The key of the preference.
(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> setLocale(Locale locale, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Sets the locale of the user. The locale must be one supported by the instance of Jira.
Permissions required: Permission to access Jira.
locale - The locale defined in a LocaleBean.
(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> setPreference(String body, Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates a preference for the user or updates a preference's value by sending a plain text string. For example, false. An arbitrary preference can be created with the value containing up to 255 characters. In addition, the following keys define system preferences that can be set or created:
html.false.true.false.Permissions required: Permission to access Jira.
body - The value of the preference as a plain text string. The maximum length is 255 characters.
(required)key - The key of the preference. The maximum length is 255 characters.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.