|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubscriptionManager
Method Summary | |
---|---|
org.ofbiz.core.entity.GenericValue |
createSubscription(User user,
Long filterId,
String groupName,
Long period,
Boolean emailOnEmpty)
|
org.ofbiz.core.entity.GenericValue |
createSubscription(User user,
Long filterId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
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 |
deleteSubscriptionsForUser(User user)
|
List |
getAllSubscriptions()
|
List |
getAllSubscriptions(Long filterId)
|
org.ofbiz.core.entity.GenericValue |
getSubscription(User user,
Long subId)
|
org.ofbiz.core.entity.GenericValue |
getSubscriptionFromTriggerName(String triggerName)
|
List |
getSubscriptions(User user,
Long filterId)
|
org.quartz.Trigger |
getTriggerFromSubscription(org.ofbiz.core.entity.GenericValue subscription)
|
boolean |
hasSubscription(User user,
Long filterId)
|
void |
runSubscription(org.ofbiz.core.entity.GenericValue subId)
|
void |
runSubscription(User u,
Long subId)
|
void |
updateSubscription(User user,
Long subscriptionId,
Map fields,
org.quartz.Trigger trigger)
Deprecated. Should use the method with an explicit list of fields |
void |
updateSubscription(User user,
Long subscriptionId,
String groupName,
org.quartz.Trigger trigger,
Boolean emailOnEmpty)
|
Method Detail |
---|
boolean hasSubscription(User user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericValue getSubscription(User user, Long subId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List getSubscriptions(User user, Long filterId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericValue createSubscription(User user, Long filterId, String groupName, Long period, Boolean emailOnEmpty)
org.ofbiz.core.entity.GenericValue createSubscription(User user, Long filterId, String groupName, org.quartz.Trigger trigger, Boolean emailOnEmpty)
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 results
Exception
void deleteSubscription(Long subId) throws Exception
Exception
void runSubscription(org.ofbiz.core.entity.GenericValue subId) throws Exception
Exception
void runSubscription(User u, Long subId) throws Exception
Exception
org.ofbiz.core.entity.GenericValue getSubscriptionFromTriggerName(String triggerName) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.quartz.Trigger getTriggerFromSubscription(org.ofbiz.core.entity.GenericValue subscription) throws org.quartz.SchedulerException
org.quartz.SchedulerException
void updateSubscription(User user, Long subscriptionId, Map fields, org.quartz.Trigger trigger) throws DataAccessException
user
- the current user performing this operationsubscriptionId
- identifies the subscription to updatefields
- the fields to update the subscription with.trigger
- The trigger to update the subscription with
DataAccessException
- if there is a problem persisting the data.void updateSubscription(User user, Long subscriptionId, String groupName, org.quartz.Trigger trigger, 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 emailtrigger
- The trigger to update the subscription with
DataAccessException
- if there is a problem persisting the data.List getAllSubscriptions(Long filterId)
List getAllSubscriptions()
void deleteSubscriptionsForUser(User user) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |