java.lang.Object |
↳ |
com.atlassian.jira.rest.v2.preference.CurrentUserPreferencesResource |
Class Overview
Provide preferences of the currently logged in user.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
Response
getPreference
(String key)
Returns preference of the currently logged in user. Preference key must be provided as input parameter (key). The
value is returned exactly as it is. If key parameter is not provided or wrong - status code 404. If value is
found - status code 200.
Parameters
key
| - key of the preference to be returned. |
Returns
- response with value of one preference of currently logged in user.
public
Response
removePreference
(String key)
Removes preference of the currently logged in user. Preference key must be provided as input parameters (key). If
key parameter is not provided or wrong - status code 404. If preference is unset - status code 204.
Parameters
key
| - key of the preference to be removed. |
public
Response
setPreference
(String key, String value)
Sets preference of the currently logged in user. Preference key must be provided as input parameters (key). Value
must be provided as post body. If key or value parameter is not provided - status code 404. If preference is set
- status code 204.
Parameters
key
| - key of the preference to be set. |
value
| - value of the preference to be set. |