HubSubscriptionMDSService¶
-
public interface
HubSubscriptionMDSService
extends MotechDataService<HubSubscription>¶ Data Service interface for
org.motechproject.hub.mds.HubSubscription
. The implementation is generated by the Motech Data Services module at runtime.
Methods¶
findSubByCallbackUrl¶
-
List<HubSubscription>
findSubByCallbackUrl
(String callbackUrl)¶ Finds all
HubSubscription
s with given callback url.Parameters: - callbackUrl – the callback url to be searched for
Returns: list of the matching hub subscriptions
findSubByCallbackUrlAndTopicId¶
-
List<HubSubscription>
findSubByCallbackUrlAndTopicId
(String callbackUrl, Integer hubTopicId)¶ Finds all
HubSubscription
s with given topic id and given callback url.Parameters: - callbackUrl – the callback url to be searched for
- hubTopicId – the id of the topic
Returns: list of the matching hub subscriptions
findSubByTopicId¶
-
List<HubSubscription>
findSubByTopicId
(Integer hubTopicId)¶ Finds all
HubSubscription
s with given topic id.Parameters: - hubTopicId – the id of the topic
Returns: list of the matching hub subscriptions