Interface SubscriptionBuilder


public interface SubscriptionBuilder
The interface Subscription builder.
  • Method Details

    • setName

      SubscriptionBuilder setName(String name)
      Sets subscription name
      Parameters:
      name - the name
      Returns:
      the name
    • getName

      String getName()
      Gets subscription name.
      Returns:
      the name
    • setPQL

      Sets pql (Profields query language)
      Parameters:
      pql - the pql
      Returns:
      the pql
    • getPQL

      String getPQL()
      Gets pql (Profields query language)
      Returns:
      the pql
    • setCronExpBuilder

      SubscriptionBuilder setCronExpBuilder(@NotNull @NotNull ScheduleBuilder cronExpBuilder)
      Sets CronExpBuilder. You can get in SubscriptionService class
      Parameters:
      cronExpBuilder - the CronExpBuilder for create
      Returns:
      the cron exp builder
    • setUser

      SubscriptionBuilder setUser(com.atlassian.jira.user.ApplicationUser user)
      Sets user.
      Parameters:
      user - the user
      Returns:
      the user
    • getUser

      com.atlassian.jira.user.ApplicationUser getUser()
      Gets user.
      Returns:
      the user
    • setAllFieldsOption

      SubscriptionBuilder setAllFieldsOption(boolean allFields)
      Sets config all Fields as option in the susbscription
      Parameters:
      allFields - the all fields
      Returns:
      the all fields option
    • hasAllFieldsOption

      boolean hasAllFieldsOption()
      Has all fields as option.
      Returns:
      the boolean
    • setHighlightOption

      SubscriptionBuilder setHighlightOption(boolean highlight)
      Sets config high light as option in the susbscription
      Parameters:
      highlight - the high light
      Returns:
      the high light option
    • isHighlightOption

      boolean isHighlightOption()
      Has high light as option.
      Returns:
      the boolean
    • setFields

      SubscriptionBuilder setFields(List<Field> fields)
      Sets fields to include in the subscription
      Parameters:
      fields - the fields
      Returns:
      the fields
    • addField

      SubscriptionBuilder addField(Field field)
      Add field subscription.
      Parameters:
      field - the field
      Returns:
      the subscription builder
    • getFields

      List<Field> getFields()
      Gets fields.
      Returns:
      the fields