com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTrigger.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.triggers.Trigger<?>>
      extended by hudson.triggers.TriggerDescriptor
          extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
GerritTrigger

@Extension
public static final class GerritTrigger.DescriptorImpl
extends hudson.triggers.TriggerDescriptor

The Descriptor for the Trigger.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
GerritTrigger.DescriptorImpl()
          Default Constructor.
 
Method Summary
 hudson.util.FormValidation doEmptyOrIntegerCheck(java.lang.String value)
          Checks that the provided parameter is an empty string or an integer.
 CompareType[] getCompareTypes()
          A list of CompareTypes for the UI.
 java.lang.String getDisplayName()
           
 java.lang.String getHelpFile()
           
 boolean isApplicable(hudson.model.Item item)
           
 boolean isFileTriggerEnabled()
          Convenience method for the jelly file, accessing the instance proved to be hard.
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritTrigger.DescriptorImpl

public GerritTrigger.DescriptorImpl()
Default Constructor.

Method Detail

doEmptyOrIntegerCheck

public hudson.util.FormValidation doEmptyOrIntegerCheck(@QueryParameter(value="value")
                                                        java.lang.String value)
Checks that the provided parameter is an empty string or an integer.

Parameters:
value - the value.
Returns:
FormValidation.validatePositiveInteger(String)

isApplicable

public boolean isApplicable(hudson.model.Item item)
Specified by:
isApplicable in class hudson.triggers.TriggerDescriptor

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.triggers.Trigger<?>>

getHelpFile

public java.lang.String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.triggers.Trigger<?>>

getCompareTypes

public CompareType[] getCompareTypes()
A list of CompareTypes for the UI.

Returns:
A list of CompareTypes

isFileTriggerEnabled

public boolean isFileTriggerEnabled()
Convenience method for the jelly file, accessing the instance proved to be hard.

Returns:
true if file triggering is enabled in the gerrit version.


Copyright © 2004-2012. All Rights Reserved.