|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushRequestDetailService
Interface defining business operations to manage push request details.
| Method Summary | |
|---|---|
void |
addPushRequestDetail(PushRequestDetail pushRequestDetail)
Adds the specified push request detail to the persistent store. |
void |
addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
Adds the specified push request details to the persistent store. |
List<PushRequestDetail> |
findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
Finds all push request details by the specified created-date range. |
List<PushRequestDetail> |
findById(String id)
Finds all the push request details for the specific push request. |
PushRequestDetail |
findByIdAndAddress(String id,
String address)
Finds a push request detail by the specified push request and address. |
List<PushRequestDetail> |
findByIdAndAddresses(String id,
List<String> addresses)
Finds push request details by the specified push request and addresses. |
List<PushRequestDetail> |
findByIdAndStates(String id,
List<MessageState> states)
Finds all the push request details for the specific push request and given states. |
List<PushRequestDetail> |
findByIdAndStatusCode(String id,
StatusCode statusCode)
Finds all the push request details with the given status code for a specific push request. |
List<PushRequestDetail> |
findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
Finds push request details by the specified push request and subscriber ids. |
Set<PushIdAndApplicationId> |
findByIdsAndState(List<String> ids,
MessageState state)
Finds push ids and application ids for the specific push requests and given state. |
List<PushRequestDetail> |
findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
Finds all the push request details by the specified status code. |
List<PushRequestDetail> |
findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
Finds all push requests that are incomplete for a specific subscriber id and push application. |
int |
getSizeByDateRange(Date fromDate,
Date toDate)
Gets size of all push request details by the specified date range. |
void |
setPushRequestDetailDAO(PushRequestDetailDAO pushRequestDetailDAO)
Support for dependency injection. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
updatePushRequestDetail(PushRequestDetail pushRequestDetail)
Updates the specified push request detail in the persistent store. |
void |
updatePushRequestDetail(ResultNotification resultNotification)
Updates the push request detail based on the specified resultNotification. |
void |
updatePushRequestDetails(List<ResultNotification> resultNotifications)
Updates the push request details based on the specified list of resultNotifications. |
| Method Detail |
|---|
void addPushRequestDetail(PushRequestDetail pushRequestDetail)
throws PushSDKException
pushRequestDetail - the push request detail to create
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
void addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws PushSDKException
pushRequestDetails - the list of push request details to create
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
void updatePushRequestDetail(ResultNotification resultNotification)
throws PushSDKException
resultNotification.
Note: Not all fields are updated, only the following fields are: messageState, statusCode, statusDesc, senderName,
senderAddress and completedDate.
resultNotification - the result notification to update the push request detail (note that the wildcard address "*" is not supported)
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
void updatePushRequestDetails(List<ResultNotification> resultNotifications)
throws PushSDKException
resultNotifications.
Note: Not all fields are updated, only the following fields are: messageState, statusCode, statusDesc, senderName,
senderAddress and completedDate.
resultNotifications - the list of result notifications to update the corresponding push request details (note that the wildcard
address "*" is supported)
PushSDKException - if any errors occur
void updatePushRequestDetail(PushRequestDetail pushRequestDetail)
throws PushSDKException
pushRequestDetail - the push request detail to update (note that the wildcard address "*" is supported by deferring to the
updatePushRequestDetails(List resultNotifications) method)
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
PushRequestDetail findByIdAndAddress(String id,
String address)
throws PushSDKException
id - id of the push requestaddress - address for the device the push was made to
PushSDKException - if any errors occur
List<PushRequestDetail> findByIdAndAddresses(String id,
List<String> addresses)
throws PushSDKException
id - id of the push requestaddresses - addresses for the device the push was made to
PushSDKException - if any errors occur
List<PushRequestDetail> findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
throws PushSDKException
id - id of the push requestsubscriberIds - subscriberIds for the device the push was made to
PushSDKException - if any errors occur
List<PushRequestDetail> findById(String id)
throws PushSDKException
id - id of the push request
PushSDKException - if any errors occur
List<PushRequestDetail> findByIdAndStates(String id,
List<MessageState> states)
throws PushSDKException
id - id of the push requeststates - a list of message states
PushSDKException - if any errors occur
Set<PushIdAndApplicationId> findByIdsAndState(List<String> ids,
MessageState state)
throws PushSDKException
ids - ids of the push requestsstate - a message state
PushSDKException - if any errors occur
List<PushRequestDetail> findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
throws PushSDKException
statusCode - status code of the push request details to look upstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
PushSDKException - if any errors occur
List<PushRequestDetail> findByIdAndStatusCode(String id,
StatusCode statusCode)
throws PushSDKException
id - id of the push requeststatusCode - status code of the push request details to look up
PushSDKException - if any errors occur
List<PushRequestDetail> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws PushSDKException
fromDate - inclusive 'from' value for the created date of push request detailstoDate - inclusive 'to' value for the created date of push requests detailsstartIndex - inclusive, zero-based start indexendIndex - inclusive, zero-based end index
PushSDKException - if any errors occur
int getSizeByDateRange(Date fromDate,
Date toDate)
throws PushSDKException
fromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
PushSDKException - if any errors occur
List<PushRequestDetail> findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
throws PushSDKException
applicationId - application for which to find the incomplete pushessubscriberId - the subscriber id for which to find incomplete pushes
PushSDKException - if any errors occurvoid setPushRequestDetailDAO(PushRequestDetailDAO pushRequestDetailDAO)
PushRequestDetailDAO,/code> to use.
- Parameters:
pushRequestDetailDAO -
void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushSDKProperties collaborating object - this
is used to read global configuration properties.
pushSDKProperties - an instance of a PushSDKProperties implementation (must be thread safe)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||