Class DefaultB2BBudgetService
java.lang.Object
de.hybris.platform.b2b.services.impl.DefaultB2BBudgetService
- All Implemented Interfaces:
B2BBudgetService<B2BBudgetModel,B2BCustomerModel>
public class DefaultB2BBudgetService
extends Object
implements B2BBudgetService<B2BBudgetModel,B2BCustomerModel>
Default implementation of the
B2BBudgetService- Spring Bean ID:
- b2bBudgetService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindPagedBudgets(PageableData pageableData) Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDataprotected B2BBudgetDaogetB2BBudgetForCode(String code) GetB2BBudgetModelof specified code.getCurrentBudgets(B2BCostCenterModel costCenter) Gets the current budgets that are active for a cost center and have the same currency as the cost center.protected PagedGenericDao<B2BBudgetModel>protected SearchRestrictionServiceprotected SessionServicebooleanisBudgetExisting(String code) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.voidsetB2bBudgetDao(B2BBudgetDao b2bBudgetDao) voidsetPagedB2BBudgetDao(PagedGenericDao<B2BBudgetModel> pagedB2BBudgetDao) voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
DefaultB2BBudgetService
public DefaultB2BBudgetService()
-
-
Method Details
-
getCurrentBudgets
Description copied from interface:B2BBudgetServiceGets the current budgets that are active for a cost center and have the same currency as the cost center.- Specified by:
getCurrentBudgetsin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel> - Parameters:
costCenter- the cost center- Returns:
- the current budgets
-
isBudgetExisting
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.- Specified by:
isBudgetExistingin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel> - Parameters:
code- the budget's code- Returns:
- true is budget with this code exists
-
getB2BBudgets
- Specified by:
getB2BBudgetsin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel> - Returns:
B2BBudgetModel- all B2BBudgets to which the caller has visibility.
-
getB2BBudgetForCode
Description copied from interface:B2BBudgetServiceGetB2BBudgetModelof specified code. Returns null if none found.- Specified by:
getB2BBudgetForCodein interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel> - Parameters:
code- the code- Returns:
- the B2BBudget model
-
findPagedBudgets
Description copied from interface:B2BBudgetServiceGets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Specified by:
findPagedBudgetsin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel> - Parameters:
pageableData- Pagination information- Returns:
- List of paginated
B2BBudgetModelobjects
-
getB2bBudgetDao
-
setB2bBudgetDao
-
getSessionService
-
setSessionService
-
getSearchRestrictionService
-
setSearchRestrictionService
-
getPagedB2BBudgetDao
-
setPagedB2BBudgetDao
-