Class UserPropertiesV4
- java.lang.Object
-
- org.onebusaway.users.model.properties.UserPropertiesV4
-
- All Implemented Interfaces:
Serializable,UserProperties
public class UserPropertiesV4 extends Object implements Serializable, UserProperties
DO NO RENAME OR MOVE THIS CLASS. Serialized instances of this class will be around forever. See notes inUserPropertiesfor more info.- Author:
- bdferris
- See Also:
UserProperties, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPropertiesV4()UserPropertiesV4(UserPropertiesV4 o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()List<Bookmark>getBookmarks()StringgetContactCompany()StringgetContactDetails()StringgetContactEmail()StringgetContactName()doublegetDefaultLocationLat()doublegetDefaultLocationLon()StringgetDefaultLocationName()LonggetMinApiRequestInterval()API request throttling informationMap<String,Long>getReadSituationIdsWithReadTime()Information about when a service alert situation id was read by the user.booleanhasDefaultLocationLat()booleanhasDefaultLocationLon()booleanisDisabled()booleanisRememberPreferencesEnabled()voidsetBookmarks(List<Bookmark> bookmarks)voidsetContactCompany(String contactCompany)voidsetContactDetails(String contactDetails)voidsetContactEmail(String contactEmail)voidsetContactName(String contactName)voidsetDefaultLocationLat(double defaultLocationLat)voidsetDefaultLocationLon(double defaultLocationLon)voidsetDefaultLocationName(String defaultLocationName)voidsetDisabled(boolean disabled)voidsetMinApiRequestInterval(Long minApiRequestInterval)API request throttling informationvoidsetReadSituationIdsWithReadTime(Map<String,Long> readSituationIdsWithReadTime)Information about when a service alert situation id was read by the user.voidsetRememberPreferencesEnabled(boolean rememberPreferencesEnabled)
-
-
-
Constructor Detail
-
UserPropertiesV4
public UserPropertiesV4()
-
UserPropertiesV4
public UserPropertiesV4(UserPropertiesV4 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)
-
getContactName
public String getContactName()
-
setContactName
public void setContactName(String contactName)
-
getContactCompany
public String getContactCompany()
-
setContactCompany
public void setContactCompany(String contactCompany)
-
getContactEmail
public String getContactEmail()
-
setContactEmail
public void setContactEmail(String contactEmail)
-
getContactDetails
public String getContactDetails()
-
setContactDetails
public void setContactDetails(String contactDetails)
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
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()
-
-