hudson.plugins.promoted_builds
Class PromotionConditionDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<PromotionCondition>
      extended by hudson.plugins.promoted_builds.PromotionConditionDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Direct Known Subclasses:
DownstreamPassCondition.DescriptorImpl, ManualCondition.DescriptorImpl

public abstract class PromotionConditionDescriptor
extends hudson.model.Descriptor<PromotionCondition>

Descriptor for PromotionCondition.

Author:
Kohsuke Kawaguchi
See Also:
PromotionCondition.all(), PromotionCondition.getApplicableTriggers(AbstractProject)

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
protected PromotionConditionDescriptor()
           
protected PromotionConditionDescriptor(java.lang.Class<? extends PromotionCondition> clazz)
           
 
Method Summary
abstract  boolean isApplicable(hudson.model.AbstractProject<?,?> item)
          Returns true if this condition is applicable to the given project.
 
Methods inherited from class hudson.model.Descriptor
configure, configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getDisplayName, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, newInstance, newInstance, 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

PromotionConditionDescriptor

protected PromotionConditionDescriptor(java.lang.Class<? extends PromotionCondition> clazz)

PromotionConditionDescriptor

protected PromotionConditionDescriptor()
Method Detail

isApplicable

public abstract boolean isApplicable(hudson.model.AbstractProject<?,?> item)
Returns true if this condition is applicable to the given project.

Returns:
true to allow user to configure this promotion condition for the given project.


Copyright © 2009. All Rights Reserved.