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

public class BadgeAction extends Object implements 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 Details

    • BadgeAction

      public BadgeAction(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
      Constructor.
      Parameters:
      event - the event to show.
    • BadgeAction

      public BadgeAction()
      Default Constructor.
  • Method Details

    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getEvent

      public com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent getEvent()
      The event to show.
      Returns:
      the event.
    • setEvent

      public void setEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.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.
    • getTooltip

      public String getTooltip()
      Gets the tooltip text for the BadgeAction.
      Returns:
      the tooltip text.