com.atlassian.jira.user.preferences
Class JiraUserPreferences
java.lang.Object
com.atlassian.jira.user.preferences.JiraUserPreferences
- All Implemented Interfaces:
- com.atlassian.core.user.preferences.Preferences, ExtendedPreferences
public class JiraUserPreferences
- extends Object
- implements ExtendedPreferences
This is the JIRA version of atlassian-core UserPreferences. The difference is where we get the default values from.
It was decided to re-implement here as changing atlassian-core and updating dependencies etc was too hard.
JiraUserPreferences
public JiraUserPreferences()
JiraUserPreferences
public JiraUserPreferences(ApplicationUser user)
JiraUserPreferences
public JiraUserPreferences(com.atlassian.crowd.embedded.api.User pUser)
JiraUserPreferences
public JiraUserPreferences(com.opensymphony.module.propertyset.PropertySet userPs)
getLong
public long getLong(String key)
- Specified by:
getLong
in interface com.atlassian.core.user.preferences.Preferences
getString
public String getString(String key)
- Specified by:
getString
in interface com.atlassian.core.user.preferences.Preferences
getText
public String getText(String key)
- Specified by:
getText
in interface ExtendedPreferences
getBoolean
public boolean getBoolean(String key)
- Specified by:
getBoolean
in interface com.atlassian.core.user.preferences.Preferences
setLong
public void setLong(String key,
long i)
throws com.atlassian.core.AtlassianCoreException
- Specified by:
setLong
in interface com.atlassian.core.user.preferences.Preferences
- Throws:
com.atlassian.core.AtlassianCoreException
setString
public void setString(String key,
String value)
throws com.atlassian.core.AtlassianCoreException
- Specified by:
setString
in interface com.atlassian.core.user.preferences.Preferences
- Throws:
com.atlassian.core.AtlassianCoreException
setText
public void setText(String key,
String value)
throws com.atlassian.core.AtlassianCoreException
- Specified by:
setText
in interface ExtendedPreferences
- Throws:
com.atlassian.core.AtlassianCoreException
setBoolean
public void setBoolean(String key,
boolean b)
throws com.atlassian.core.AtlassianCoreException
- Specified by:
setBoolean
in interface com.atlassian.core.user.preferences.Preferences
- Throws:
com.atlassian.core.AtlassianCoreException
remove
public void remove(String key)
throws com.atlassian.core.AtlassianCoreException
- Specified by:
remove
in interface com.atlassian.core.user.preferences.Preferences
- Throws:
com.atlassian.core.AtlassianCoreException
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
containsValue
public boolean containsValue(String key)
- Returns true if the specified property is set.
- Specified by:
containsValue
in interface ExtendedPreferences
- Parameters:
key
- - property to be tested.
- Returns:
- if value for key exists
- Since:
- 5.2.2
Copyright © 2002-2013 Atlassian. All Rights Reserved.