org.figure8.join.view
Class VersionedResourceTrackingView

java.lang.Object
  extended by org.figure8.join.view.VersionedResourceTrackingView
All Implemented Interfaces:
java.io.Serializable

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

This a JavaBean encasulating a VersionedResource domain model object and its information on resource updates done during a tracking period. Instance of VersionedResourceTrackingView class are intended to be stored within an Http layer context.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
protected  java.util.Date endDate
          The end date of the tracking period for VersionedResource changes
protected  VersionedResource resource
          The encapsulated versioned resource domain object
protected  java.util.Date startDate
          The start date of the tracking period for VersionedResource changes
 
Constructor Summary
VersionedResourceTrackingView(VersionedResource resource, java.util.Date startDate, java.util.Date endDate)
          Creates a new instance of VersionedResourceTrackingView
 
Method Summary
 void addVersionUpdate(VersionedResourceUpdate update)
          Add a VersionedResourceUpdate that was done during the tracking period
 java.util.Date getEndDate()
           
 VersionedResource getResource()
           
 java.util.Date getStartDate()
           
 java.util.List getVersionUpdates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startDate

protected java.util.Date startDate
The start date of the tracking period for VersionedResource changes


endDate

protected java.util.Date endDate
The end date of the tracking period for VersionedResource changes


resource

protected VersionedResource resource
The encapsulated versioned resource domain object

Constructor Detail

VersionedResourceTrackingView

public VersionedResourceTrackingView(VersionedResource resource,
                                     java.util.Date startDate,
                                     java.util.Date endDate)
Creates a new instance of VersionedResourceTrackingView

Parameters:
resource - The encapsulated versioned resource domain object
startDate - The start date of the tracking period
endDate - The end date of the tracking period
Method Detail

getStartDate

public java.util.Date getStartDate()
Returns:
The start date of the tracking period for VersionedResource changes

getEndDate

public java.util.Date getEndDate()
Returns:
The end date of the tracking period for VersionedResource changes

getResource

public VersionedResource getResource()
Returns:
The encapsulated versioned resource domain object

addVersionUpdate

public void addVersionUpdate(VersionedResourceUpdate update)
Add a VersionedResourceUpdate that was done during the tracking period

Parameters:
update - The versioned resource update to add

getVersionUpdates

public java.util.List getVersionUpdates()
Returns:
A list of org.figure8.join.businessobjects.environment.VersionedResourceUpdates


Copyright © 2005-2008 Join. All Rights Reserved.