|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FilterSubscriptionService
Provides high level access to CRUD and query FilterSubscriptions.
| Method Summary | |
|---|---|
String |
getPrettySchedule(JiraServiceContext context,
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. |
Collection<org.ofbiz.core.entity.GenericValue> |
getVisibleSubscriptions(User user,
SearchRequest filter)
Retrieves a list of subscriptions that a given user can see for a given filter. |
Collection<org.ofbiz.core.entity.GenericValue> |
getVisibleSubscriptions(com.atlassian.crowd.embedded.api.User user,
SearchRequest filter)
Retrieves a list of subscriptions that a given user can see for a given filter. |
void |
storeSubscription(JiraServiceContext context,
Long filterId,
String groupName,
String expr,
boolean emailOnEmpty)
Create and store the Cron Trigger and subscription |
void |
updateSubscription(JiraServiceContext context,
Long subscriptionId,
String groupName,
String expr,
boolean emailOnEmpty)
Updates the subscription to the new given values and persists. |
void |
validateCronExpression(JiraServiceContext context,
String expr)
Validates a given cron expression Errors are passed back in the ErrorCollection
of the JiraServiceContext |
| Method Detail |
|---|
void validateCronExpression(JiraServiceContext context,
String expr)
ErrorCollection
of the JiraServiceContext
context - jira service contextexpr - Expression to evaluate
void storeSubscription(JiraServiceContext context,
Long filterId,
String groupName,
String expr,
boolean emailOnEmpty)
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 results
void updateSubscription(JiraServiceContext context,
Long subscriptionId,
String groupName,
String expr,
boolean emailOnEmpty)
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 results
String getPrettySchedule(JiraServiceContext context,
String cronExpression)
CronExpressionParser.
context - the jira service context.cronExpression - a cron expression.
Collection<org.ofbiz.core.entity.GenericValue> getVisibleSubscriptions(User user,
SearchRequest filter)
user - The user that can see the subscriptionsfilter - The filter with teh associated subscriptions
Collection<org.ofbiz.core.entity.GenericValue> getVisibleSubscriptions(com.atlassian.crowd.embedded.api.User user,
SearchRequest filter)
user - The user that can see the subscriptionsfilter - The filter with teh associated subscriptions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||