Class BadgeAction
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.BadgeAction
- All Implemented Interfaces:
Action,BuildBadgeAction,ModelObject
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
ConstructorsConstructorDescriptionDefault Constructor.BadgeAction(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEventgetEvent()The event to show.getText()Gets the display text for the BadgeAction.Gets the tooltip text for the BadgeAction.getUrl()Gets the URL for the change.voidsetEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) The event to show.
-
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
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
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
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
Gets the display text for the BadgeAction.- Returns:
- the display text.
-
getTooltip
Gets the tooltip text for the BadgeAction.- Returns:
- the tooltip text.
-