Search in sources :

Example 6 with AuditLogDto

use of org.mifos.dto.domain.AuditLogDto in project head by mifos.

the class SavingsProductChangeLogController method showAllAuditLogsForSavingsProducts.

@ModelAttribute("auditLog")
@RequestMapping(method = RequestMethod.GET)
public AuditLogScreenDto showAllAuditLogsForSavingsProducts(@RequestParam(value = "productId", required = true) Integer productId) {
    SavingsProductDto productDetails = adminServiceFacade.retrieveSavingsProductDetails(productId);
    List<AuditLogDto> auditLogRecords = adminServiceFacade.retrieveSavingsProductAuditLogs(productId);
    return new AuditLogScreenDto(productDetails.getProductDetails().getId(), productDetails.getProductDetails().getName(), productDetails.getProductDetails().getCreatedDateFormatted(), auditLogRecords);
}
Also used : SavingsProductDto(org.mifos.dto.domain.SavingsProductDto) AuditLogScreenDto(org.mifos.dto.screen.AuditLogScreenDto) AuditLogDto(org.mifos.dto.domain.AuditLogDto) ModelAttribute(org.springframework.web.bind.annotation.ModelAttribute) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

AuditLogDto (org.mifos.dto.domain.AuditLogDto)6 ArrayList (java.util.ArrayList)4 MifosRuntimeException (org.mifos.core.MifosRuntimeException)4 AuditBusinessService (org.mifos.framework.components.audit.business.service.AuditBusinessService)4 AuditLogView (org.mifos.framework.components.audit.util.helpers.AuditLogView)4 ServiceException (org.mifos.framework.exceptions.ServiceException)4 AuditLogScreenDto (org.mifos.dto.screen.AuditLogScreenDto)2 ModelAttribute (org.springframework.web.bind.annotation.ModelAttribute)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 LoanProductRequest (org.mifos.dto.domain.LoanProductRequest)1 SavingsProductDto (org.mifos.dto.domain.SavingsProductDto)1