public class ClientInstallationServiceImpl extends Object implements ClientInstallationService
ClientInstallationService interface.
Delegates work to an injected DAO object.| Constructor and Description |
|---|
ClientInstallationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstallation(org.jboss.aerogear.unifiedpush.api.Variant variant,
org.jboss.aerogear.unifiedpush.api.Installation entity)
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)
Finder for 'send', used for Android, iOS and SimplePush clients
|
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 installationToUpdate,
org.jboss.aerogear.unifiedpush.api.Installation postedInstallation)
Updates the first argument with the values from the second, and returns the updated entity.
|
public void addInstallation(org.jboss.aerogear.unifiedpush.api.Variant variant,
org.jboss.aerogear.unifiedpush.api.Installation entity)
ClientInstallationServiceaddInstallation in interface ClientInstallationServicevariant - the variant to store onentity - the installationpublic void addInstallations(org.jboss.aerogear.unifiedpush.api.Variant variant,
List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
ClientInstallationServiceaddInstallations in interface ClientInstallationServicevariant - the variant to store oninstallations - list of installationspublic void removeInstallations(List<org.jboss.aerogear.unifiedpush.api.Installation> installations)
ClientInstallationServiceList.removeInstallations in interface ClientInstallationServiceinstallations - list of installationspublic void updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
ClientInstallationServiceupdateInstallation in interface ClientInstallationServiceinstallation - the installationpublic void updateInstallation(org.jboss.aerogear.unifiedpush.api.Installation installationToUpdate,
org.jboss.aerogear.unifiedpush.api.Installation postedInstallation)
ClientInstallationServiceupdateInstallation in interface ClientInstallationServiceinstallationToUpdate - entity to be updatedpostedInstallation - entity where we read the "updateable" values from.public org.jboss.aerogear.unifiedpush.api.Installation findById(String primaryKey)
ClientInstallationServicefindById in interface ClientInstallationServiceprimaryKey - the PK for the installationpublic void removeInstallation(org.jboss.aerogear.unifiedpush.api.Installation installation)
ClientInstallationServiceremoveInstallation in interface ClientInstallationServiceinstallation - the installationpublic void removeInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens)
ClientInstallationServiceremoveInstallationsForVariantByDeviceTokens in interface ClientInstallationServicevariantID - id of the variantdeviceTokens - list of tokenspublic void removeInstallationForVariantByDeviceToken(String variantID, String deviceToken)
ClientInstallationServiceremoveInstallationForVariantByDeviceToken in interface ClientInstallationServicevariantID - id of the variantdeviceToken - one tokenspublic org.jboss.aerogear.unifiedpush.api.Installation findInstallationForVariantByDeviceToken(String variantID, String deviceToken)
ClientInstallationServicefindInstallationForVariantByDeviceToken in interface ClientInstallationServicevariantID - id of the variantdeviceToken - one tokenspublic void unsubscribeOldTopics(org.jboss.aerogear.unifiedpush.api.Installation installation)
ClientInstallationServiceunsubscribeOldTopics in interface ClientInstallationServiceinstallation - Installation object containing correct variant property of AndroidVariant classpublic org.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> findAllDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes, int maxResults, String lastTokenFromPreviousBatch)
findAllDeviceTokenForVariantIDByCriteria in interface ClientInstallationServicevariantID - 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 tokenpublic org.jboss.aerogear.unifiedpush.dao.ResultsStream.QueryBuilder<String> findAllOldGoogleCloudMessagingDeviceTokenForVariantIDByCriteria(String variantID, List<String> categories, List<String> aliases, List<String> deviceTypes, int maxResults, String lastTokenFromPreviousBatch)
ClientInstallationServicefindAllOldGoogleCloudMessagingDeviceTokenForVariantIDByCriteria in interface ClientInstallationServicevariantID - 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.