org.hackystat.projectbrowser.page.dailyprojectdata.issue
Class IssueDataModel

java.lang.Object
  extended by org.hackystat.projectbrowser.page.dailyprojectdata.issue.IssueDataModel
All Implemented Interfaces:
java.io.Serializable

public class IssueDataModel
extends java.lang.Object
implements java.io.Serializable

The data model for Issue DPD display. This data model accommodates multiple Projects. For each project, the data model indicates the members in the Project along with the issue information for the given day.

Author:
Philip Johnson
See Also:
Serialized Form

Constructor Summary
IssueDataModel()
          The default CommitDataModel, which contains no commit information.
 
Method Summary
 void clear()
          Sets this model to its empty state.
 java.util.Set<java.lang.String> getClosedIssueStatus()
           
 IssueDpdData getIssueData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
          Return the IssueData instance associated with the specified project.
 java.util.List<IssueDpdData> getIssueDataList()
          Returns the list of IssueData instances, needed for markup.
 java.util.Set<java.lang.String> getOpenIssueStatus()
           
 boolean isEmpty()
          Returns true if this data model contains no information.
 void update()
          Updates this data model to reflect the build information associated with the selected projects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueDataModel

public IssueDataModel()
The default CommitDataModel, which contains no commit information.

Method Detail

update

public void update()
Updates this data model to reflect the build information associated with the selected projects.


clear

public void clear()
Sets this model to its empty state.


isEmpty

public boolean isEmpty()
Returns true if this data model contains no information. Used to figure out if the associated panel should be visible.

Returns:
True if the data model is empty.

getIssueData

public IssueDpdData getIssueData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
Return the IssueData instance associated with the specified project. Creates and returns a new IssueData instance if one is not yet present.

Parameters:
project - The project.
Returns:
The IssueData instance for this project.

getIssueDataList

public java.util.List<IssueDpdData> getIssueDataList()
Returns the list of IssueData instances, needed for markup.

Returns:
The list of IssueData instances.

getOpenIssueStatus

public java.util.Set<java.lang.String> getOpenIssueStatus()
Returns:
the openIssueStatus

getClosedIssueStatus

public java.util.Set<java.lang.String> getClosedIssueStatus()
Returns:
the closedIssueStatus