Interface B2BBudgetService<B extends B2BBudgetModel,U extends UserModel>

Type Parameters:
B - an extension of B2BBudgetModel
U - an extension of UserModel
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 Details

    • getB2BBudgetForCode

      B getB2BBudgetForCode(String code)
      Get B2BBudgetModel of specified code. Returns null if none found.
      Parameters:
      code - the code
      Returns:
      the B2BBudget model
    • getB2BBudgets

      Set<B> getB2BBudgets()
      Returns:
      B2BBudgetModel - all B2BBudgets to which the caller has visibility.
    • getCurrentBudgets

      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", forRemoval=true) boolean isBudgetExisting(String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 6.0. Use getB2BBudgetForCode(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 of SearchPageData for pagination given the required pagination parameters with PageableData
      Parameters:
      pageableData - Pagination information
      Returns:
      List of paginated B2BBudgetModel objects