public interface InstallationDao extends GenericBaseDao<Installation,String>
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
findAllDeviceTokenForVariantID(String variantID) |
ResultsStream.QueryBuilder<String> |
findAllDeviceTokenForVariantIDByCriteria(String variantID,
List<String> categories,
List<String> aliases,
List<String> deviceTypes,
int maxResults,
String lastTokenFromPreviousBatch,
boolean oldGCM)
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,Count> |
findInstallationsByVariant(String variantID,
Integer page,
Integer pageSize,
String search)
Find all installations for the variant specified (used for admin role)
|
PageResult<Installation,Count> |
findInstallationsByVariantForDeveloper(String variantID,
String developer,
Integer page,
Integer pageSize,
String search)
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 |
getNumberOfDevicesForLoginName(String loginName)
Counts the total number of registered devices/clients for the give List of variantIDs
|
long |
getNumberOfDevicesForVariantID(String variantId)
Counts the number of registered devices/clients for the given variant ID
|
long |
getTotalNumberOfDevices()
Counts the total number of all registered devices/clients
|
create, delete, find, flushAndClear, lock, updateInstallation findInstallationForVariantByDeviceToken(String variantID, String deviceToken)
variantID - the variantID for the filterdeviceToken - the deviceToken for the filterList<Installation> findInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens)
Set of deviceTokens, for the given Variant.variantID - the variantID for the filterdeviceTokens - the deviceTokens for the filterResultsStream.QueryBuilder<String> findAllDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes, int maxResults, String lastTokenFromPreviousBatch, boolean oldGCM)
variantID - the variantID for the filtercategories - applied categories for the filteraliases - applied aliases for the filterdeviceTypes - applied deviceTypes for the filtermaxResults - number of maxResults for the filterlastTokenFromPreviousBatch - identifier of the last fetched tokenoldGCM - if true only old GCM tokens (not containing a :) are loadPageResult<Installation,Count> findInstallationsByVariantForDeveloper(String variantID, String developer, Integer page, Integer pageSize, String search)
variantID - the id of the variant to find the installations fordeveloper - the developerpage - the page numberpageSize - the size of the pagessearch - any value of the device metadataPageResult<Installation,Count> findInstallationsByVariant(String variantID, Integer page, Integer pageSize, String search)
variantID - the id of the variant to find the installations forpage - the page numberpageSize - the size of the pagessearch - any value of the device metadatalong getNumberOfDevicesForLoginName(String loginName)
loginName - name of the current userlong getTotalNumberOfDevices()
long getNumberOfDevicesForVariantID(String variantId)
variantId - the variant IDCopyright © 2017 JBoss by Red Hat. All rights reserved.