Package de.hybris.platform.b2b.services
Interface B2BBudgetService<B extends B2BBudgetModel,U extends UserModel>
- Type Parameters:
B- an extension ofB2BBudgetModelU- an extension ofUserModel
- All Known Implementing Classes:
DefaultB2BBudgetService
public interface B2BBudgetService<B extends B2BBudgetModel,U extends UserModel>
The Interface B2BBudgetService. Service is responsible for providing access to available B2BBudgetModels based on
different parameters.
- Spring Bean ID:
- b2bBudgetService
-
Method Summary
Modifier and TypeMethodDescriptionfindPagedBudgets(PageableData pageableData) Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDatagetB2BBudgetForCode(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.booleanisBudgetExisting(String code) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.
-
Method Details
-
getB2BBudgetForCode
GetB2BBudgetModelof specified code. Returns null if none found.- Parameters:
code- the code- Returns:
- the B2BBudget model
-
getB2BBudgets
- Returns:
B2BBudgetModel- all B2BBudgets to which the caller has visibility.
-
getCurrentBudgets
Gets the current budgets that are active for a cost center and have the same currency as the cost center.- 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. UsegetB2BBudgetForCode(String)directly (it will return null if budget does not exist). Checks whether the budget exists regardless of visibility constraints- Parameters:
code- the budget's code- Returns:
- true is budget with this code exists
-
findPagedBudgets
Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Parameters:
pageableData- Pagination information- Returns:
- List of paginated
B2BBudgetModelobjects
-