Package org.onebusaway.users.client.model

Examples of org.onebusaway.users.client.model.UserBean


  private BookmarkBean getBookmark() {
    if (CollectionsLibrary.isEmpty(_ids))
      return null;
    int id = Integer.parseInt(_ids.get(0));
    UserBean user = getCurrentUser();
    for (BookmarkBean bookmark : user.getBookmarks()) {
      if (bookmark.getId() == id)
        return bookmark;
    }
    return null;
  }
View Full Code Here


  @Actions( {
      @Action(value = "/where/standard/bookmarks"),
      @Action(value = "/where/iphone/bookmarks"),
      @Action(value = "/where/text/bookmarks")})
  public String execute() {
    UserBean user = getCurrentUser();
    List<BookmarkBean> bookmarks = user.getBookmarks();
    _bookmarks = _bookmarkPresentationService.getBookmarksWithStops(bookmarks);
    return SUCCESS;
  }
View Full Code Here

      @Action(value = "/user/index"),
      @Action(value = "/where/iphone/user/index"),
      @Action(value = "/where/text/user/index")})
  public String execute() {

    UserBean user = getCurrentUser();

    _model.setUser(user);

    List<UserIndexBean> phoneIndices = new ArrayList<UserIndexBean>();
    for (UserIndexBean index : user.getIndices()) {
      if (index.getType().equals(UserIndexTypes.PHONE_NUMBER))
        phoneIndices.add(index);
    }

    Collections.sort(phoneIndices);
View Full Code Here

        final SetInitialSearchLocationPopupPanel popup = new SetInitialSearchLocationPopupPanel();
        popup.addCloseHandler(new CloseHandler<PopupPanel>() {

          @Override
          public void onClose(CloseEvent<PopupPanel> arg0) {
            UserBean updatedUser = popup.getUser();
            if (updatedUser != null)
              onSuccess(updatedUser, false);
          }
        });
View Full Code Here

TOP

Related Classes of org.onebusaway.users.client.model.UserBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.