public void setProjects() { if (currentUser != null) { cnt++; GetSubscribedProjectListServiceAsync service = GetSubscribedProjectListService.Util.getInstance(); service.getSubscribedProjectList(currentUser.getUserId(), projectListCallback); } }
public void onSuccess(ArrayList<ProjectItem> items) { ProjectItems projectItems = new ProjectItems(); projectItems.setItems(items); currentUser.setProjectItems(projectItems); userCtx.setCurrentUser(currentUser); GetPreferredProjectServiceAsync service = GetPreferredProjectService.Util.getInstance(); service.getPreferredProject(currentUser.getUserId(), preferredProjectCallback); }