com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class BadgeAction

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.BadgeAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject

public class BadgeAction
extends java.lang.Object
implements hudson.model.BuildBadgeAction

Adds an icon to the build-schedule telling users that the build was triggered by Gerrit.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Constructor Summary
BadgeAction()
          Default Constructor.
BadgeAction(PatchsetCreated event)
          Constructor.
 
Method Summary
 java.lang.String getDisplayName()
           
 PatchsetCreated getEvent()
          The event to show.
 java.lang.String getIconFileName()
           
 java.lang.String getUrl()
          Gets the URL for the change.
 java.lang.String getUrlName()
           
 void setEvent(PatchsetCreated event)
          The event to show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BadgeAction

public BadgeAction(PatchsetCreated event)
Constructor.

Parameters:
event - the event to show.

BadgeAction

public BadgeAction()
Default Constructor.

Method Detail

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getEvent

public PatchsetCreated getEvent()
The event to show.

Returns:
the event.

setEvent

public void setEvent(PatchsetCreated event)
The event to show.

Parameters:
event - the event.

getUrl

public java.lang.String getUrl()
Gets the URL for the change.

Returns:
the URL to the change.


Copyright © 2004-2012. All Rights Reserved.