Class MongoAppleIapReceiptDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoAppleIapReceiptDao
- All Implemented Interfaces:
AppleIapReceiptDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAppleIapReceipt
(String originalTransactionId) Deletes an existing receipt.getAppleIapReceipt
(String originalTransactionId) Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.getAppleIapReceipts
(User user, int offset, int count) Gets receipts for a given user specifying the offset and the count.dev.morphia.Datastore
getOrCreateAppleIapReceipt
(AppleIapReceipt appleIapReceipt) 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
-
MongoAppleIapReceiptDao
public MongoAppleIapReceiptDao()
-
-
Method Details
-
getAppleIapReceipts
Description copied from interface:AppleIapReceiptDao
Gets receipts for a given user specifying the offset and the count.- Specified by:
getAppleIapReceipts
in interfaceAppleIapReceiptDao
- Parameters:
user
- the useroffset
- the offsetcount
- the count- Returns:
- a
Pagination
ofAppleIapReceipt
objects.
-
getAppleIapReceipt
Description copied from interface:AppleIapReceiptDao
Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.- Specified by:
getAppleIapReceipt
in interfaceAppleIapReceiptDao
- Parameters:
originalTransactionId
- the original apple transaction id- Returns:
- the
AppleIapReceipt
that was requested, never null
-
getOrCreateAppleIapReceipt
Description copied from interface:AppleIapReceiptDao
Creates a new receipt.- Specified by:
getOrCreateAppleIapReceipt
in interfaceAppleIapReceiptDao
- Returns:
- the
AppleIapReceipt
as it was written into the database
-
deleteAppleIapReceipt
Description copied from interface:AppleIapReceiptDao
Deletes an existing receipt.- Specified by:
deleteAppleIapReceipt
in interfaceAppleIapReceiptDao
- Parameters:
originalTransactionId
- the original apple transaction id
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getDozerMapper
-
setDozerMapper
-
getValidationHelper
-
setValidationHelper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMongoUserDao
-
setMongoUserDao
-