Class DefaultB2BBudgetService
- java.lang.Object
-
- de.hybris.platform.b2b.services.impl.DefaultB2BBudgetService
-
- All Implemented Interfaces:
B2BBudgetService<B2BBudgetModel,B2BCustomerModel>
public class DefaultB2BBudgetService extends java.lang.Object implements B2BBudgetService<B2BBudgetModel,B2BCustomerModel>
Default implementation of theB2BBudgetService- Spring Bean ID:
- b2bBudgetService
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BBudgetService()
-
Method Summary
-
-
-
Method Detail
-
getCurrentBudgets
public java.util.Collection<B2BBudgetModel> getCurrentBudgets(B2BCostCenterModel costCenter)
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(since="6.0") public boolean isBudgetExisting(java.lang.String code)
Deprecated.Since 6.0.- Specified by:
isBudgetExistingin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel>- Parameters:
code- the budget's code- Returns:
- true is budget with this code exists
-
getB2BBudgets
public java.util.Set<B2BBudgetModel> getB2BBudgets()
- Specified by:
getB2BBudgetsin interfaceB2BBudgetService<B2BBudgetModel,B2BCustomerModel>- Returns:
B2BBudgetModel- all B2BBudgets to which the caller has visibility.
-
getB2BBudgetForCode
public B2BBudgetModel getB2BBudgetForCode(java.lang.String code)
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
public SearchPageData<B2BBudgetModel> findPagedBudgets(PageableData pageableData)
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
protected B2BBudgetDao getB2bBudgetDao()
-
setB2bBudgetDao
public void setB2bBudgetDao(B2BBudgetDao b2bBudgetDao)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getSearchRestrictionService
protected SearchRestrictionService getSearchRestrictionService()
-
setSearchRestrictionService
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
-
getPagedB2BBudgetDao
protected PagedGenericDao<B2BBudgetModel> getPagedB2BBudgetDao()
-
setPagedB2BBudgetDao
public void setPagedB2BBudgetDao(PagedGenericDao<B2BBudgetModel> pagedB2BBudgetDao)
-
-