org.figure8.join.businessobjects.environment
Class VersionedResourceUpdate
java.lang.Object
org.figure8.join.core.EntityObject
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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 withresource
- The versioned resource this update is for
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.