|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushRequestService
Interface defining business operations to manage push requests.
| Method Summary | |
|---|---|
void |
addPushRequest(PushRequest pushRequest)
Adds the specified push request to the persistent store. |
void |
deleteCompletedPushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
Deletes completed push requests for the specified push application that are older than the provided date. |
void |
deletePushRequest(String pushId)
Deletes a push request with the given push id. |
void |
deletePushRequests(List<String> pushIds)
Deletes push requests with the given push ids. |
void |
deletePushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
Deletes push requests for the specified push application that are older than the provided date. |
List<PushRequest> |
findAll()
Finds all push requests. |
List<PushRequest> |
findByAppId(String id)
Finds all push requests associated with a specified push application. |
List<PushRequest> |
findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
Finds all push requests by the specified date range. |
PushRequest |
findById(String id)
Finds a push request by the specified id. |
List<PushRequest> |
findByStatusCode(StatusCode statusCode)
Deprecated. As of release 1.1, the StatusCode associated with the PushRequest is no longer
supported since the push may be sent to both the public/BIS and enterprise/BES PPG simultaneously. Please refer
to the PushRequestDetail records for the push to find out the status for each subscriber instead. |
List<PushRequest> |
findIncomplete(String applicationId)
Finds all push requests that are incomplete for a given push application. |
int |
getSizeByDateRange(Date fromDate,
Date toDate)
Gets size of all push requests by the specified date range. |
void |
setPushApplicationService(PushApplicationService pushApplicationService)
Support for dependency injection. |
void |
setPushRequestDAO(PushRequestDAO pushRequestDAO)
Support for dependency injection. |
void |
setPushRequestDetailService(PushRequestDetailService pushRequestDetailService)
Support for dependency injection. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
updatePushRequest(PushRequest pushRequest)
Deprecated. As of release 1.1, the StatusCode associated with the PushRequest is no longer
supported since the push may be sent to both the public/BIS and enterprise/BES PPG simultaneously. Please refer
to the PushRequestDetail records for the push to find out the status for each subscriber instead. |
| Method Detail |
|---|
void addPushRequest(PushRequest pushRequest)
throws PushSDKException
pushRequest - the push request to create
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
@Deprecated
void updatePushRequest(PushRequest pushRequest)
throws PushSDKException
StatusCode associated with the PushRequest is no longer
supported since the push may be sent to both the public/BIS and enterprise/BES PPG simultaneously. Please refer
to the PushRequestDetail records for the push to find out the status for each subscriber instead.
pushRequest - the push request to update
IllegalArgumentException - if any of the information passed in fails validation
PushSDKException - if any errors occur
void deletePushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
throws PushSDKException
pushApplicationId - id of the push application for which the corresponding push requests should be deletedtoDate - specifies the cut off date for the push request deletiondeletedBy - the id of the user deleting the push requests; used for logging purposes only
PushSDKException - if any errors occur
void deleteCompletedPushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
throws PushSDKException
pushApplicationId - id of the push application for which the corresponding push requests should be deletedtoDate - specifies the cut off date for the push request deletiondeletedBy - the id of the user deleting the push requests; used for logging purposes only
PushSDKException - if any errors occur
void deletePushRequests(List<String> pushIds)
throws PushSDKException
pushIds - ids of the requests to be deleted
PushSDKException - if any errors occur
void deletePushRequest(String pushId)
throws PushSDKException
pushId - id of the request to be deleted
PushSDKException - if any errors occur
PushRequest findById(String id)
throws PushSDKException
id - id of the push request to find
PushSDKException - if any errors occur
List<PushRequest> findAll()
throws PushSDKException
PushSDKException - if any errors occur
List<PushRequest> findByAppId(String id)
throws PushSDKException
id - id of the push application
PushSDKException - if any errors occur
@Deprecated
List<PushRequest> findByStatusCode(StatusCode statusCode)
throws PushSDKException
StatusCode associated with the PushRequest is no longer
supported since the push may be sent to both the public/BIS and enterprise/BES PPG simultaneously. Please refer
to the PushRequestDetail records for the push to find out the status for each subscriber instead.
statusCode - status code of the push request
PushSDKException - if any errors occur
List<PushRequest> findIncomplete(String applicationId)
throws PushSDKException
applicationId - application for which to find the incomplete pushes
PushSDKException - if any errors occur
List<PushRequest> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws PushSDKException
fromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the rangestartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
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 occurvoid setPushRequestDAO(PushRequestDAO pushRequestDAO)
PushRequestDAO to use.
pushRequestDAO - an instance of a PushRequestDAO implementationvoid setPushRequestDetailService(PushRequestDetailService pushRequestDetailService)
PushRequestDetailService to use.
pushRequestDetailService - an instance of a PushRequestDetailService implementationvoid setPushApplicationService(PushApplicationService pushApplicationService)
PushApplicationService to use.
pushApplicationService - an instance of a PushApplicationService implementationvoid 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 | |||||||||