Interface SubscriptionService
public interface SubscriptionService
The interface Subscription service.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SubscriptionBuilder builder) Create subscription.void
delete
(Subscription subscription) Delete.void
deleteAllByUser
(com.atlassian.jira.user.ApplicationUser applicationUser) Delete by user.get()
Get list.get
(com.atlassian.jira.user.ApplicationUser user) Get list.Get subscription.Gets builder.Gets cron exp advanced builder.Gets cron exp days per week builder.Gets cron exp once a month builder.void
update
(Subscription subscription) Update subscription.void
updateWithError
(Subscription subscription, String errorMessage) Update subscription with error execution.void
updateWithSuccess
(Subscription subscription) Update subscription with success execution.
-
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
Get list.- Parameters:
user
- the user- Returns:
- the list
-
get
List<Subscription> get()Get list.- Returns:
- the list
-
update
Update subscription.- Parameters:
subscription
- the subscription
-
updateWithSuccess
Update subscription with success execution.- Parameters:
subscription
- the subscription
-
updateWithError
Update subscription with error execution.- Parameters:
subscription
- the subscriptionerrorMessage
- the error message
-
delete
Delete.- Parameters:
subscription
- the subscription
-
deleteAllByUser
void deleteAllByUser(com.atlassian.jira.user.ApplicationUser applicationUser) Delete by user.- Parameters:
applicationUser
- the application user
-