public class MyselfApi extends Object
| Constructor and Description |
|---|
MyselfApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
deleteLocale(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deprecated.
|
io.reactivex.Single<User> |
getCurrentUser(Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get current user
Returns details for the current user.
|
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(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(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)
Deprecated.
|
io.reactivex.Single<Object> |
setPreference(String key,
String body,
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.
|
@Deprecated public io.reactivex.Single<Object> deleteLocale(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<User> getCurrentUser(Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
expand - Use [expand](#expansion) to include additional information about user in the response. This parameter accepts a comma-separated list. Expand options include: * `groups` Returns all groups, including nested groups, the user belongs to. * `applicationRoles` Returns the application roles the user is assigned to. (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<Locale> getLocale(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<String> getPreference(String key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
key - The key of the preference. (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 removePreference(String key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
key - The key of the preference. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
@Deprecated public io.reactivex.Single<Object> setLocale(Locale locale, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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 key, String body, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
key - The key of the preference. The maximum length is 255 characters. (required)body - The value of the preference as a plain text string. The maximum length is 255 characters. (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–2021 Everit Kft.. All rights reserved.