Interface SubscriptionService


public interface SubscriptionService
The interface Subscription service.
  • Method Details

    • getBuilder

      SubscriptionBuilder getBuilder()
      Gets builder.
      Returns:
      the builder
    • getScheduleDaysPerWeekBuilder

      ScheduleDaysPerWeekBuilder getScheduleDaysPerWeekBuilder()
      Gets cron exp days per week builder.
      Returns:
      the cron exp days per week builder
    • getScheduleOnceAMonthBuilder

      ScheduleOnceAMonthBuilder getScheduleOnceAMonthBuilder()
      Gets cron exp once a month builder.
      Returns:
      the cron exp once a month builder
    • getScheduleAdvancedBuilder

      ScheduleAdvancedBuilder getScheduleAdvancedBuilder()
      Gets cron exp advanced builder.
      Returns:
      the cron exp advanced builder
    • create

      Create subscription.
      Parameters:
      builder - the builder
      Returns:
      the subscription
    • get

      Get subscription.
      Parameters:
      id - the Id subscription
      Returns:
      the list
    • get

      List<Subscription> get(com.atlassian.jira.user.ApplicationUser user)
      Get list.
      Parameters:
      user - the user
      Returns:
      the list
    • get

      Get list.
      Returns:
      the list
    • update

      void update(Subscription subscription)
      Update subscription.
      Parameters:
      subscription - the subscription
    • updateWithSuccess

      void updateWithSuccess(Subscription subscription)
      Update subscription with success execution.
      Parameters:
      subscription - the subscription
    • updateWithError

      void updateWithError(Subscription subscription, String errorMessage)
      Update subscription with error execution.
      Parameters:
      subscription - the subscription
      errorMessage - the error message
    • delete

      void delete(Subscription subscription)
      Delete.
      Parameters:
      subscription - the subscription
    • deleteAllByUser

      void deleteAllByUser(com.atlassian.jira.user.ApplicationUser applicationUser)
      Delete by user.
      Parameters:
      applicationUser - the application user