@PublicApi
public interface SubscriptionManager
| Modifier and Type | Field and Description |
|---|---|
static String |
SUBSCRIPTION_IDENTIFIER |
| Modifier and Type | Method and Description |
|---|---|
org.ofbiz.core.entity.GenericValue |
createSubscription(ApplicationUser user,
Long filterId,
String groupName,
Long period,
Boolean emailOnEmpty) |
FilterSubscription |
createSubscription(ApplicationUser user,
Long filterId,
String groupName,
String cronExpression,
Boolean emailOnEmpty)
Creates a new subscription based on the passed in filter id and fired
in accordance with the passed in trigger
|
org.ofbiz.core.entity.GenericValue |
createSubscription(ApplicationUser user,
Long filterId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
Deprecated.
Since v6.2. Quartz internals are no longer supported through the JIRA api
use
createSubscription(ApplicationUser, Long, String, String, Boolean) |
org.ofbiz.core.entity.GenericValue |
createSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId,
String groupName,
Long period,
Boolean emailOnEmpty)
Deprecated.
|
org.ofbiz.core.entity.GenericValue |
createSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
Deprecated.
Use
createSubscription(ApplicationUser, Long, String, String, Boolean) instead. Since v6.0.
Creates a new subscription based on the passed in filter id and fired
in accordance with the passed in trigger |
void |
deleteSubscription(Long subId) |
void |
deleteSubscriptionsForGroup(com.atlassian.crowd.embedded.api.Group group) |
void |
deleteSubscriptionsForUser(ApplicationUser user) |
void |
deleteSubscriptionsForUser(com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
deleteSubscriptionsForUser(ApplicationUser) instead. Since v6.0. |
List<FilterSubscription> |
getAllFilterSubscriptions() |
List<FilterSubscription> |
getAllFilterSubscriptions(Long filterId) |
List<org.ofbiz.core.entity.GenericValue> |
getAllSubscriptions()
Deprecated.
Use use
getAllFilterSubscriptions() instead. Since v6.2. |
List<org.ofbiz.core.entity.GenericValue> |
getAllSubscriptions(Long filterId)
Deprecated.
Use use
getAllFilterSubscriptions(Long filterId) instead. Since v6.2. |
String |
getCronExpressionForSubscription(FilterSubscription subscription)
Retrieve the cron expression associated with this subscription
|
FilterSubscription |
getFilterSubscription(ApplicationUser user,
Long subId) |
FilterSubscription |
getFilterSubscription(Long subId)
Get a subscription by Id
|
List<FilterSubscription> |
getFilterSubscriptions(ApplicationUser user,
Long filterId) |
Date |
getNextSendTime(FilterSubscription sub)
Returns the next send time for this subscription.
|
org.ofbiz.core.entity.GenericValue |
getSubscription(ApplicationUser user,
Long subId)
Deprecated.
Use
getFilterSubscription(ApplicationUser, Long) instead. Since v6.0. |
org.ofbiz.core.entity.GenericValue |
getSubscription(com.atlassian.crowd.embedded.api.User user,
Long subId)
Deprecated.
Use
getFilterSubscription(ApplicationUser, Long) instead. Since v6.0. |
org.ofbiz.core.entity.GenericValue |
getSubscriptionFromTriggerName(String triggerName)
Deprecated.
Since v6.2. Quartz internals are no longer supported through the JIRA api.
Use
getFilterSubscription(Long) instead |
List<org.ofbiz.core.entity.GenericValue> |
getSubscriptions(ApplicationUser user,
Long filterId)
Deprecated.
Use
getFilterSubscriptions(ApplicationUser, Long) instead. Since v6.0. |
List<org.ofbiz.core.entity.GenericValue> |
getSubscriptions(com.atlassian.crowd.embedded.api.User user,
Long filterId)
Deprecated.
Use
getFilterSubscriptions(ApplicationUser, Long) instead. Since v6.0. |
org.quartz.Trigger |
getTriggerFromSubscription(org.ofbiz.core.entity.GenericValue subscription)
Deprecated.
Since v6.2. Quartz internals are no longer supported through the JIRA api
|
boolean |
hasSubscription(ApplicationUser user,
Long filterId) |
boolean |
hasSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId)
Deprecated.
Use
hasSubscription(ApplicationUser, Long) instead. Since v6.0. |
void |
runSubscription(ApplicationUser user,
Long subId) |
void |
runSubscription(org.ofbiz.core.entity.GenericValue subId)
Deprecated.
Use
runSubscription(Long). Since v6.2 |
void |
runSubscription(Long subId) |
void |
runSubscription(com.atlassian.crowd.embedded.api.User user,
Long subId)
Deprecated.
Use
runSubscription(com.atlassian.jira.user.ApplicationUser, Long) instead. Since v6.0. |
void |
updateSubscription(ApplicationUser user,
Long subscriptionId,
String groupName,
String cronExpression,
Boolean emailOnEmpty) |
void |
updateSubscription(ApplicationUser user,
Long subscriptionId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
Deprecated.
Since v6.2. Quartz internals are no longer supported through the JIRA api
use
updateSubscription(ApplicationUser, Long, String, String, Boolean) |
void |
updateSubscription(com.atlassian.crowd.embedded.api.User user,
Long subscriptionId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
Deprecated.
Use use
updateSubscription(ApplicationUser, Long, String, String, Boolean) instead. Since v6.0. |
static final String SUBSCRIPTION_IDENTIFIER
boolean hasSubscription(ApplicationUser user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionboolean hasSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId)
throws org.ofbiz.core.entity.GenericEntityException
hasSubscription(ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionFilterSubscription getFilterSubscription(ApplicationUser user, Long subId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionorg.ofbiz.core.entity.GenericValue getSubscription(ApplicationUser user, Long subId) throws org.ofbiz.core.entity.GenericEntityException
getFilterSubscription(ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionorg.ofbiz.core.entity.GenericValue getSubscription(com.atlassian.crowd.embedded.api.User user,
Long subId)
throws org.ofbiz.core.entity.GenericEntityException
getFilterSubscription(ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionList<FilterSubscription> getFilterSubscriptions(ApplicationUser user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionList<org.ofbiz.core.entity.GenericValue> getSubscriptions(ApplicationUser user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
getFilterSubscriptions(ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionList<org.ofbiz.core.entity.GenericValue> getSubscriptions(com.atlassian.crowd.embedded.api.User user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
getFilterSubscriptions(ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionorg.ofbiz.core.entity.GenericValue createSubscription(ApplicationUser user, Long filterId, String groupName, Long period, Boolean emailOnEmpty)
org.ofbiz.core.entity.GenericValue createSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId,
String groupName,
Long period,
Boolean emailOnEmpty)
createSubscription(com.atlassian.jira.user.ApplicationUser, Long, String, org.quartz.Trigger, Boolean) instead. Since v6.0.FilterSubscription createSubscription(ApplicationUser user, Long filterId, String groupName, String cronExpression, Boolean emailOnEmpty)
user - the current user performing this operationfilterId - Id of the filter subscribing togroupName - Sent ot groupcronExpression - The Cron expression for the subscriptionemailOnEmpty - send email if filter returns no resultsorg.ofbiz.core.entity.GenericValue createSubscription(ApplicationUser user, Long filterId, String groupName, org.quartz.Trigger trigger, Boolean emailOnEmpty)
createSubscription(ApplicationUser, Long, String, String, Boolean)user - the current user performing this operationfilterId - Id of the filter subscribing togroupName - Sent ot grouptrigger - The trigger to storeemailOnEmpty - send email if filter returns no resultsorg.ofbiz.core.entity.GenericValue createSubscription(com.atlassian.crowd.embedded.api.User user,
Long filterId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
createSubscription(ApplicationUser, Long, String, String, Boolean) instead. Since v6.0.
Creates a new subscription based on the passed in filter id and fired
in accordance with the passed in triggeruser - the current user performing this operationfilterId - Id of the filter subscribing togroupName - Sent ot grouptrigger - The trigger to storeemailOnEmpty - send email if filter returns no resultsvoid deleteSubscription(Long subId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionvoid runSubscription(org.ofbiz.core.entity.GenericValue subId)
throws org.ofbiz.core.entity.GenericEntityException
runSubscription(Long). Since v6.2org.ofbiz.core.entity.GenericEntityExceptionvoid runSubscription(Long subId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionvoid runSubscription(ApplicationUser user, Long subId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionvoid runSubscription(com.atlassian.crowd.embedded.api.User user,
Long subId)
throws org.ofbiz.core.entity.GenericEntityException
runSubscription(com.atlassian.jira.user.ApplicationUser, Long) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionFilterSubscription getFilterSubscription(Long subId) throws org.ofbiz.core.entity.GenericEntityException
subId - Subscription Idorg.ofbiz.core.entity.GenericEntityExceptionorg.ofbiz.core.entity.GenericValue getSubscriptionFromTriggerName(String triggerName) throws org.ofbiz.core.entity.GenericEntityException
getFilterSubscription(Long) insteadorg.ofbiz.core.entity.GenericEntityExceptionorg.quartz.Trigger getTriggerFromSubscription(org.ofbiz.core.entity.GenericValue subscription)
void updateSubscription(ApplicationUser user, Long subscriptionId, String groupName, org.quartz.Trigger trigger, Boolean emailOnEmpty) throws DataAccessException
updateSubscription(ApplicationUser, Long, String, String, Boolean)user - the current user performing this operationsubscriptionId - identifies the subscription to updategroupName - (optional) the name of the group to receive the emailtrigger - The trigger to update the subscription withDataAccessException - if there is a problem persisting the data.void updateSubscription(ApplicationUser user, Long subscriptionId, String groupName, String cronExpression, Boolean emailOnEmpty) throws DataAccessException
user - the current user performing this operationsubscriptionId - identifies the subscription to updategroupName - (optional) the name of the group to receive the emailcronExpression - The Cron expression to update the subscription withDataAccessException - if there is a problem persisting the data.void updateSubscription(com.atlassian.crowd.embedded.api.User user,
Long subscriptionId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
throws DataAccessException
updateSubscription(ApplicationUser, Long, String, String, Boolean) instead. Since v6.0.user - the current user performing this operationsubscriptionId - identifies the subscription to updategroupName - (optional) the name of the group to receive the emailtrigger - The trigger to update the subscription withDataAccessException - if there is a problem persisting the data.List<FilterSubscription> getAllFilterSubscriptions(Long filterId)
List<FilterSubscription> getAllFilterSubscriptions()
List<org.ofbiz.core.entity.GenericValue> getAllSubscriptions(Long filterId)
getAllFilterSubscriptions(Long filterId) instead. Since v6.2.List<org.ofbiz.core.entity.GenericValue> getAllSubscriptions()
getAllFilterSubscriptions() instead. Since v6.2.void deleteSubscriptionsForUser(ApplicationUser user) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionvoid deleteSubscriptionsForUser(com.atlassian.crowd.embedded.api.User user)
throws org.ofbiz.core.entity.GenericEntityException
deleteSubscriptionsForUser(ApplicationUser) instead. Since v6.0.org.ofbiz.core.entity.GenericEntityExceptionvoid deleteSubscriptionsForGroup(com.atlassian.crowd.embedded.api.Group group)
throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionString getCronExpressionForSubscription(FilterSubscription subscription)
subscription - @Nullable Date getNextSendTime(@Nonnull FilterSubscription sub)
sub - The subscriptionCopyright © 2002-2015 Atlassian. All Rights Reserved.