Class PluginCommentAddedContainsEvent

    • Constructor Detail

      • PluginCommentAddedContainsEvent

        public PluginCommentAddedContainsEvent()
        Empty constructor for serializer.
      • PluginCommentAddedContainsEvent

        @DataBoundConstructor
        public PluginCommentAddedContainsEvent​(String commentAddedCommentContains)
        Standard DataBoundConstructor.
        Parameters:
        commentAddedCommentContains - a string containg a regular expression.
    • Method Detail

      • getCommentAddedCommentContains

        public String getCommentAddedCommentContains()
        Get the regular expression to match against comment.
        Returns:
        a string containg a regex.
      • match

        public boolean match​(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
        Check if the comment added match configured regular expression.
        Parameters:
        event - a GerritTriggeredEvent.
        Returns:
        true or false.