java.lang.Object | |
↳ | com.atlassian.jira.user.preferences.JiraUserPreferences |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
The JIRA implementation atlassian-core
's Preferences
. Preferences that have not
been set will default to the corresponding value saved in the ApplicationProperties
.
WARNING: This class should not be in the API and will be moved to its rightful
home in jira-core
, possibly as early as JIRA 7.0. As such, all of its public constructors
are deprecated
. Use the UserPreferencesManager
to get a user's preferences
instead of referencing this class directly.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager , instead. Since v6.2.
| |||||||||||
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager , instead. Since v6.2.
| |||||||||||
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager , instead. Since v6.2.
| |||||||||||
This constructor is deprecated.
You should not construct user preferences directly. Further, preferences
created with this particular constructor do not have a reference to the user and therefore
may not behave correctly in all circumstances. In particular,
getUserKey() ,
equals(Object) and hashCode() will all behave as they would for an
anonymous user, while the actual preferences returned will instead match those provided
by the property set. Request user preferences through the UserPreferencesManager ,
instead. Since v6.2.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the specified property is set.
| |||||||||||
Returns the user's key, or
null if the preferences are for an anonymous user. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.core.user.preferences.Preferences
| |||||||||||
From interface
com.atlassian.jira.user.preferences.ExtendedPreferences
|
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager
, instead. Since v6.2.
Returns a user preferences placeholder that is suitable for an anonymous user and
defaults to the global preferences defined by ApplicationProperties
for
everything. Attempts to modify the preferences throw AtlassianCoreException.
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager
, instead. Since v6.2.
This constructor is deprecated.
You should not construct user preferences directly. Request them through the
UserPreferencesManager
, instead. Since v6.2.
This constructor is deprecated.
You should not construct user preferences directly. Further, preferences
created with this particular constructor do not have a reference to the user and therefore
may not behave correctly in all circumstances. In particular, getUserKey()
,
equals(Object)
and hashCode()
will all behave as they would for an
anonymous user, while the actual preferences returned will instead match those provided
by the property set. Request user preferences through the UserPreferencesManager
,
instead. Since v6.2.
Returns true if the specified property is set.
key | - property to be tested. |
---|
Returns the user's key, or null
if the preferences are for an anonymous user.
null
if the preferences are for an anonymous user.