Package com.skava.accounts.util
Class FindAllCostCenterUtil
java.lang.Object
com.skava.accounts.util.FindAllCostCenterUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Long,
List<BudgetEntity>> createBudgetEntityMap
(List<BudgetEntity> budgets) org.springframework.data.domain.Page<CostCentreEntity>
findAll
(CostCentreDO costCentreDO, String sortStr) Find all.findAllCostCentreDO
(org.springframework.data.domain.Page<CostCentreEntity> costCentreEntities) findAllCostCentreDO - get CostCentreDO from CostCentreEntitygetCostCentreIds
(Iterator<CostCentreEntity> iterator) org.springframework.data.domain.Page<CostCentreEntity>
search
-
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 DOsortStr
- holds the value for sort.- Returns:
- a page of
CostCentreEntity
throwsValidateException
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 pageablelocale
- 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 ofCostCentreEntity
e- Returns:
- a list of
CostCentreDO
-
createBudgetEntityMap
-
getCostCentreIds
- Parameters:
iterator
- CostCentreEntity iterator- Returns:
- List of CostCentreEntity IDs
-