Ejemplo n.º 1
0
  @Override
  public void setProject(Project project) {
    this.profileLink.setProfile(project.getOwner());
    this.projectLink.setProject(project);
    this.iterationList.setProject(project);
    this.iterationList.setIterations(project.getIterations());

    this.storyList.setPresenter(presenter);
    this.storyList.setProject(project);
    this.storyList.setStories(project.getStories());

    pulse.setInnerText(project.getOpenStories().size() + "");
  }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = (prime * result) + number;
   result = (prime * result) + ((project == null) ? 0 : project.hashCode());
   return result;
 }
Ejemplo n.º 3
0
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Iteration other = (Iteration) obj;
   if (number != other.number) return false;
   if (project == null) {
     if (other.project != null) return false;
   } else if (!project.equals(other.project)) return false;
   return true;
 }
Ejemplo n.º 4
0
  public boolean isInProgress() {
    boolean result = false;

    if (isDefault()) {
      boolean defaultIsInProgress = true;
      Set<Iteration> iterations = project.getAvailableIterations();
      for (Iteration iteration : iterations) {
        if (!iteration.isDefault() && iteration.isInProgress()) {
          defaultIsInProgress = false;
        }
      }
      result = defaultIsInProgress;
    } else if ((committedOn != null) && (closedOn == null)) {
      result = true;
    }

    return result;
  }