Class 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 Detail

      • 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 Detail

      • 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.