Class RepeatedBuildClaimMessage


  • public class RepeatedBuildClaimMessage
    extends Object
    • Field Detail

      • LINE_SEPARATOR

        protected static final String LINE_SEPARATOR
    • Constructor Detail

      • RepeatedBuildClaimMessage

        public RepeatedBuildClaimMessage​(String item,
                                         String url,
                                         String claimedByUser)
    • Method Detail

      • mustBeSent

        protected boolean mustBeSent()
      • getSubject

        protected String getSubject()
      • getSpecificMessage

        protected String getSpecificMessage()
      • getMessage

        protected String getMessage()
      • getToRecipients

        protected Iterable<? extends String> getToRecipients()
      • getItem

        protected String getItem()
        Gets the item.
        Returns:
        the item
      • getClaimedByUser

        protected String getClaimedByUser()
        Gets the claiming user.
        Returns:
        the claiming user
      • send

        public void send()
                  throws jakarta.mail.MessagingException,
                         IOException
        Creates and send the communication.
        Throws:
        jakarta.mail.MessagingException - if there has been some problem with sending the email
        IOException - if there has been some problem with the mail content
      • buildJenkinsUrl

        @NonNull
        protected String buildJenkinsUrl()
        Get the jenkins url for the item.
        Returns:
        The jenkins url for the item