Class MongoAppleIapReceiptDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoAppleIapReceiptDao
- All Implemented Interfaces:
AppleIapReceiptDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAppleIapReceipt(String originalTransactionId) Deletes an existing receipt.getAppleIapReceipt(String originalTransactionId) Gets the receipt with the id, or throws aNotFoundExceptionif 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.DatastoregetOrCreateAppleIapReceipt(AppleIapReceipt appleIapReceipt) Creates a new receipt.voidsetDatastore(dev.morphia.Datastore datastore) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetMongoUserDao(MongoUserDao mongoUserDao) voidsetValidationHelper(ValidationHelper validationHelper)
-
Constructor Details
-
MongoAppleIapReceiptDao
public MongoAppleIapReceiptDao()
-
-
Method Details
-
getAppleIapReceipts
Description copied from interface:AppleIapReceiptDaoGets receipts for a given user specifying the offset and the count.- Specified by:
getAppleIapReceiptsin interfaceAppleIapReceiptDao- Parameters:
user- the useroffset- the offsetcount- the count- Returns:
- a
PaginationofAppleIapReceiptobjects.
-
getAppleIapReceipt
Description copied from interface:AppleIapReceiptDaoGets the receipt with the id, or throws aNotFoundExceptionif the receipt can't be found.- Specified by:
getAppleIapReceiptin interfaceAppleIapReceiptDao- Parameters:
originalTransactionId- the original apple transaction id- Returns:
- the
AppleIapReceiptthat was requested, never null
-
getOrCreateAppleIapReceipt
Description copied from interface:AppleIapReceiptDaoCreates a new receipt.- Specified by:
getOrCreateAppleIapReceiptin interfaceAppleIapReceiptDao- Returns:
- the
AppleIapReceiptas it was written into the database
-
deleteAppleIapReceipt
Description copied from interface:AppleIapReceiptDaoDeletes an existing receipt.- Specified by:
deleteAppleIapReceiptin 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
-