|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequestServiceImpl
public class PushRequestServiceImpl
Default implementation of the PushRequestService, defining operations to manage push requests.
| Constructor Summary | |
|---|---|
PushRequestServiceImpl()
|
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestServiceImpl()
| Method Detail |
|---|
public void setPushRequestDAO(PushRequestDAO pushRequestDAO)
PushRequestServicePushRequestDAO to use.
setPushRequestDAO in interface PushRequestServicepushRequestDAO - an instance of a PushRequestDAO implementationpublic void setPushRequestDetailService(PushRequestDetailService pushRequestDetailService)
PushRequestServicePushRequestDetailService to use.
setPushRequestDetailService in interface PushRequestServicepushRequestDetailService - an instance of a PushRequestDetailService implementationpublic void setPushApplicationService(PushApplicationService pushApplicationService)
PushRequestServicePushApplicationService to use.
setPushApplicationService in interface PushRequestServicepushApplicationService - an instance of a PushApplicationService implementationpublic void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushRequestServicePushSDKProperties collaborating object - this
is used to read global configuration properties.
setPushSDKProperties in interface PushRequestServicepushSDKProperties - an instance of a PushSDKProperties implementation (must be thread safe)
public void addPushRequest(PushRequest pushRequest)
throws PushSDKException
PushRequestService
addPushRequest in interface PushRequestServicepushRequest - the push request to create
PushSDKException - if any errors occur
@Deprecated
public void updatePushRequest(PushRequest pushRequest)
throws PushSDKException
PushRequestService
updatePushRequest in interface PushRequestServicepushRequest - the push request to update
PushSDKException - if any errors occur
public void deletePushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
throws PushSDKException
PushRequestService
deletePushRequests in interface PushRequestServicepushApplicationId - 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
public void deleteCompletedPushRequests(String pushApplicationId,
Date toDate,
String deletedBy)
throws PushSDKException
PushRequestService
deleteCompletedPushRequests in interface PushRequestServicepushApplicationId - 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
public void deletePushRequests(List<String> pushIds)
throws PushSDKException
PushRequestService
deletePushRequests in interface PushRequestServicepushIds - ids of the requests to be deleted
PushSDKException - if any errors occur
public void deletePushRequest(String pushId)
throws PushSDKException
PushRequestService
deletePushRequest in interface PushRequestServicepushId - id of the request to be deleted
PushSDKException - if any errors occur
public List<PushRequest> findAll()
throws PushSDKException
PushRequestService
findAll in interface PushRequestServicePushSDKException - if any errors occur
public List<PushRequest> findByAppId(String id)
throws PushSDKException
PushRequestService
findByAppId in interface PushRequestServiceid - id of the push application
PushSDKException - if any errors occur
public List<PushRequest> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws PushSDKException
PushRequestService
findByDateRange in interface PushRequestServicefromDate - 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
public int getSizeByDateRange(Date fromDate,
Date toDate)
throws PushSDKException
PushRequestService
getSizeByDateRange in interface PushRequestServicefromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
PushSDKException - if any errors occur
public PushRequest findById(String id)
throws PushSDKException
PushRequestService
findById in interface PushRequestServiceid - id of the push request to find
PushSDKException - if any errors occur
@Deprecated
public List<PushRequest> findByStatusCode(StatusCode statusCode)
throws PushSDKException
PushRequestService
findByStatusCode in interface PushRequestServicestatusCode - status code of the push request
PushSDKException - if any errors occur
public List<PushRequest> findIncomplete(String applicationId)
throws PushSDKException
PushRequestService
findIncomplete in interface PushRequestServiceapplicationId - application for which to find the incomplete pushes
PushSDKException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||