Search in sources :

Example 11 with RouteFilter

use of org.onebusaway.users.model.properties.RouteFilter in project onebusaway-application-modules by camsys.

the class BookmarkStopAction method execute.

@Override
public String execute() throws Exception {
    if (_currentUser != null && !_currentUser.isRememberPreferencesEnabled())
        return "preferences_disabled";
    if (_stops.isEmpty())
        return INPUT;
    String name = _bookmarkPresentationService.getNameForStops(_stops);
    List<String> stopIds = MappingLibrary.map(_stops, "id");
    _currentUserService.addStopBookmark(name, stopIds, new RouteFilter());
    return SUCCESS;
}
Also used : RouteFilter(org.onebusaway.users.model.properties.RouteFilter)

Aggregations

RouteFilter (org.onebusaway.users.model.properties.RouteFilter)11 Test (org.junit.Test)7 User (org.onebusaway.users.model.User)4 UserPropertiesV1 (org.onebusaway.users.model.UserPropertiesV1)4 Bookmark (org.onebusaway.users.model.properties.Bookmark)4 UserPropertiesV2 (org.onebusaway.users.model.properties.UserPropertiesV2)4 UserPropertiesV3 (org.onebusaway.users.model.properties.UserPropertiesV3)2 BookmarkWithStopsBean (org.onebusaway.presentation.model.BookmarkWithStopsBean)1 StopBean (org.onebusaway.transit_data.model.StopBean)1 BookmarkBean (org.onebusaway.users.client.model.BookmarkBean)1 UserBean (org.onebusaway.users.client.model.UserBean)1