org.figure8.join.businessobjects.environment
Class VersionedResourceUpdate

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.VersionedResourceUpdate
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class VersionedResourceUpdate
extends EntityObject

This is an entity representing an update of a physical infrastructure resource (of VersionedResource category) with a resource version.
VersionedResourceUpdates are by definition volatile : they have a startDate and an endDate when update ends to be valid. Active updates are those having endDate not set.

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

Constructor Summary
VersionedResourceUpdate()
          Creates a new instance of VersionedResourceUpdate.
VersionedResourceUpdate(ResourceVersion version, VersionedResource resource)
          Creates a new instance of VersionedResourceUpdate.
 
Method Summary
 void close()
          Close this update (ie. make it inactive)
 java.util.Date getEndDate()
           
 VersionedResource getResource()
           
 java.util.Date getStartDate()
           
 ResourceVersion getVersion()
           
 boolean isActive()
           
 void setEndDate(java.util.Date endDate)
           
 void setResource(VersionedResource resource)
           
 void setStartDate(java.util.Date startDate)
           
 void setVersion(ResourceVersion version)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionedResourceUpdate

public VersionedResourceUpdate()
Creates a new instance of VersionedResourceUpdate.


VersionedResourceUpdate

public VersionedResourceUpdate(ResourceVersion version,
                               VersionedResource resource)
Creates a new instance of VersionedResourceUpdate.

Parameters:
version - The version resource has been updated with
resource - The versioned resource this update is for
Method Detail

getStartDate

public java.util.Date getStartDate()
Returns:
The date this update has started being active

setStartDate

public void setStartDate(java.util.Date startDate)
Parameters:
startDate - The date this update has started being active

getEndDate

public java.util.Date getEndDate()
Returns:
The date this update has stopped being active

setEndDate

public void setEndDate(java.util.Date endDate)
Parameters:
endDate - The date this update has stopped being active

getVersion

public ResourceVersion getVersion()
Returns:
The version resource has been updated with

setVersion

public void setVersion(ResourceVersion version)
Parameters:
version - The version resource has been updated with

getResource

public VersionedResource getResource()
Returns:
The resource this update is for

setResource

public void setResource(VersionedResource resource)
Parameters:
resource - The resource this update is for

isActive

public boolean isActive()
Returns:
Flag telling if this update is currently active

close

public void close()
Close this update (ie. make it inactive)



Copyright © 2005-2008 Join. All Rights Reserved.