org.figure8.join.businessobjects.environment
Class VersionedResource

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.AbstractResource
          extended by org.figure8.join.businessobjects.environment.VersionedResource
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Resource
Direct Known Subclasses:
EIS

public class VersionedResource
extends AbstractResource

A Resource implementation that is updatable an in consequence may have different versions.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux
See Also:
ResourceVersion, Serialized Form

Field Summary
static java.lang.String CATEGORY
          The category information of the VersionedResource implementation of AbstractResource
 
Constructor Summary
VersionedResource()
          Creates a new VersionedResource instance
VersionedResource(java.lang.String name, VersionedResourceType type)
          Creates a new VersionedResource with mandatory attributes.
 
Method Summary
 VersionedResourceUpdate getActiveVersionUpdate()
          Get the most recent active VersionedResourceUpdate for this resource
 java.util.List getActiveVersionUpdates()
           
 java.lang.String getCategory()
          Return the category information on this resource.
 void setActiveVersionUpdate(VersionedResourceUpdate update)
           
 void setActiveVersionUpdates(java.util.List mappings)
           
 
Methods inherited from class org.figure8.join.businessobjects.environment.AbstractResource
getCurrentMappings, getLogDirPath, getLogFilePath, getMachine, getName, getPhysicalEnvironments, getResourceType, setCurrentMappings, setLogDirPath, setLogFilePath, setMachine, setName, setResourceType
 
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
 

Field Detail

CATEGORY

public static final java.lang.String CATEGORY
The category information of the VersionedResource implementation of AbstractResource

See Also:
Constant Field Values
Constructor Detail

VersionedResource

public VersionedResource()
Creates a new VersionedResource instance


VersionedResource

public VersionedResource(java.lang.String name,
                         VersionedResourceType type)
Creates a new VersionedResource with mandatory attributes.

Parameters:
name - The name of this new Resource
type - The type of this new versioned resource.
Method Detail

getActiveVersionUpdates

public java.util.List getActiveVersionUpdates()
Returns:
A set of VersionedResourceUpdates that are active now

setActiveVersionUpdates

public void setActiveVersionUpdates(java.util.List mappings)
Parameters:
mappings - The set of EnvironmentMappings that are active now

getActiveVersionUpdate

public VersionedResourceUpdate getActiveVersionUpdate()
Get the most recent active VersionedResourceUpdate for this resource

Returns:
The last update that has been created

setActiveVersionUpdate

public void setActiveVersionUpdate(VersionedResourceUpdate update)
Parameters:
update - The VersionResourceUpdate to set as the active one

getCategory

public java.lang.String getCategory()
Return the category information on this resource.

Specified by:
getCategory in class AbstractResource
Returns:
The category information as character string


Copyright © 2005-2008 Join. All Rights Reserved.