|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SubscriptionDAO
Data access object for subscribers.
| Method Summary | |
|---|---|
void |
batchIncrementConsecutiveFailedPushCount(List<SubscriberPartial> subscribers)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
void |
batchResetConsecutiveFailedPushCount(List<SubscriberPartial> subscribers)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
void |
deleteInactiveSubscription(String pushApplicationId,
String subscriberId)
Deletes an inactive (unsubscribed) subscription from persistent storage. |
void |
deleteSubscriptions(String pushApplicationId)
Deletes all the subscriptions from storage (and potentially the cache) for a push application. |
List<SubscriberPartial> |
findByAddressAndIdAndNotStatus(String address,
String subscriberId,
SubscriberStatus status)
Finds a list of subscribers with the specified address and the specified subscriber id and NOT the specified status. |
List<SubscriberPartial> |
findByAddressAndNotIdAndNotStatus(String address,
String subscriberId,
SubscriberStatus status)
Finds a list of subscribers with the specified address and NOT the specified subscriber id and NOT the specified status. |
List<SubscriberPartial> |
findByAppId(String pushApplicationId,
int startIndex,
int endIndex)
Finds a list of subscribers with the specified push application id. |
List<SubscriberPartial> |
findByAppIdAndAddress(String pushApplicationId,
String address)
Finds a list of subscribers with the specified address and push application id. |
Subscriber |
findByAppIdAndId(String pushApplicationId,
String subscriberId)
Finds the subscriber with the specified id and push application id. |
SubscriberPartial |
findByAppIdAndIdPartial(String pushApplicationId,
String subscriberId)
Similar to the findByAppIdAndId method, but only finds a subscriber with partial information. |
List<SubscriberPartial> |
findByAppIdAndIdsAndStatus(String pushApplicationId,
List<String> subscriberIds,
SubscriberStatus status)
Finds a list of subscribers for the given push application id that are in the specified subscriber id list with the specified status. |
List<SubscriberPartial> |
findByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status,
int startIndex,
int endIndex)
Finds a list of subscribers with the specified push application id and status. |
List<SubscriberPartial> |
findByAppIdAndType(String pushApplicationId,
SubscriberType type,
int startIndex,
int endIndex)
Finds a list of subscribers with the specified push application id and type. |
List<SubscriberPartial> |
findByAppIdAndTypeAndStatus(String pushApplicationId,
SubscriberType type,
SubscriberStatus status,
int startIndex,
int endIndex)
Finds a list of subscribers with the specified push application id, type, and status. |
List<SubscriberPartial> |
findById(String subscriberId)
Finds a list of subscribers with the specified id. |
List<SubscriberPartial> |
findByIdAndNotStatus(String subscriberId,
SubscriberStatus status)
Finds a list of subscribers with the specified id and NOT the specified status. |
List<SubscriberPartial> |
findByIdAndStatus(String subscriberId,
SubscriberStatus status)
Finds a list of subscribers with the specified id and status. |
List<SubscriberPartial> |
findByIdPattern(String subscriberIdPattern,
int startIndex,
int endIndex)
Finds a list of subscribers whose id contains the given subscriberIdPattern. |
int |
getConsecutiveFailedPushCount(SubscriberPartial subscriber)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
List<DeviceModelCount> |
getDeviceModelCount(String pushApplicationId)
Gets a count of the number of users of a push application (regardless of status) for each BlackBerry device model. |
List<DeviceModelCount> |
getDeviceModelCount(String pushApplicationId,
SubscriberStatus status)
Gets a count of the number of users of a push application with a given status for each BlackBerry device model. |
List<OsVersionCount> |
getOsVersionCount(String pushApplicationId)
Gets a count of the number of users of a push application (regardless of status) for each OS version running on a BlackBerry device. |
List<OsVersionCount> |
getOsVersionCount(String pushApplicationId,
SubscriberStatus status)
Gets a count of the number of users of a push application with a given status for each OS version running on a BlackBerry device. |
int |
getResumeCount(String pushApplicationId,
Date fromDate,
Date toDate)
Gets a count of the number of users that had their subscriptions resumed for an application between the given date range. |
int |
getSizeByAppId(String pushApplicationId)
Gets a count of all the subscribers in storage with the specified push application id. |
int |
getSizeByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status)
Gets a count of all the subscribers in storage with the specified push application id and status. |
int |
getSizeByAppIdAndType(String pushApplicationId,
SubscriberType type)
Gets a count of all the subscribers in storage with the specified push application id and type. |
int |
getSizeByAppIdAndTypeAndStatus(String pushApplicationId,
SubscriberType type,
SubscriberStatus status)
Gets a count of all the subscribers in storage with the specified push application id, type, and status. |
int |
getSizeByIdPattern(String subscriberIdPattern)
Gets a count of all the subscribers in storage whose id contains the given subscriberIdPattern. |
int |
getSubscribeCount(String pushApplicationId,
Date fromDate,
Date toDate)
Gets a count of the number of new subscribers for a given date range. |
int |
getSuspendCount(String pushApplicationId,
Date fromDate,
Date toDate)
Gets a count of the number of users that had their subscriptions suspended for an application between the given date range. |
int |
getUnsubscribeCount(String pushApplicationId,
Date fromDate,
Date toDate)
Gets a count of the number of users that unsubscribed between the given date range. |
void |
incrementConsecutiveFailedPushCount(String pushApplicationId,
String subscriberId)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
SubscriberPartial |
loadFromCache(String pushApplicationId,
String subscriberId)
Attempts to load a partial subscriber from the cache or from memory (for in-memory implementations). |
void |
resetConsecutiveFailedPushCount(String pushApplicationId,
String subscriberId)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
void |
resubscribe(SubscribeRequest subscribeRequest)
Adds a subscriber's resubscription details to persistent storage. |
void |
resume(ResumeRequest resumeRequest)
Adds a subscriber's resume subscription details to persistent storage. |
void |
subscribe(SubscribeRequest subscribeRequest)
Adds a subscriber's subscription details to persistent storage. |
void |
suspend(SuspendRequest suspendRequest)
Adds a subscriber's suspended subscription details to persistent storage. |
void |
unsubscribe(UnsubscribeRequest unsubscribeRequest)
Adds a subscriber's unsubscription details to persistent storage. |
| Method Detail |
|---|
void subscribe(SubscribeRequest subscribeRequest)
throws org.springframework.dao.DataAccessException
subscribeRequest - object containing all the information required for a subscribe
org.springframework.dao.DataAccessException - if any errors occur
void resubscribe(SubscribeRequest subscribeRequest)
throws org.springframework.dao.DataAccessException
subscribeRequest - object containing all the information required for a resubscribe
org.springframework.dao.DataAccessException - if any errors occur
void unsubscribe(UnsubscribeRequest unsubscribeRequest)
throws org.springframework.dao.DataAccessException
unsubscribeRequest - object containing all the information required for an unsubscribe
org.springframework.dao.DataAccessException - if any errors occur
void suspend(SuspendRequest suspendRequest)
throws org.springframework.dao.DataAccessException
suspendRequest - object containing all the information required for a suspend
org.springframework.dao.DataAccessException - if any errors occur
void resume(ResumeRequest resumeRequest)
throws org.springframework.dao.DataAccessException
resumeRequest - object containing all the information required for a resume
org.springframework.dao.DataAccessException - if any errors occur
void deleteInactiveSubscription(String pushApplicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
void deleteSubscriptions(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push application
org.springframework.dao.DataAccessException - if any errors occur
Subscriber findByAppIdAndId(String pushApplicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppIdAndAddress(String pushApplicationId,
String address)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationaddress - the address of the subscriber (case insensitive)
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAddressAndNotIdAndNotStatus(String address,
String subscriberId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
address - the address of the subscriber (case insensitive)subscriberId - the id of the subscriberstatus - a subscriber status
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAddressAndIdAndNotStatus(String address,
String subscriberId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
address - the address of the subscriber (case insensitive)subscriberId - the id of the subscriberstatus - a subscriber status
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findById(String subscriberId)
throws org.springframework.dao.DataAccessException
subscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByIdAndStatus(String subscriberId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
subscriberId - the id of the subscriberstatus - a subscriber status
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByIdAndNotStatus(String subscriberId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
subscriberId - the id of the subscriberstatus - a subscriber status
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppId(String pushApplicationId,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByAppId(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push application
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationstatus - a subscriber statusstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationstatus - a subscriber status
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppIdAndIdsAndStatus(String pushApplicationId,
List<String> subscriberIds,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberIds - only subscribers with one of these ids will be returnedstatus - only subscribers that match this status will be returned
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppIdAndType(String pushApplicationId,
SubscriberType type,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationtype - the type of a subscriberstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByAppIdAndType(String pushApplicationId,
SubscriberType type)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationtype - the type of a subscriber
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByAppIdAndTypeAndStatus(String pushApplicationId,
SubscriberType type,
SubscriberStatus status,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationtype - the type of a subscriberstatus - the status of a subscriberstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByAppIdAndTypeAndStatus(String pushApplicationId,
SubscriberType type,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationtype - the type of a subscriberstatus - the status of a subscriber
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
void incrementConsecutiveFailedPushCount(String pushApplicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
void resetConsecutiveFailedPushCount(String pushApplicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
void batchIncrementConsecutiveFailedPushCount(List<SubscriberPartial> subscribers)
throws org.springframework.dao.DataAccessException
subscribers - list of subscribers to increment count
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
void batchResetConsecutiveFailedPushCount(List<SubscriberPartial> subscribers)
throws org.springframework.dao.DataAccessException
subscribers - list of subscribers to reset count
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
int getConsecutiveFailedPushCount(SubscriberPartial subscriber)
throws org.springframework.dao.DataAccessException
subscriber - SubscriberPartial object with push application id and subscriber id set
org.springframework.dao.DataAccessException - if any errors occur
List<SubscriberPartial> findByIdPattern(String subscriberIdPattern,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
subscriberIdPattern.
Note: Index arguments are present to address memory concerns, since if we retrieve a full list it might be quite large.
Indexes are inclusive and start at 0.
subscriberIdPattern - a whole or partial subscriberId to matchstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByIdPattern(String subscriberIdPattern)
throws org.springframework.dao.DataAccessException
subscriberIdPattern.
subscriberIdPattern - a whole or partial subscriberId to match
org.springframework.dao.DataAccessException - if any errors occur
SubscriberPartial findByAppIdAndIdPartial(String pushApplicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
org.springframework.dao.DataAccessException - if any errors occur
SubscriberPartial loadFromCache(String pushApplicationId,
String subscriberId)
pushApplicationId - the id of the push applicationsubscriberId - the id of the subscriber
int getSubscribeCount(String pushApplicationId,
Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
int getUnsubscribeCount(String pushApplicationId,
Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
int getResumeCount(String pushApplicationId,
Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
int getSuspendCount(String pushApplicationId,
Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
List<DeviceModelCount> getDeviceModelCount(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push application
org.springframework.dao.DataAccessException - if any errors occur
List<DeviceModelCount> getDeviceModelCount(String pushApplicationId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationstatus - the status of a subscriber
org.springframework.dao.DataAccessException - if any errors occur
List<OsVersionCount> getOsVersionCount(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push application
org.springframework.dao.DataAccessException - if any errors occur
List<OsVersionCount> getOsVersionCount(String pushApplicationId,
SubscriberStatus status)
throws org.springframework.dao.DataAccessException
pushApplicationId - the id of the push applicationstatus - the status of a subscriber
org.springframework.dao.DataAccessException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||