net.sourceforge.cruisecontrol.sourcecontrols
Class FakeUserSourceControl

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.FakeUserSourceControl
All Implemented Interfaces:
java.io.Serializable, SourceControl
Direct Known Subclasses:
AlwaysBuild, FileSystem, HttpFile, TimeBuild

public abstract class FakeUserSourceControl
extends java.lang.Object
implements SourceControl

Abstract superclass for SourceControls that use a static user for all Modifications reported.

Author:
Joris Kuipers
See Also:
Serialized Form

Constructor Summary
FakeUserSourceControl()
           
 
Method Summary
abstract  java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          When implementing be sure to invoke properties.modficationFound() if returning modifications.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
protected  SourceControlProperties getSourceControlProperties()
           
 java.lang.String getUserName()
           
 void setProperty(java.lang.String propertyName)
           
 void setUserName(java.lang.String userName)
           
abstract  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeUserSourceControl

public FakeUserSourceControl()
Method Detail

getSourceControlProperties

protected SourceControlProperties getSourceControlProperties()

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

setProperty

public void setProperty(java.lang.String propertyName)

getProperties

public java.util.Map getProperties()
Description copied from interface: SourceControl
Any properties that have been set in this sourcecontrol. Will be passed onto the Builder, which may then pass the properties to the underlying build implementation. For example, the Ant builder will define these properties so that the underlying Ant script can use them.

Specified by:
getProperties in interface SourceControl

getModifications

public abstract java.util.List getModifications(java.util.Date lastBuild,
                                                java.util.Date now)
When implementing be sure to invoke properties.modficationFound() if returning modifications.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild -
now -
Returns:
List of Modification objects
See Also:
SourceControl.getModifications(java.util.Date, java.util.Date)

validate

public abstract void validate()
                       throws CruiseControlException
Specified by:
validate in interface SourceControl
Throws:
CruiseControlException
See Also:
SourceControl.validate()