public interface

ExtendedPreferences

implements Preferences
com.atlassian.jira.user.preferences.ExtendedPreferences
Known Indirect Subclasses

Class Overview

Adding the abilities to store, retrieve text from property set and to check if preference is stored at all

Summary

Public Methods
boolean containsValue(String key)
Checks if key exists (defaults doesn't count)
boolean equals(Object other)
Preferences objects are equal iff they are preferences for the same user.
String getText(String key)
String getUserKey()
Returns the user's key, or null if the preferences are for an anonymous user.
int hashCode()
Returns a hash code based on the user's key, or 0 if the preferences are for an anonymous user.
void setText(String key, String value)
[Expand]
Inherited Methods
From interface com.atlassian.core.user.preferences.Preferences

Public Methods

public boolean containsValue (String key)

Checks if key exists (defaults doesn't count)

Parameters
key key to be checked
Returns
  • if value for key exists

public boolean equals (Object other)

Preferences objects are equal iff they are preferences for the same user.

Parameters
other the object to check for equality
Returns
  • true if the the preferences are for the same user; false otherwise

public String getText (String key)

public String getUserKey ()

Returns the user's key, or null if the preferences are for an anonymous user.

Returns
  • the user's key, or null if the preferences are for an anonymous user.

public int hashCode ()

Returns a hash code based on the user's key, or 0 if the preferences are for an anonymous user.

Returns
  • a hash code based on the user's key, or 0 if the preferences are for an anonymous user.

public void setText (String key, String value)