Class FindAllCostCenterUtil

java.lang.Object
com.skava.accounts.util.FindAllCostCenterUtil

@Service public class FindAllCostCenterUtil extends Object
  • Constructor Details

    • FindAllCostCenterUtil

      public FindAllCostCenterUtil()
  • Method Details

    • findAll

      public org.springframework.data.domain.Page<CostCentreEntity> findAll(CostCentreDO costCentreDO, String sortStr)
      Find all.
      Parameters:
      costCentreDO - the cost centre DO
      sortStr - holds the value for sort.
      Returns:
      a page of CostCentreEntity throws ValidateException if any validation error occurs.
    • search

      public org.springframework.data.domain.Page<CostCentreEntity> search(String filters, org.springframework.data.domain.Pageable pageable, String locale)
      search
      Parameters:
      filters - the filter using which the contracts will be loaded.
      pageable - the pageable
      locale - the locale
      Returns:
      a page of CostCentreEntity
    • findAllCostCentreDO

      public List<CostCentreDO> findAllCostCentreDO(org.springframework.data.domain.Page<CostCentreEntity> costCentreEntities)
      findAllCostCentreDO - get CostCentreDO from CostCentreEntity
      Parameters:
      costCentreEntities - a page of CostCentreEntitye
      Returns:
      a list of CostCentreDO
    • createBudgetEntityMap

      public static Map<Long,List<BudgetEntity>> createBudgetEntityMap(List<BudgetEntity> budgets)
    • getCostCentreIds

      public static List<Long> getCostCentreIds(Iterator<CostCentreEntity> iterator)
      Parameters:
      iterator - CostCentreEntity iterator
      Returns:
      List of CostCentreEntity IDs