net.sourceforge.cruisecontrol
Class ProjectConfig

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.ProjectConfig
All Implemented Interfaces:
ProjectInterface, java.io.Serializable

public class ProjectConfig
extends java.lang.Object
implements ProjectInterface

A plugin that represents the project node

Author:
Jerome Lacoste
See Also:
Serialized Form

Nested Class Summary
static class ProjectConfig.Bootstrappers
           
static class ProjectConfig.Listeners
           
static class ProjectConfig.Publishers
           
 
Constructor Summary
ProjectConfig()
           
 
Method Summary
 void add(CCDateFormat dateFormat)
           
 void add(LabelIncrementer labelIncrementer)
           
 void add(Log log)
           
 void add(ModificationSet modificationSet)
           
 void add(ProjectConfig.Bootstrappers bootstrappers)
           
 void add(ProjectConfig.Listeners listeners)
           
 void add(ProjectConfig.Publishers publishers)
           
 void add(Schedule schedule)
           
 void configureProject()
           
 boolean equals(java.lang.Object arg0)
           
 void execute()
           
 java.util.List getBootstrappers()
           
 java.lang.String getBuildStartTime()
           
 CCDateFormat getDateFormat()
           
 LabelIncrementer getLabelIncrementer()
           
 java.util.List getListeners()
           
 Log getLog()
           
 ModificationSet getModificationSet()
           
 java.lang.String getName()
           
 java.util.List getPublishers()
           
 Schedule getSchedule()
           
 void getStateFromOldProject(ProjectInterface oldProject)
           
 java.lang.String getStatus()
           
 int hashCode()
           
 boolean isForceOnly()
           
 boolean isRequiremodification()
           
 void register(javax.management.MBeanServer server)
           
 void setBuildAfterFailed(boolean buildAfterFailed)
           
 void setBuildQueue(BuildQueue buildQueue)
           
 void setForceOnly(boolean forceOnly)
           
 void setName(java.lang.String name)
           
 void setRequiremodification(boolean requiremodification)
           
 boolean shouldBuildAfterFailed()
           
 void start()
           
 void stop()
           
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectConfig

public ProjectConfig()
Method Detail

validate

public void validate()
              throws CruiseControlException
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Specified by:
validate in interface ProjectInterface
Throws:
CruiseControlException - if there was a configuration error.

setName

public void setName(java.lang.String name)

setBuildAfterFailed

public void setBuildAfterFailed(boolean buildAfterFailed)

add

public void add(CCDateFormat dateFormat)

add

public void add(ModificationSet modificationSet)

add

public void add(ProjectConfig.Bootstrappers bootstrappers)

add

public void add(ProjectConfig.Listeners listeners)

add

public void add(ProjectConfig.Publishers publishers)

add

public void add(Schedule schedule)

add

public void add(Log log)

add

public void add(LabelIncrementer labelIncrementer)

getDateFormat

public CCDateFormat getDateFormat()

shouldBuildAfterFailed

public boolean shouldBuildAfterFailed()

getLog

public Log getLog()

getBootstrappers

public java.util.List getBootstrappers()

getListeners

public java.util.List getListeners()

getPublishers

public java.util.List getPublishers()

getModificationSet

public ModificationSet getModificationSet()

getSchedule

public Schedule getSchedule()

getLabelIncrementer

public LabelIncrementer getLabelIncrementer()

getName

public java.lang.String getName()
Specified by:
getName in interface ProjectInterface

setForceOnly

public void setForceOnly(boolean forceOnly)
Parameters:
forceOnly - the forceOnly to set

isForceOnly

public boolean isForceOnly()
Returns:
the forceOnly

isRequiremodification

public boolean isRequiremodification()
Returns:
the requiremodification

setRequiremodification

public void setRequiremodification(boolean requiremodification)
Parameters:
requiremodification - the requiremodification to set

configureProject

public void configureProject()
                      throws CruiseControlException
Specified by:
configureProject in interface ProjectInterface
Throws:
CruiseControlException

equals

public boolean equals(java.lang.Object arg0)

hashCode

public int hashCode()

getStateFromOldProject

public void getStateFromOldProject(ProjectInterface oldProject)
                            throws CruiseControlException
Specified by:
getStateFromOldProject in interface ProjectInterface
Throws:
CruiseControlException

execute

public void execute()
Specified by:
execute in interface ProjectInterface

register

public void register(javax.management.MBeanServer server)
              throws javax.management.JMException
Specified by:
register in interface ProjectInterface
Throws:
javax.management.JMException

setBuildQueue

public void setBuildQueue(BuildQueue buildQueue)
Specified by:
setBuildQueue in interface ProjectInterface

start

public void start()
Specified by:
start in interface ProjectInterface

stop

public void stop()
Specified by:
stop in interface ProjectInterface

getStatus

public java.lang.String getStatus()

getBuildStartTime

public java.lang.String getBuildStartTime()