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 Detail

      • getB2BBudgetForCode

        B getB2BBudgetForCode​(java.lang.String code)
        Get B2BBudgetModel of 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. 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