public interface PushMessageInformationDao extends GenericBaseDao<PushMessageInformation,String>
| Modifier and Type | Method and Description |
|---|---|
void |
deletePushInformationOlderThan(Date oldest)
Delete all Push Message Information entries that are older than the given date
|
List<PushMessageInformation> |
findAllForPushApplication(String pushApplicationId,
boolean ascending)
Loads all push message metadata objects for the given PushApplication, but offers a way to order (asc/desc) by date.
|
PageResult<PushMessageInformation,MessageMetrics> |
findAllForPushApplication(String pushApplicationId,
String search,
boolean ascending,
Integer page,
Integer pageSize)
Loads paged push message metadata objects for the given PushApplication, but offers a way to order (asc/desc) by date.
|
List<PushMessageInformation> |
findLatestActivity(int maxResults) |
List<PushMessageInformation> |
findLatestActivity(String loginName,
int maxResults)
Filters the three most recent PushMessageInformation objects
|
List<String> |
findVariantIDsWithWarnings() |
List<String> |
findVariantIDsWithWarnings(String loginName)
Filters those variantIDs where the variant shows errors/issues for previous message sends
|
long |
getNumberOfPushMessagesForApplications() |
long |
getNumberOfPushMessagesForLoginName(String loginName)
Does a count for all the push message that have been submitted for the given PushApplication.
|
long |
getNumberOfPushMessagesForPushApplication(String pushApplicationId)
Counts push messages for given push application ID
|
long |
getNumberOfPushMessagesForVariant(String variantID)
Counts push messages for given variant ID
|
create, delete, find, flushAndClear, lock, updatelong getNumberOfPushMessagesForLoginName(String loginName)
loginName - the usernamelong getNumberOfPushMessagesForPushApplication(String pushApplicationId)
pushApplicationId - the push application IDlong getNumberOfPushMessagesForVariant(String variantID)
variantID - the variant IDList<PushMessageInformation> findAllForPushApplication(String pushApplicationId, boolean ascending)
pushApplicationId - ID of the PushApplicationascending - boolean to define if ASC ordering (by date) or DESC ordering should be executed.PageResult<PushMessageInformation,MessageMetrics> findAllForPushApplication(String pushApplicationId, String search, boolean ascending, Integer page, Integer pageSize)
pushApplicationId - ID of the PushApplicationascending - boolean to define if ASC ordering (by date) or DESC ordering should be executed.search - the value of the alert of a push notificationpage - The number of the page.pageSize - the number of elements in the result.List<String> findVariantIDsWithWarnings(String loginName)
loginName - the usernameList<PushMessageInformation> findLatestActivity(String loginName, int maxResults)
loginName - the usernamemaxResults - number of max items in the returned listvoid deletePushInformationOlderThan(Date oldest)
oldest - the point in time to go back toList<PushMessageInformation> findLatestActivity(int maxResults)
long getNumberOfPushMessagesForApplications()
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.