|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequestDetailServiceImpl
public class PushRequestDetailServiceImpl
Default implementation of the PushRequestDetailService defining operations to manage push request details.
| Constructor Summary | |
|---|---|
PushRequestDetailServiceImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestDetailServiceImpl()
| Method Detail |
|---|
public void setPushRequestDetailDAO(PushRequestDetailDAO pushRequestDetailDAO)
PushRequestDetailServicePushRequestDetailDAO,/code> to use.
- Specified by:
setPushRequestDetailDAO in interface PushRequestDetailService
public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushRequestDetailServicePushSDKProperties collaborating object - this
is used to read global configuration properties.
setPushSDKProperties in interface PushRequestDetailServicepushSDKProperties - an instance of a PushSDKProperties implementation (must be thread safe)
public void addPushRequestDetail(PushRequestDetail pushRequestDetail)
throws PushSDKException
PushRequestDetailService
addPushRequestDetail in interface PushRequestDetailServicepushRequestDetail - the push request detail to create
PushSDKException - if any errors occur
public void addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws PushSDKException
PushRequestDetailService
addPushRequestDetails in interface PushRequestDetailServicepushRequestDetails - the list of push request details to create
PushSDKException - if any errors occur
public List<PushRequestDetail> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws PushSDKException
PushRequestDetailService
findByDateRange in interface PushRequestDetailServicefromDate - 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
public int getSizeByDateRange(Date fromDate,
Date toDate)
throws PushSDKException
PushRequestDetailService
getSizeByDateRange in interface PushRequestDetailServicefromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
PushSDKException - if any errors occur
public List<PushRequestDetail> findById(String id)
throws PushSDKException
PushRequestDetailService
findById in interface PushRequestDetailServiceid - id of the push request
PushSDKException - if any errors occur
public List<PushRequestDetail> findByIdAndStates(String id,
List<MessageState> states)
throws PushSDKException
PushRequestDetailService
findByIdAndStates in interface PushRequestDetailServiceid - id of the push requeststates - a list of message states
PushSDKException - if any errors occur
public PushRequestDetail findByIdAndAddress(String id,
String address)
throws PushSDKException
PushRequestDetailService
findByIdAndAddress in interface PushRequestDetailServiceid - id of the push requestaddress - address for the device the push was made to
PushSDKException - if any errors occur
public List<PushRequestDetail> findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
throws PushSDKException
PushRequestDetailService
findByStatusCode in interface PushRequestDetailServicestatusCode - 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
public List<PushRequestDetail> findByIdAndStatusCode(String id,
StatusCode statusCode)
throws PushSDKException
PushRequestDetailService
findByIdAndStatusCode in interface PushRequestDetailServiceid - id of the push requeststatusCode - status code of the push request details to look up
PushSDKException - if any errors occur
public void updatePushRequestDetail(PushRequestDetail pushRequestDetail)
throws PushSDKException
PushRequestDetailService
updatePushRequestDetail in interface PushRequestDetailServicepushRequestDetail - the push request detail to update (note that the wildcard address "*" is supported by deferring to the
updatePushRequestDetails(List resultNotifications) method)
PushSDKException - if any errors occur
public void updatePushRequestDetail(ResultNotification resultNotification)
throws PushSDKException
PushRequestDetailServiceresultNotification.
Note: Not all fields are updated, only the following fields are: messageState, statusCode, statusDesc, senderName,
senderAddress and completedDate.
updatePushRequestDetail in interface PushRequestDetailServiceresultNotification - the result notification to update the push request detail (note that the wildcard address "*" is not supported)
PushSDKException - if any errors occur
public void updatePushRequestDetails(List<ResultNotification> resultNotifications)
throws PushSDKException
PushRequestDetailServiceresultNotifications.
Note: Not all fields are updated, only the following fields are: messageState, statusCode, statusDesc, senderName,
senderAddress and completedDate.
updatePushRequestDetails in interface PushRequestDetailServiceresultNotifications - the list of result notifications to update the corresponding push request details (note that the wildcard
address "*" is supported)
PushSDKException - if any errors occur
public List<PushRequestDetail> findByIdAndAddresses(String id,
List<String> addresses)
throws PushSDKException
PushRequestDetailService
findByIdAndAddresses in interface PushRequestDetailServiceid - id of the push requestaddresses - addresses for the device the push was made to
PushSDKException - if any errors occur
public List<PushRequestDetail> findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
throws PushSDKException
PushRequestDetailService
findByIdAndSubscriberIds in interface PushRequestDetailServiceid - id of the push requestsubscriberIds - subscriberIds for the device the push was made to
PushSDKException - if any errors occur
public Set<PushIdAndApplicationId> findByIdsAndState(List<String> ids,
MessageState state)
throws PushSDKException
PushRequestDetailService
findByIdsAndState in interface PushRequestDetailServiceids - ids of the push requestsstate - a message state
PushSDKException - if any errors occur
public List<PushRequestDetail> findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
throws PushSDKException
PushRequestDetailService
findIncompleteByAppIdAndSubId in interface PushRequestDetailServiceapplicationId - application for which to find the incomplete pushessubscriberId - the subscriber id for which to find incomplete pushes
PushSDKException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||