Interface B2BCommerceCostCenterFacade

All Known Implementing Classes:
DefaultB2BCommerceCostCenterFacade

@Deprecated(since="6.0", forRemoval=true) public interface B2BCommerceCostCenterFacade
Deprecated, for removal: This API element is subject to removal in a future version.
Since 6.0. Use B2BCostCenterFacade instead.

A facade for cost center management within b2b commerce

  • Method Details

    • getPagedCostCenters

      SearchPageData<B2BCostCenterData> getPagedCostCenters(PageableData pageableData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets paginated list of Cost Centers visible to the current users branch.
      Parameters:
      pageableData - Pagination data
      Returns:
      a paginated list of cost centers.
    • getCostCenterDataForCode

      B2BCostCenterData getCostCenterDataForCode(String costCenterCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get view details for a given Cost center code
      Parameters:
      costCenterCode -
      Returns:
      B2BCostCenterData
    • updateCostCenterDetails

      void updateCostCenterDetails(B2BCostCenterData b2BCostCenterData) throws DuplicateUidException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Update the cost center details for edit cost centers flow
      Parameters:
      b2BCostCenterData - B2BCostCenterData
      Throws:
      DuplicateUidException
    • addCostCenter

      void addCostCenter(B2BCostCenterData b2BCostCenterData) throws DuplicateUidException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add cost center
      Parameters:
      b2BCostCenterData - B2BCostCenterData
      Throws:
      DuplicateUidException
    • enableDisableCostCenter

      void enableDisableCostCenter(String costCenterCode, boolean active) throws DuplicateUidException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enable/disable for a cost center. active set to true denotes enabling cost center and vice versa.
      Parameters:
      costCenterCode -
      active -
      Throws:
      DuplicateUidException
    • getPagedBudgetsForCostCenters

      SearchPageData<B2BBudgetData> getPagedBudgetsForCostCenters(PageableData pageableData, String costCenterCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves paged budgets for given cost center
      Parameters:
      pageableData - for selecting budgets
      costCenterCode - to check
      Returns:
      the resulting SearchPageData
    • selectBudgetForCostCenter

      B2BSelectionData selectBudgetForCostCenter(String costCenterCode, String budgetCode) throws DuplicateUidException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Select a budget for cost center
      Parameters:
      costCenterCode -
      budgetCode -
      Returns:
      the resulting B2BSelectionData
      Throws:
      DuplicateUidException
    • deSelectBudgetForCostCenter

      B2BSelectionData deSelectBudgetForCostCenter(String costCenterCode, String budgetCode) throws DuplicateUidException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deselect a budget for a cost center
      Parameters:
      costCenterCode -
      budgetCode -
      Returns:
      the resulting B2BSelectionData
      Throws:
      DuplicateUidException