public interface ClientInstallationService
| Modifier and Type | Method and Description |
|---|---|
void |
addInstallation(org.jboss.aerogear.unifiedpush.api.Variant variant,
org.jboss.aerogear.unifiedpush.api.Installation installation)
Store a new Installation object on the database.
|
void |
addInstallations(org.jboss.aerogear.unifiedpush.api.Variant variant,
List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
Add new Installations objects, for importing devices on the database.
|
org.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> |
findAllDeviceTokenForVariantIDByCriteria(String variantID,
List<String> categories,
List<String> aliases,
List<String> deviceTypes,
int maxResults,
String lastTokenFromPreviousBatch)
Used for (Android/iOS) Sender API.
|
org.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> |
findAllOldGoogleCloudMessagingDeviceTokenForVariantIDByCriteria(String variantID,
List<String> categories,
List<String> aliases,
List<String> deviceTypes,
int maxResults,
String lastTokenFromPreviousBatch)
Used to query all old GCM tokens, which do not contain a ':' char.
|
org.jboss.aerogear.unifiedpush.api.Installation |
findById(String primaryKey)
Returns the Installation entity, matching the given primaryKey.
|
org.jboss.aerogear.unifiedpush.api.Installation |
findInstallationForVariantByDeviceToken(String variantID,
String deviceToken)
Used for "Device Registration":
Finder that returns the actual client installation, identified by its device-token, for the given variant.
|
void |
removeInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
Removes the given installation entity.
|
void |
removeInstallationForVariantByDeviceToken(String variantID,
String deviceToken)
Used to remove single device token from UPS.
|
void |
removeInstallations(List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
Removes all the installation entities in the
List. |
void |
removeInstallationsForVariantByDeviceTokens(String variantID,
Set<String> deviceTokens)
Used for "feedback service": Collects the invalid Installations for a Variant, based on the identifier tokens.
|
void |
unsubscribeOldTopics(org.jboss.aerogear.unifiedpush.api.Installation installation)
Used for Android installations which have less/other categories on repeated registration
|
void |
updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
Performs an update/merge on the given entity.
|
void |
updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation toUpdate,
org.jboss.aerogear.unifiedpush.api.Installation postedInstallation)
Updates the first argument with the values from the second, and returns the updated entity.
|
void addInstallation(org.jboss.aerogear.unifiedpush.api.Variant variant,
org.jboss.aerogear.unifiedpush.api.Installation installation)
variant - the variant to store oninstallation - the installationvoid addInstallations(org.jboss.aerogear.unifiedpush.api.Variant variant,
List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
variant - the variant to store oninstallations - list of installationsvoid updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
installation - the installationvoid updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation toUpdate,
org.jboss.aerogear.unifiedpush.api.Installation postedInstallation)
toUpdate - entity to be updatedpostedInstallation - entity where we read the "updateable" values from.org.jboss.aerogear.unifiedpush.api.Installation findById(String primaryKey)
primaryKey - the PK for the installationvoid removeInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
installation - the installationvoid removeInstallations(List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
List.installations - list of installationsvoid removeInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens)
variantID - id of the variantdeviceTokens - list of tokensvoid removeInstallationForVariantByDeviceToken(String variantID, String deviceToken)
variantID - id of the variantdeviceToken - one tokensorg.jboss.aerogear.unifiedpush.api.Installation findInstallationForVariantByDeviceToken(String variantID, String deviceToken)
variantID - id of the variantdeviceToken - one tokensvoid unsubscribeOldTopics(org.jboss.aerogear.unifiedpush.api.Installation installation)
installation - Installation object containing correct variant property of AndroidVariant classorg.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> findAllDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes, int maxResults, String lastTokenFromPreviousBatch)
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 tokenorg.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> findAllOldGoogleCloudMessagingDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes, int maxResults, String lastTokenFromPreviousBatch)
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 tokenCopyright © 2016 JBoss by Red Hat. All Rights Reserved.