@Service @Transactional(readOnly=true) public class ComplaintTypeService extends Object
| Constructor and Description |
|---|
ComplaintTypeService(ComplaintTypeRepository complaintTypeRepository) |
| Modifier and Type | Method and Description |
|---|---|
ComplaintType |
createComplaintType(ComplaintType complaintType) |
List<ComplaintType> |
findActiveComplaintTypes() |
List<ComplaintType> |
findActiveComplaintTypesByCategory(Long categoryId) |
List<ComplaintType> |
findAll() |
List<ComplaintType> |
findAllActiveByNameLike(String name) |
List<ComplaintType> |
findAllByNameLike(String name) |
ComplaintType |
findBy(Long complaintTypeId) |
ComplaintType |
findByCode(String code) |
ComplaintType |
findByName(String name) |
List<org.egov.infra.admin.master.entity.Department> |
getAllComplaintTypeDepartments() |
List<ComplaintType> |
getFrequentlyFiledComplaints()
List top 5 complaint types filed in last one month
|
org.springframework.data.domain.Page<ComplaintType> |
getListOfComplaintTypes(Integer pageNumber,
Integer pageSize) |
ComplaintType |
load(Long id) |
ComplaintType |
updateComplaintType(ComplaintType complaintType) |
@Autowired public ComplaintTypeService(ComplaintTypeRepository complaintTypeRepository)
public ComplaintType findBy(Long complaintTypeId)
@Transactional public ComplaintType createComplaintType(ComplaintType complaintType)
@Transactional public ComplaintType updateComplaintType(ComplaintType complaintType)
public List<ComplaintType> findAll()
public List<ComplaintType> findAllActiveByNameLike(String name)
public List<ComplaintType> findActiveComplaintTypesByCategory(Long categoryId)
public List<ComplaintType> findAllByNameLike(String name)
public ComplaintType findByName(String name)
public ComplaintType load(Long id)
public org.springframework.data.domain.Page<ComplaintType> getListOfComplaintTypes(Integer pageNumber, Integer pageSize)
public List<ComplaintType> getFrequentlyFiledComplaints()
public ComplaintType findByCode(String code)
public List<org.egov.infra.admin.master.entity.Department> getAllComplaintTypeDepartments()
public List<ComplaintType> findActiveComplaintTypes()
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.