|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushRequestDAO
Interface defining data access methods needed to manage PushRequest objects in the persistent store.
| Method Summary | |
|---|---|
void |
addPushRequest(PushRequest pushRequest)
Adds the specified push request to the persistent store. |
void |
deletePushRequest(String pushId)
Deletes a push request with the given id. |
void |
deletePushRequests(boolean completed,
String deletedBy)
Deletes all push requests. |
void |
deletePushRequests(List<String> pushIds)
Deletes push requests with the given ids. |
void |
deletePushRequestsByDate(Date toDate,
boolean completed,
String deletedBy)
Deletes push requests that are older than the provided date. |
void |
deletePushRequestsByPushAppId(String pushApplicationId,
boolean completed,
String deletedBy)
Deletes push requests for the specified push application. |
void |
deletePushRequestsByPushAppIdAndDate(String pushApplicationId,
Date toDate,
boolean completed,
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 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 |
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 org.springframework.dao.DataAccessException
pushRequest - the push request to create
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
void updatePushRequest(PushRequest pushRequest)
throws org.springframework.dao.DataAccessException
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
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequestsByPushAppIdAndDate(String pushApplicationId,
Date toDate,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
pushApplicationId - id of the push application for which the corresponding push requests should be deletedtoDate - specifies the cut off date for the push request deletioncompleted - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequestsByPushAppId(String pushApplicationId,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
pushApplicationId - id of the push application for which the corresponding push requests should be deletedcompleted - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequestsByDate(Date toDate,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
toDate - specifies the cut off date for the push request deletion.completed - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequests(boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
completed - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequests(List<String> pushIds)
throws org.springframework.dao.DataAccessException
pushIds - ids of the requests to be deleted
org.springframework.dao.DataAccessException - if any errors occur
void deletePushRequest(String pushId)
throws org.springframework.dao.DataAccessException
pushId - id of the request to be deleted
org.springframework.dao.DataAccessException - if any errors occur
PushRequest findById(String id)
throws org.springframework.dao.DataAccessException
id - id of the push request to find
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequest> findAll()
throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequest> findByAppId(String id)
throws org.springframework.dao.DataAccessException
id - id of the push application
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
List<PushRequest> findByStatusCode(StatusCode statusCode)
throws org.springframework.dao.DataAccessException
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
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequest> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
fromDate - from date parameter of the rangetoDate - to date parameter of the rangestartIndex - 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 getSizeByDateRange(Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
fromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequest> findIncomplete(String applicationId)
throws org.springframework.dao.DataAccessException
applicationId - application for which to find the incomplete pushes
org.springframework.dao.DataAccessException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||