Class AuditRequestFactory


  • @Component
    public class AuditRequestFactory
    extends Object
    A factory for creating and building AuditRequest objects from properties
    Author:
    Manoj SP
    • Constructor Detail

      • AuditRequestFactory

        public AuditRequestFactory()
    • Method Detail

      • buildRequest

        public io.mosip.kernel.core.http.RequestWrapper<AuditRequestDto> buildRequest​(AuditModules module,
                                                                                      AuditEvents event,
                                                                                      String id,
                                                                                      IdType idType,
                                                                                      String desc)
        Builds the request.
        Parameters:
        module - the module
        event - the event
        id - the id
        idType - the id type enum
        desc - the desc
        Returns:
        the audit request dto
      • buildRequest

        public io.mosip.kernel.core.http.RequestWrapper<AuditRequestDto> buildRequest​(AuditModules module,
                                                                                      AuditEvents event,
                                                                                      String id,
                                                                                      String idType,
                                                                                      String desc)
        Builds the request.
        Parameters:
        module - the module
        event - the event
        id - the id
        idType - the id type name
        desc - the desc
        Returns:
        the audit request dto