public interface SubscriptionService
Modifier and Type | Method and Description |
---|---|
Subscription |
create(SubscriptionBuilder builder)
Create subscription.
|
void |
delete(Subscription subscription)
Delete.
|
void |
deleteAllByUser(com.atlassian.jira.user.ApplicationUser applicationUser)
Delete by user.
|
List<Subscription> |
get()
Get list.
|
List<Subscription> |
get(com.atlassian.jira.user.ApplicationUser user)
Get list.
|
Subscription |
get(Integer id)
Get subscription.
|
SubscriptionBuilder |
getBuilder()
Gets builder.
|
ScheduleAdvancedBuilder |
getScheduleAdvancedBuilder()
Gets cron exp advanced builder.
|
ScheduleDaysPerWeekBuilder |
getScheduleDaysPerWeekBuilder()
Gets cron exp days per week builder.
|
ScheduleOnceAMonthBuilder |
getScheduleOnceAMonthBuilder()
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.
|
SubscriptionBuilder getBuilder()
ScheduleDaysPerWeekBuilder getScheduleDaysPerWeekBuilder()
ScheduleOnceAMonthBuilder getScheduleOnceAMonthBuilder()
ScheduleAdvancedBuilder getScheduleAdvancedBuilder()
Subscription create(SubscriptionBuilder builder)
builder
- the builderSubscription get(Integer id)
id
- the Id subscriptionList<Subscription> get(com.atlassian.jira.user.ApplicationUser user)
user
- the userList<Subscription> get()
void update(Subscription subscription)
subscription
- the subscriptionvoid updateWithSuccess(Subscription subscription)
subscription
- the subscriptionvoid updateWithError(Subscription subscription, String errorMessage)
subscription
- the subscriptionerrorMessage
- the error messagevoid delete(Subscription subscription)
subscription
- the subscriptionvoid deleteAllByUser(com.atlassian.jira.user.ApplicationUser applicationUser)
applicationUser
- the application userCopyright © 2021 DEISER. All Rights Reserved.