Class GetLoanByExternalIdCommandStrategy

java.lang.Object
org.apache.fineract.batch.command.internal.GetLoanByExternalIdCommandStrategy
All Implemented Interfaces:
org.apache.fineract.batch.command.CommandStrategy

@Component public class GetLoanByExternalIdCommandStrategy extends Object implements org.apache.fineract.batch.command.CommandStrategy
Implements CommandStrategy and get loan by external id. It passes the contents of the body from the BatchRequest to LoansApiResource and gets back the response. This class will also catch any errors raised by LoansApiResource and map those errors to appropriate status codes in BatchResponse.
  • Constructor Details

    • GetLoanByExternalIdCommandStrategy

      public GetLoanByExternalIdCommandStrategy()
  • Method Details

    • execute

      public org.apache.fineract.batch.domain.BatchResponse execute(org.apache.fineract.batch.domain.BatchRequest request, jakarta.ws.rs.core.UriInfo uriInfo)
      Specified by:
      execute in interface org.apache.fineract.batch.command.CommandStrategy