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 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(GerritTriggeredEvent event)
          Constructor.
 
Method Summary
 String getDisplayName()
           
 GerritTriggeredEvent getEvent()
          The event to show.
 String getIconFileName()
           
 String getText()
          Gets the display text for the BadgeAction.
 String getUrl()
          Gets the URL for the change.
 String getUrlName()
           
 void setEvent(GerritTriggeredEvent 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(GerritTriggeredEvent event)
Constructor.

Parameters:
event - the event to show.

BadgeAction

public BadgeAction()
Default Constructor.

Method Detail

getIconFileName

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

getDisplayName

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

getUrlName

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

getEvent

public GerritTriggeredEvent getEvent()
The event to show.

Returns:
the event.

setEvent

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

Parameters:
event - the event.

getUrl

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

Returns:
the URL to the change or the empty string if no server matches the event provider's name.

getText

public String getText()
Gets the display text for the BadgeAction.

Returns:
the display text.


Copyright © 2004-2013. All Rights Reserved.