Class MongoGooglePlayIapReceiptDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoGooglePlayIapReceiptDao
- All Implemented Interfaces:
GooglePlayIapReceiptDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteGooglePlayIapReceipt
(String orderId) Deletes an existing receipt.dev.morphia.Datastore
getGooglePlayIapReceipt
(String orderId) Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.getGooglePlayIapReceipts
(User user, int offset, int count) Gets receipts for a given user specifying the offset and the count.getOrCreateGooglePlayIapReceipt
(GooglePlayIapReceipt googlePlayIapReceipt) Creates a new receipt.void
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapper
(MapperRegistry dozerMapperRegistry) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setMongoUserDao
(MongoUserDao mongoUserDao) void
setValidationHelper
(ValidationHelper validationHelper)
-
Constructor Details
-
MongoGooglePlayIapReceiptDao
public MongoGooglePlayIapReceiptDao()
-
-
Method Details
-
getGooglePlayIapReceipts
Description copied from interface:GooglePlayIapReceiptDao
Gets receipts for a given user specifying the offset and the count.- Specified by:
getGooglePlayIapReceipts
in interfaceGooglePlayIapReceiptDao
- Parameters:
user
- the useroffset
- the offsetcount
- the count- Returns:
- a
Pagination
ofGooglePlayIapReceipt
objects.
-
getGooglePlayIapReceipt
Description copied from interface:GooglePlayIapReceiptDao
Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.- Specified by:
getGooglePlayIapReceipt
in interfaceGooglePlayIapReceiptDao
- Parameters:
orderId
- the order id issued by Google Play services- Returns:
- the
GooglePlayIapReceipt
that was requested, never null
-
getOrCreateGooglePlayIapReceipt
public GooglePlayIapReceipt getOrCreateGooglePlayIapReceipt(GooglePlayIapReceipt googlePlayIapReceipt) Description copied from interface:GooglePlayIapReceiptDao
Creates a new receipt.- Specified by:
getOrCreateGooglePlayIapReceipt
in interfaceGooglePlayIapReceiptDao
- Returns:
- the
GooglePlayIapReceipt
as it was written into the database
-
deleteGooglePlayIapReceipt
Description copied from interface:GooglePlayIapReceiptDao
Deletes an existing receipt.- Specified by:
deleteGooglePlayIapReceipt
in interfaceGooglePlayIapReceiptDao
- Parameters:
orderId
- the order id
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getDozerMapper
-
setDozerMapper
-
getValidationHelper
-
setValidationHelper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMongoUserDao
-
setMongoUserDao
-