org.jenkinsci.plugins.fstrigger.triggers
Class FileNameTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
          extended by org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>

public class FileNameTrigger
extends AbstractTrigger

Author:
Gregory Boissinot

Nested Class Summary
static class FileNameTrigger.FileNameTriggerDescriptor
           
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
AbstractTrigger.Runner
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
FileNameTrigger(String cronTabSpec)
          A constructor with only the GUI cronTabSpec parameter The instance is build by the JSON binding with the newInstance in FileNameTrigger.FileNameTriggerDescriptor
 
Method Summary
 boolean checkIfModified(FSTriggerLog log)
          Checks if the new folder Content has been modified The date time and the content file are used.
 String getCause()
           
 FSTriggerContentFileType[] getContentFileTypes()
           
 FileNameTrigger.FileNameTriggerDescriptor getDescriptor()
           
 String getFileName()
           
 String getFolderPath()
          Getters and setters
 Collection<? extends hudson.model.Action> getProjectActions()
           
 String getStrategy()
           
 boolean isInspectingContentFile()
           
 boolean isNoCheckedLastModifiedDate()
           
 boolean isUsingREGEX()
           
 void run()
           
 void setContentFileTypes(FSTriggerContentFileType[] contentFileTypes)
           
 void setFileName(String fileName)
           
 void setFolderPath(String folderPath)
           
 void setInspectingContentFile(boolean inspectingContentFile)
           
 void setNoCheckedLastModifiedDate(boolean noCheckedLastModifiedDate)
           
 void setStrategy(String strategy)
           
 void setUsingREGEX(boolean usingREGEX)
           
 void start(hudson.model.BuildableItem project, boolean newInstance)
           
 
Methods inherited from class org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
getLogFile
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getSpec, init, readResolve, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameTrigger

public FileNameTrigger(String cronTabSpec)
                throws antlr.ANTLRException
A constructor with only the GUI cronTabSpec parameter The instance is build by the JSON binding with the newInstance in FileNameTrigger.FileNameTriggerDescriptor

Throws:
antlr.ANTLRException
Method Detail

getFolderPath

public String getFolderPath()
Getters and setters


getFileName

public String getFileName()

isUsingREGEX

public boolean isUsingREGEX()

getStrategy

public String getStrategy()

isInspectingContentFile

public boolean isInspectingContentFile()

getContentFileTypes

public FSTriggerContentFileType[] getContentFileTypes()

isNoCheckedLastModifiedDate

public boolean isNoCheckedLastModifiedDate()

setFolderPath

public void setFolderPath(String folderPath)

setFileName

public void setFileName(String fileName)

setUsingREGEX

public void setUsingREGEX(boolean usingREGEX)

setStrategy

public void setStrategy(String strategy)

setInspectingContentFile

public void setInspectingContentFile(boolean inspectingContentFile)

setContentFileTypes

public void setContentFileTypes(FSTriggerContentFileType[] contentFileTypes)

setNoCheckedLastModifiedDate

public void setNoCheckedLastModifiedDate(boolean noCheckedLastModifiedDate)

start

public void start(hudson.model.BuildableItem project,
                  boolean newInstance)
Overrides:
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>

run

public void run()
Overrides:
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getCause

public String getCause()
Specified by:
getCause in class AbstractTrigger

checkIfModified

public boolean checkIfModified(FSTriggerLog log)
                        throws FSTriggerException
Description copied from class: AbstractTrigger
Checks if the new folder Content has been modified The date time and the content file are used.

Specified by:
checkIfModified in class AbstractTrigger
Returns:
true if the new folder content has been modifier
Throws:
FSTriggerException

getProjectActions

public Collection<? extends hudson.model.Action> getProjectActions()
Overrides:
getProjectActions in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getDescriptor

public FileNameTrigger.FileNameTriggerDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>
Overrides:
getDescriptor in class hudson.triggers.Trigger<hudson.model.BuildableItem>


Copyright © 2004-2011. All Rights Reserved.