|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.filter.DefaultFilterSubscriptionService
public class DefaultFilterSubscriptionService
Uses quartz implementation of CronTrigger
Constructor Summary | |
---|---|
DefaultFilterSubscriptionService(JiraAuthenticationContext jiraAuthenticationContext,
SubscriptionManager subscriptionManager)
|
Method Summary | |
---|---|
java.lang.String |
getPrettySchedule(JiraServiceContext context,
java.lang.String cronExpression)
Renders a human readable description of the given cron expression or returns the cron expression if it can't be parsed by the CronExpressionParser . |
protected java.lang.String |
getText(java.lang.String key,
java.lang.Object param)
|
java.util.Collection |
getVisibleSubscriptions(com.opensymphony.user.User user,
SearchRequest filter)
Retrieves a list of subscriptions that a given user can see for a given filter. |
void |
storeSubscription(JiraServiceContext context,
java.lang.Long filterId,
java.lang.String groupName,
java.lang.String expr,
boolean emailOnEmpty)
Create and store the Cron Trigger and subscription |
void |
updateSubscription(JiraServiceContext context,
java.lang.Long subscriptionId,
java.lang.String groupName,
java.lang.String expr,
boolean emailOnEmpty)
Updates the subscription to the new given values and persists. |
void |
validateCronExpression(JiraServiceContext context,
java.lang.String expr)
Validates a given cron expression Errors are passed back in the ErrorCollection
of the JiraServiceContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFilterSubscriptionService(JiraAuthenticationContext jiraAuthenticationContext, SubscriptionManager subscriptionManager)
Method Detail |
---|
public void validateCronExpression(JiraServiceContext context, java.lang.String expr)
FilterSubscriptionService
ErrorCollection
of the JiraServiceContext
validateCronExpression
in interface FilterSubscriptionService
context
- jira service contextexpr
- Expression to evaluatepublic void storeSubscription(JiraServiceContext context, java.lang.Long filterId, java.lang.String groupName, java.lang.String expr, boolean emailOnEmpty)
FilterSubscriptionService
storeSubscription
in interface FilterSubscriptionService
context
- jira service contextfilterId
- Id of the filter subscribing togroupName
- Sent to group (may be null if sent to self)expr
- Cron expression to storeemailOnEmpty
- send email if filter returns no resultspublic void updateSubscription(JiraServiceContext context, java.lang.Long subscriptionId, java.lang.String groupName, java.lang.String expr, boolean emailOnEmpty)
FilterSubscriptionService
updateSubscription
in interface FilterSubscriptionService
context
- jira service contextsubscriptionId
- Id of the subscription being updatedgroupName
- Sent to group (may be null if sent to self)expr
- Cron expression to storeemailOnEmpty
- send email if filter returns no resultspublic java.lang.String getPrettySchedule(JiraServiceContext context, java.lang.String cronExpression)
FilterSubscriptionService
CronExpressionParser
.
getPrettySchedule
in interface FilterSubscriptionService
context
- the jira service context.cronExpression
- a cron expression.
public java.util.Collection getVisibleSubscriptions(com.opensymphony.user.User user, SearchRequest filter)
FilterSubscriptionService
getVisibleSubscriptions
in interface FilterSubscriptionService
user
- The user that can see the subscriptionsfilter
- The filter with teh associated subscriptions
protected java.lang.String getText(java.lang.String key, java.lang.Object param)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |