public interface InstallationDao extends GenericBaseDao<Installation,String>
| Modifier and Type | Method and Description |
|---|---|
List<String> |
findAllDeviceTokenForVariantIDByCriteria(String variantID,
List<String> categories,
List<String> aliases,
List<String> deviceTypes)
Sender API for installations:
Query all tokens for the given variant, by respecting a few criteria arguments (categories, aliases and deviceTypes)
|
Installation |
findInstallationForVariantByDeviceToken(String variantID,
String deviceToken)
Loads a specific installation for the given Variant, specified by the device token.
|
PageResult<Installation> |
findInstallationsByVariant(String variantID,
Integer page,
Integer pageSize)
Find all installations for the variant specified (used for admin role)
|
PageResult<Installation> |
findInstallationsByVariantForDeveloper(String variantID,
String developer,
Integer page,
Integer pageSize)
Find all installations for the variant specified and for the authneticated user.
|
List<Installation> |
findInstallationsForVariantByDeviceTokens(String variantID,
Set<String> deviceTokens)
Loads all installations matching the
Set of deviceTokens, for the given Variant |
long |
getNumberOfDevicesForVariantIDs()
Counts the total number of all registered devices/clients
|
long |
getNumberOfDevicesForVariantIDs(String loginName)
Counts the total number of registered devices/clients for the give List of variantIDs
|
create, delete, find, flushAndClear, updateInstallation findInstallationForVariantByDeviceToken(String variantID, String deviceToken)
List<Installation> findInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens)
Set of deviceTokens, for the given VariantList<String> findAllDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes)
PageResult<Installation> findInstallationsByVariantForDeveloper(String variantID, String developer, Integer page, Integer pageSize)
variantID - the id of the variant to find the installations fordeveloper - the developerpage - the page numberpageSize - the size of the pagesPageResult<Installation> findInstallationsByVariant(String variantID, Integer page, Integer pageSize)
variantID - the id of the variant to find the installations forpage - the page numberpageSize - the size of the pageslong getNumberOfDevicesForVariantIDs(String loginName)
long getNumberOfDevicesForVariantIDs()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.