View Javadoc

1   /*
2    * Atlassian Source Code Template.
3    * User: owen
4    * Date: Oct 15, 2002
5    * Time: 11:07:22 AM
6    * CVS Revision: $Revision: 1.4 $
7    * Last CVS Commit: $Date: 2003/10/20 04:53:30 $
8    * Author of last CVS Commit: $Author: amazkovoi $
9    */
10  package com.atlassian.core.user.preferences;
11  
12  import com.atlassian.core.AtlassianCoreException;
13  
14  /**
15   * An interface to represent preferences objects within JIRA.
16   */
17  public interface Preferences
18  {
19      long getLong(String key);
20  
21      void setLong(String key, long i) throws AtlassianCoreException;
22  
23      String getString(String key);
24  
25      void setString(String key, String value) throws AtlassianCoreException;
26  
27      boolean getBoolean(String key);
28  
29      void setBoolean(String key, boolean b) throws AtlassianCoreException;
30  
31      void remove(String key) throws AtlassianCoreException;
32  }