org.onebusaway.users.model.properties
Class UserPropertiesV2

java.lang.Object
  extended by org.onebusaway.users.model.properties.UserPropertiesV2
All Implemented Interfaces:
Serializable, UserProperties

public class UserPropertiesV2
extends Object
implements Serializable, UserProperties

DO NO RENAME OR MOVE THIS CLASS. Serialized instances of this class will be around forever. See notes in UserProperties for more info.

Author:
bdferris
See Also:
UserProperties, Serialized Form

Constructor Summary
UserPropertiesV2()
           
UserPropertiesV2(UserPropertiesV2 o)
           
 
Method Summary
 void clear()
           
 List<Bookmark> getBookmarks()
           
 double getDefaultLocationLat()
           
 double getDefaultLocationLon()
           
 String getDefaultLocationName()
           
 Long getMinApiRequestInterval()
          API request throttling information
 Map<String,Long> getReadSituationIdsWithReadTime()
          Information about when a service alert situation id was read by the user.
 boolean hasDefaultLocationLat()
           
 boolean hasDefaultLocationLon()
           
 boolean isRememberPreferencesEnabled()
           
 void setBookmarks(List<Bookmark> bookmarks)
           
 void setDefaultLocationLat(double defaultLocationLat)
           
 void setDefaultLocationLon(double defaultLocationLon)
           
 void setDefaultLocationName(String defaultLocationName)
           
 void setMinApiRequestInterval(Long minApiRequestInterval)
          API request throttling information
 void setReadSituationIdsWithReadTime(Map<String,Long> readSituationIdsWithReadTime)
          Information about when a service alert situation id was read by the user.
 void setRememberPreferencesEnabled(boolean rememberPreferencesEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPropertiesV2

public UserPropertiesV2()

UserPropertiesV2

public UserPropertiesV2(UserPropertiesV2 o)
Method Detail

isRememberPreferencesEnabled

public boolean isRememberPreferencesEnabled()

setRememberPreferencesEnabled

public void setRememberPreferencesEnabled(boolean rememberPreferencesEnabled)

getDefaultLocationName

public String getDefaultLocationName()

setDefaultLocationName

public void setDefaultLocationName(String defaultLocationName)

hasDefaultLocationLat

public boolean hasDefaultLocationLat()

getDefaultLocationLat

public double getDefaultLocationLat()

setDefaultLocationLat

public void setDefaultLocationLat(double defaultLocationLat)

hasDefaultLocationLon

public boolean hasDefaultLocationLon()

getDefaultLocationLon

public double getDefaultLocationLon()

setDefaultLocationLon

public void setDefaultLocationLon(double defaultLocationLon)

getBookmarks

public List<Bookmark> getBookmarks()

setBookmarks

public void setBookmarks(List<Bookmark> bookmarks)

getMinApiRequestInterval

public Long getMinApiRequestInterval()
API request throttling information

Returns:
the minimum interval time (in ms) between successive API requests for this account.

setMinApiRequestInterval

public void setMinApiRequestInterval(Long minApiRequestInterval)
API request throttling information

Parameters:
minApiRequestInterval - minimum time interval (in ms)

getReadSituationIdsWithReadTime

public Map<String,Long> getReadSituationIdsWithReadTime()
Information about when a service alert situation id was read by the user.

Returns:
a map from situation id to the time it was read (unix-time)

setReadSituationIdsWithReadTime

public void setReadSituationIdsWithReadTime(Map<String,Long> readSituationIdsWithReadTime)
Information about when a service alert situation id was read by the user.

Parameters:
a - map from situation id to the time it was read (unix-time)

clear

public void clear()


Copyright © 2012 OneBusAway. All Rights Reserved.