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
public class JiraUserPreferences
- extends Object
- implements com.atlassian.core.user.preferences.Preferences
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
@Deprecated
public JiraUserPreferences(User pUser)
- Deprecated.
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
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
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
Copyright © 2002-2011 Atlassian. All Rights Reserved.