org.hackystat.projectbrowser.page.dailyprojectdata.devtime
Class DevTimeDataModel

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

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

The data model for DevTime DPD display. This data model accommodates multiple Projects. For each project, the data model indicates the members in the Project along with how much DevTime they worked on the associated project for the day.

Author:
Philip Johnson
See Also:
Serialized Form

Constructor Summary
DevTimeDataModel()
          The default DevTimeDataModel, which contains no commit information.
 
Method Summary
 void clear()
          Sets this model to its empty state.
 DevTimeData getDevTimeData(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
          Return the DevTimeData instance associated with the specified project.
 java.util.List<DevTimeData> getDevTimeDataList()
          Returns the list of DevTimeData instances, needed for markup.
 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

DevTimeDataModel

public DevTimeDataModel()
The default DevTimeDataModel, 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.

getDevTimeData

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

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

getDevTimeDataList

public java.util.List<DevTimeData> getDevTimeDataList()
Returns the list of DevTimeData instances, needed for markup.

Returns:
The list of DevTimeData instances.