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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SearchPageData<B>findPagedBudgets(PageableData pageableData)Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDataBgetB2BBudgetForCode(java.lang.String code)GetB2BBudgetModelof specified code.java.util.Set<B>getB2BBudgets()java.util.Collection<B>getCurrentBudgets(B2BCostCenterModel costCenter)Gets the current budgets that are active for a cost center and have the same currency as the cost center.booleanisBudgetExisting(java.lang.String code)Deprecated.Since 6.0.
-
-
-
Method Detail
-
getB2BBudgetForCode
B getB2BBudgetForCode(java.lang.String code)
GetB2BBudgetModelof specified code. Returns null if none found.- Parameters:
code- the code- Returns:
- the B2BBudget model
-
getB2BBudgets
java.util.Set<B> getB2BBudgets()
- Returns:
B2BBudgetModel- all B2BBudgets to which the caller has visibility.
-
getCurrentBudgets
java.util.Collection<B> getCurrentBudgets(B2BCostCenterModel costCenter)
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(since="6.0") boolean isBudgetExisting(java.lang.String code)
Deprecated.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
SearchPageData<B> findPagedBudgets(PageableData pageableData)
Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Parameters:
pageableData- Pagination information- Returns:
- List of paginated
B2BBudgetModelobjects
-
-