Class BadgeAction
- 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 Summary
Constructors Constructor Description BadgeAction()
Default Constructor.BadgeAction(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
com.sonymobile.tools.gerrit.gerritevents.dto.events.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(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
The event to show.
-
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in 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
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.
-
-