Package org.onebusaway.users.impl
Class UserPropertiesServiceV3Impl
- java.lang.Object
-
- org.onebusaway.users.impl.UserPropertiesServiceV3Impl
-
- All Implemented Interfaces:
UserPropertiesService
public class UserPropertiesServiceV3Impl extends Object implements UserPropertiesService
-
-
Constructor Summary
Constructors Constructor Description UserPropertiesServiceV3Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateUser(User user)intaddStopBookmark(User user, String name, List<String> stopIds, RouteFilter filter)voidauthorizeApi(User user, long minApiRequestInterval)Authorize this user to use the apivoidclearDefaultLocation(User user)voiddeleteStopBookmarks(User user, int id)voiddisableUser(User user)UserBeangetAnonymousUserAsBean(UserBean bean)UserBeangetUserAsBean(User user, UserBean bean)Class<? extends UserProperties>getUserPropertiesType()voidmarkServiceAlertAsRead(User user, String situationId, long time, boolean isRead)voidmergeProperties(User sourceUser, User targetUser)voidresetUser(User user)voidsetDefaultLocation(User user, String locationName, double lat, double lon)voidsetLastSelectedStopIds(User user, List<String> stopIds)voidsetLastSelectedStopService(LastSelectedStopService lastSelectedStopService)voidsetRememberUserPreferencesEnabled(User user, boolean rememberPreferencesEnabled)voidsetUserDao(UserDao dao)voidsetUserPropertiesMigration(UserPropertiesMigration userPropertiesMigration)voidupdateApiKeyContactInfo(User user, String contactName, String contactCompany, String contactEmail, String contactDetails)voidupdateStopBookmark(User user, int id, String name, List<String> stopIds, RouteFilter routeFilter)
-
-
-
Method Detail
-
setUserDao
@Autowired public void setUserDao(UserDao dao)
-
setUserPropertiesMigration
@Autowired public void setUserPropertiesMigration(UserPropertiesMigration userPropertiesMigration)
-
setLastSelectedStopService
@Autowired public void setLastSelectedStopService(LastSelectedStopService lastSelectedStopService)
-
getUserPropertiesType
public Class<? extends UserProperties> getUserPropertiesType()
- Specified by:
getUserPropertiesTypein interfaceUserPropertiesService
-
getUserAsBean
public UserBean getUserAsBean(User user, UserBean bean)
- Specified by:
getUserAsBeanin interfaceUserPropertiesService
-
getAnonymousUserAsBean
public UserBean getAnonymousUserAsBean(UserBean bean)
- Specified by:
getAnonymousUserAsBeanin interfaceUserPropertiesService
-
setRememberUserPreferencesEnabled
public void setRememberUserPreferencesEnabled(User user, boolean rememberPreferencesEnabled)
- Specified by:
setRememberUserPreferencesEnabledin interfaceUserPropertiesService
-
setDefaultLocation
public void setDefaultLocation(User user, String locationName, double lat, double lon)
- Specified by:
setDefaultLocationin interfaceUserPropertiesService
-
clearDefaultLocation
public void clearDefaultLocation(User user)
- Specified by:
clearDefaultLocationin interfaceUserPropertiesService
-
addStopBookmark
public int addStopBookmark(User user, String name, List<String> stopIds, RouteFilter filter)
- Specified by:
addStopBookmarkin interfaceUserPropertiesService- Returns:
- the id for the newly created bookmark
-
updateStopBookmark
public void updateStopBookmark(User user, int id, String name, List<String> stopIds, RouteFilter routeFilter)
- Specified by:
updateStopBookmarkin interfaceUserPropertiesService
-
resetUser
public void resetUser(User user)
- Specified by:
resetUserin interfaceUserPropertiesService
-
deleteStopBookmarks
public void deleteStopBookmarks(User user, int id)
- Specified by:
deleteStopBookmarksin interfaceUserPropertiesService
-
setLastSelectedStopIds
public void setLastSelectedStopIds(User user, List<String> stopIds)
- Specified by:
setLastSelectedStopIdsin interfaceUserPropertiesService
-
authorizeApi
public void authorizeApi(User user, long minApiRequestInterval)
Description copied from interface:UserPropertiesServiceAuthorize this user to use the api- Specified by:
authorizeApiin interfaceUserPropertiesServiceminApiRequestInterval- the minimum time between requests in milliseconds
-
markServiceAlertAsRead
public void markServiceAlertAsRead(User user, String situationId, long time, boolean isRead)
- Specified by:
markServiceAlertAsReadin interfaceUserPropertiesService
-
updateApiKeyContactInfo
public void updateApiKeyContactInfo(User user, String contactName, String contactCompany, String contactEmail, String contactDetails)
- Specified by:
updateApiKeyContactInfoin interfaceUserPropertiesService
-
disableUser
public void disableUser(User user)
- Specified by:
disableUserin interfaceUserPropertiesService
-
activateUser
public void activateUser(User user)
- Specified by:
activateUserin interfaceUserPropertiesService
-
mergeProperties
public void mergeProperties(User sourceUser, User targetUser)
- Specified by:
mergePropertiesin interfaceUserPropertiesService
-
-