コード例 #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() + "");
  }
コード例 #2
0
ファイル: Iteration.java プロジェクト: tqvarnst/socialpm
 @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;
 }
コード例 #3
0
ファイル: Iteration.java プロジェクト: tqvarnst/socialpm
 @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;
 }
コード例 #4
0
ファイル: Iteration.java プロジェクト: tqvarnst/socialpm
  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;
  }