org.figure8.join.businessobjects.environment
Class LogicalEnvironment

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

public class LogicalEnvironment
extends EntityObject

This is an entity representing a logical (or business/functional) view of an environment. A LogicalEnvironment is a place dedicated to the realization of a particular step of the integration process for a specific release.
Such an environment will be bind/unbind by integration team members to a pool of managed physical environment (this one is a concrete one, composed of resources, gateway, machines, etc ...).

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

Constructor Summary
LogicalEnvironment()
          Creates a new LogicalEnvironment
LogicalEnvironment(java.lang.String key, java.lang.String label, java.lang.String description, java.lang.String managerId, Step step, Release release)
          Creates a new LogicalEnvironment with mandatory attribute
 
Method Summary
 boolean getActive()
           
 EnvironmentMapping getActiveEnvironmentMapping()
          Get the most recent active EnvironmentMapping for this environment
 java.util.List getActiveEnvironmentMappings()
           
 java.lang.String getDescription()
           
 java.lang.String getKey()
           
 java.lang.String getLabel()
           
 java.lang.String getManagerId()
           
 Release getRelease()
           
 Step getStep()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setActiveEnvironmentMapping(EnvironmentMapping mapping)
           
 void setActiveEnvironmentMappings(java.util.List mappings)
           
 void setDescription(java.lang.String description)
           
 void setKey(java.lang.String key)
           
 void setLabel(java.lang.String label)
           
 void setManagerId(java.lang.String managerId)
           
 void setRelease(Release release)
           
 void setStep(Step step)
           
 
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

LogicalEnvironment

public LogicalEnvironment()
Creates a new LogicalEnvironment


LogicalEnvironment

public LogicalEnvironment(java.lang.String key,
                          java.lang.String label,
                          java.lang.String description,
                          java.lang.String managerId,
                          Step step,
                          Release release)
Creates a new LogicalEnvironment with mandatory attribute

Parameters:
key - This environment unique key
label - This environment label
description - This environment description
managerId - The unique identifier environment manager
step - The integration cycle step this environment is dedicated to
release - The project release this environment is dedicated to
Method Detail

getKey

public java.lang.String getKey()
Returns:
This environment business key

setKey

public void setKey(java.lang.String key)
Parameters:
key - This environment business key (should be uique)

getLabel

public java.lang.String getLabel()
Returns:
This environment label

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - This environment label

getDescription

public java.lang.String getDescription()
Returns:
This environment description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - This environment description

getManagerId

public java.lang.String getManagerId()
Returns:
The identifier of user managing this environment

setManagerId

public void setManagerId(java.lang.String managerId)
Parameters:
managerId - The identifier of user managin this environment

isActive

public boolean isActive()
Returns:
Is this environment active ?

setActive

public void setActive(boolean active)
Parameters:
active - The active flag for this environment

getActive

public boolean getActive()
Returns:
Is this environment active ?

getStep

public Step getStep()
Returns:
The integration process step this environment is dedicated to

setStep

public void setStep(Step step)
Parameters:
step - The integration process step for this environment

getRelease

public Release getRelease()
Returns:
The project release this environment is dedicated to

setRelease

public void setRelease(Release release)
Parameters:
release - The project release this environment is dedicated to

getActiveEnvironmentMappings

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

setActiveEnvironmentMappings

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

getActiveEnvironmentMapping

public EnvironmentMapping getActiveEnvironmentMapping()
Get the most recent active EnvironmentMapping for this environment

Returns:
The last mapping that has been created

setActiveEnvironmentMapping

public void setActiveEnvironmentMapping(EnvironmentMapping mapping)
Parameters:
mapping - The EnvironmentMapping to use as current active mapping


Copyright © 2005-2008 Join. All Rights Reserved.