org.figure8.join.view
Class PhysicalEnvironmentTrackingView

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

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

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

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

Field Summary
protected  java.util.Date endDate
          The end date of the tracking period for PhysicalEnvironment changes
protected  PhysicalEnvironment environment
          The encapsulated environment domain object
protected  java.util.Map resourceMappings
          A map of mappings done during tracking period, organized on resource type
protected  java.util.Date startDate
          The start date of the tracking period for PhysicalEnvironment changes
protected  java.util.Map versionedResourceMappings
          A map of mappings for versioned resources done during transking period
 
Constructor Summary
PhysicalEnvironmentTrackingView(PhysicalEnvironment environment, java.util.Date startDate, java.util.Date endDate)
          Creates a new instance of PhysicalEnvironmentTrackingView
 
Method Summary
 void addResourceMapping(ResourceMapping mapping)
          Add a ResourceMapping to existing mappings for this tracking view
 void addVersionedResourceMapping(VersionedResourceMapping mapping)
          Add a VersionedResourceMapping to existing mappings for this tracking view
 java.util.Date getEndDate()
           
 PhysicalEnvironment getEnvironment()
           
 java.util.Map getResourceMappings()
          Get the resource mappings done during the tracking period
 java.util.Date getStartDate()
           
 java.util.Map getVersionedResourceMappings()
          Get the versioned resource mappings done during the tracking period
 
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 PhysicalEnvironment changes


endDate

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


environment

protected PhysicalEnvironment environment
The encapsulated environment domain object


resourceMappings

protected java.util.Map resourceMappings
A map of mappings done during tracking period, organized on resource type


versionedResourceMappings

protected java.util.Map versionedResourceMappings
A map of mappings for versioned resources done during transking period

Constructor Detail

PhysicalEnvironmentTrackingView

public PhysicalEnvironmentTrackingView(PhysicalEnvironment environment,
                                       java.util.Date startDate,
                                       java.util.Date endDate)
Creates a new instance of PhysicalEnvironmentTrackingView

Parameters:
environment - The encapsulated environment 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 PhysicalEnvironment changes

getEndDate

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

getEnvironment

public PhysicalEnvironment getEnvironment()
Returns:
The encapsulated environment domain object

getResourceMappings

public java.util.Map getResourceMappings()
Get the resource mappings done during the tracking period

Returns:
A map where keys are the resource type and values are list of mappings for the type

addResourceMapping

public void addResourceMapping(ResourceMapping mapping)
Add a ResourceMapping to existing mappings for this tracking view

Parameters:
mapping - The resource mapping to add

getVersionedResourceMappings

public java.util.Map getVersionedResourceMappings()
Get the versioned resource mappings done during the tracking period

Returns:
A map where keys are the versioned resource type and values are list of mappings

addVersionedResourceMapping

public void addVersionedResourceMapping(VersionedResourceMapping mapping)
Add a VersionedResourceMapping to existing mappings for this tracking view

Parameters:
mapping - The versioned mapping to add


Copyright © 2005-2008 Join. All Rights Reserved.