Class PluginGerritEvent

    • Constructor Detail

      • PluginGerritEvent

        public PluginGerritEvent()
    • Method Detail

      • getCorrespondingEventClass

        public abstract Class getCorrespondingEventClass()
        Getter for the corresponding gerrit event class.
        Returns:
        the gerrit event class.
      • shouldTriggerOn

        public boolean shouldTriggerOn​(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
        Return if it should trigger build for the specified event. Default implementation only check if the specified event is an instance of the corresponding event class. Sub class can override to add additional validation.
        Parameters:
        event - The event to validate.
        Returns:
        true if it should trigger on the specified event, otherwise false.