hudson.model
Class PermalinkProjectAction.Permalink

java.lang.Object
  extended by hudson.model.PermalinkProjectAction.Permalink
Direct Known Subclasses:
PeepholePermalink
Enclosing interface:
PermalinkProjectAction

public abstract static class PermalinkProjectAction.Permalink
extends Object

Permalink as a strategy pattern.


Field Summary
static List<PermalinkProjectAction.Permalink> BUILTIN
          List of PermalinkProjectAction.Permalinks that are built into Jenkins.
static PermalinkProjectAction.Permalink LAST_BUILD
           
static PermalinkProjectAction.Permalink LAST_FAILED_BUILD
           
static PermalinkProjectAction.Permalink LAST_STABLE_BUILD
           
static PermalinkProjectAction.Permalink LAST_SUCCESSFUL_BUILD
           
static PermalinkProjectAction.Permalink LAST_UNSTABLE_BUILD
           
static PermalinkProjectAction.Permalink LAST_UNSUCCESSFUL_BUILD
           
 
Constructor Summary
PermalinkProjectAction.Permalink()
           
 
Method Summary
abstract  String getDisplayName()
          String to be displayed in the UI, such as "Last successful build".
abstract  String getId()
          ID that uniquely identifies this permalink.
abstract  Run<?,?> resolve(Job<?,?> job)
          Resolves the permalink to a build.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILTIN

public static final List<PermalinkProjectAction.Permalink> BUILTIN
List of PermalinkProjectAction.Permalinks that are built into Jenkins.


LAST_BUILD

public static final PermalinkProjectAction.Permalink LAST_BUILD

LAST_STABLE_BUILD

public static final PermalinkProjectAction.Permalink LAST_STABLE_BUILD

LAST_SUCCESSFUL_BUILD

public static final PermalinkProjectAction.Permalink LAST_SUCCESSFUL_BUILD

LAST_FAILED_BUILD

public static final PermalinkProjectAction.Permalink LAST_FAILED_BUILD

LAST_UNSTABLE_BUILD

public static final PermalinkProjectAction.Permalink LAST_UNSTABLE_BUILD

LAST_UNSUCCESSFUL_BUILD

public static final PermalinkProjectAction.Permalink LAST_UNSUCCESSFUL_BUILD
Constructor Detail

PermalinkProjectAction.Permalink

public PermalinkProjectAction.Permalink()
Method Detail

getDisplayName

public abstract String getDisplayName()
String to be displayed in the UI, such as "Last successful build". The convention is to upper case the first letter.


getId

public abstract String getId()
ID that uniquely identifies this permalink.

The is also used as an URL token to represent the permalink. This becomes the part of the permanent URL.

The expected format is the camel case, such as "lastSuccessfulBuild".


resolve

public abstract Run<?,?> resolve(Job<?,?> job)
Resolves the permalink to a build.

Returns:
null if the target of the permalink doesn't exist.


Copyright © 2004-2013. All Rights Reserved.