Class DefaultTuaBillingAccountService
java.lang.Object
de.hybris.platform.billingaccountservices.services.impl.DefaultTuaBillingAccountService
- All Implemented Interfaces:
TuaBillingAccountService
Default implementation of
TuaBillingAccountService.- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTuaBillingAccountService(TuaGenericDao billingAccountSearchDao, TuaBillingAccountDao billingAccountDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptioncreateBillingAccount(Class billingAccountClass) Creates an instance ofTuaAccountModelsubtype.getBillingAccount(String billingAccountId) Returns aTuaAccountModelfor the given id.protected TuaBillingAccountDaogetBillingAccounts(BaBillingAccountContext billingAccountContext, Integer offset, Integer limit) Returns a list ofTuaAccountModels for the given context.protected TuaGenericDaoprotected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfBillingAccountsFor(BaBillingAccountContext billingAccountContext) Retrieves the total number of billing accounts found for a given billingAccountContext.voidremoveBillingAccount(TuaAccountModel billingAccount) Removes the givenTuaAccountModelvoidsaveBillingAccount(TuaAccountModel billingAccountModel) Saves the givenTuaAccountModel.
-
Constructor Details
-
DefaultTuaBillingAccountService
public DefaultTuaBillingAccountService(TuaGenericDao billingAccountSearchDao, TuaBillingAccountDao billingAccountDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
getBillingAccount
Description copied from interface:TuaBillingAccountServiceReturns aTuaAccountModelfor the given id.- Specified by:
getBillingAccountin interfaceTuaBillingAccountService- Parameters:
billingAccountId- identifier ofTuaAccountModel- Returns:
- the
TuaAccountModelfound.
-
getBillingAccounts
public List<TuaAccountModel> getBillingAccounts(BaBillingAccountContext billingAccountContext, Integer offset, Integer limit) Description copied from interface:TuaBillingAccountServiceReturns a list ofTuaAccountModels for the given context.- Specified by:
getBillingAccountsin interfaceTuaBillingAccountService- Parameters:
billingAccountContext- the billing account context, used for filtering of accounts.offset- the offset.limit- the maximum number of returned billing accounts.- Returns:
- the List of
TuaAccountModels found for the given context.
-
getNumberOfBillingAccountsFor
Description copied from interface:TuaBillingAccountServiceRetrieves the total number of billing accounts found for a given billingAccountContext.- Specified by:
getNumberOfBillingAccountsForin interfaceTuaBillingAccountService- Parameters:
billingAccountContext- the billing account context.- Returns:
- the number of products found.
-
saveBillingAccount
Description copied from interface:TuaBillingAccountServiceSaves the givenTuaAccountModel.- Specified by:
saveBillingAccountin interfaceTuaBillingAccountService- Parameters:
billingAccountModel- the given billing account.
-
createBillingAccount
Description copied from interface:TuaBillingAccountServiceCreates an instance ofTuaAccountModelsubtype.- Specified by:
createBillingAccountin interfaceTuaBillingAccountService- Parameters:
billingAccountClass- the class of theTuaAccountModelsubtype.- Returns:
- the newly created model.
-
removeBillingAccount
Description copied from interface:TuaBillingAccountServiceRemoves the givenTuaAccountModel- Specified by:
removeBillingAccountin interfaceTuaBillingAccountService- Parameters:
billingAccount- the billingAccount.
-
getGenericSearchDao
-
getBillingAccountDao
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-