Package ch.bsgroup.scrumit.pojo

Examples of ch.bsgroup.scrumit.pojo.SerializableUserStory


  public @ResponseBody List<SerializableUserStory> getAllUserstoriesOfSprint(@PathVariable int sprintid) {
    Set<UserStory> userstories = this.userStoryService.getAllUserStorysBySprintId(sprintid);
    List<SerializableUserStory> serializedUserstories = new ArrayList<SerializableUserStory>();
    for (Iterator<UserStory> iterator = userstories.iterator(); iterator.hasNext();) {
      UserStory u = iterator.next();
      SerializableUserStory su = new SerializableUserStory(u.getId(), u.getName());
      serializedUserstories.add(su);
    }
    return serializedUserstories;
  }
View Full Code Here


  public @ResponseBody SerializableUserStory getUserstory(@PathVariable int userstoryid) {
    UserStory u = this.userStoryService.findUserStoryById(userstoryid);
    if (u == null) {
      throw new ResourceNotFoundException(userstoryid);
    }
    return new SerializableUserStory(u.getId(), u.getName(), u.getPriority(), u.getCreationDate(),
        u.getEstimatedSize(), u.getAcceptanceTest());
  }
View Full Code Here

      response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
      return validationMessagesUserstory(failures);
    } else {
      this.userStoryService.updateUserStory(us);
      return Collections.singletonMap("userstory",
          new SerializableUserStory(
            us.getId(),
            us.getName(),
            us.getPriority(),
            us.getCreationDate(),
            us.getEstimatedSize(),
View Full Code Here

      userstories.add(newUserStory);
      sprint.setUserStories(userstories);
      this.sprintService.updateSprint(sprint);

      return Collections.singletonMap("userstory",
          new SerializableUserStory(
              newUserStory.getId(),
              newUserStory.getName(),
              newUserStory.getPriority(),
              newUserStory.getCreationDate(),
              newUserStory.getEstimatedSize(),
View Full Code Here

  public @ResponseBody List<SerializableUserStory> getAllUserstoriesOfSprint(@PathVariable Integer sprintid) {
    Set<UserStory> userstories = this.userStoryService.getAllUserStorysBySprintId(sprintid);
    List<SerializableUserStory> serializedUserstories = new ArrayList<SerializableUserStory>();
    for (Iterator<UserStory> iterator = userstories.iterator(); iterator.hasNext();) {
      UserStory u = iterator.next();
      SerializableUserStory su = new SerializableUserStory(u.getId(), u.getName(), u.getxCoord(), u.getyCoord());
      serializedUserstories.add(su);
    }
    return serializedUserstories;
  }
View Full Code Here

TOP

Related Classes of ch.bsgroup.scrumit.pojo.SerializableUserStory

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.