Class BatchOperation

java.lang.Object
com.intuit.ipp.services.BatchOperation

public class BatchOperation extends Object
Class to prepare the BatchItemrequests and get the responses for the corresponding bIds. The response is segregated to corresponding result types so that user can validate the corresponding batch item using the bId.
  • Field Details

    • batchItemRequests

      protected List<com.intuit.ipp.data.BatchItemRequest> batchItemRequests
      variable batchItemRequests
    • bIds

      protected List<String> bIds
      variable bIds
  • Constructor Details

    • BatchOperation

      public BatchOperation()
  • Method Details

    • addEntity

      public <T extends com.intuit.ipp.core.IEntity> void addEntity(T entity, com.intuit.ipp.data.OperationEnum operation, String bId)
      Method to add the entity batch operations to the batchItemRequest
      Parameters:
      entity - the entity
      operation - the OperationEnum
      bId - the batch Id
    • addQuery

      public void addQuery(String query, String bId)
      Method to add the query batch operation to batchItemRequest
      Parameters:
      query - the query
      bId - the batch Id
    • addCDCQuery

      public void addCDCQuery(List<? extends com.intuit.ipp.core.IEntity> entities, String changedSince, String bId) throws FMSException
      Method to add the cdc query batch operation to batchItemRequest
      Parameters:
      entities - the list of entities
      changedSince - the date where the entities should be listed from the last changed date
      bId - the batch Id
      Throws:
      FMSException
    • addReportQuery

      public void addReportQuery(String reportQuery, String bId)
      Method to add the report query batch operation to batchItemRequest
      Parameters:
      reportQuery -
      bId -
    • getBatchItemRequests

      public List<com.intuit.ipp.data.BatchItemRequest> getBatchItemRequests()
      Gets batchItemRequests
      Returns:
      batchItemRequests
    • getBIds

      public List<String> getBIds()
      Gets bIds
      Returns:
      bIds
    • isFault

      public boolean isFault(String bId)
      Method to validate whether the batch item is fault for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • isReport

      public boolean isReport(String bId)
      Method to validate whether the batch item is report for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • isQuery

      public boolean isQuery(String bId)
      Method to validate whether the batch item is query for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • isCDCQuery

      public boolean isCDCQuery(String bId)
      Method to validate whether the batch item is cdc query for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • isEntity

      public boolean isEntity(String bId)
      Method to validate whether the batch item is entity for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • getFault

      public com.intuit.ipp.data.Fault getFault(String bId)
      Method to get the fault object for the given bId
      Parameters:
      bId -
      Returns:
      boolean
    • getReport

      public com.intuit.ipp.data.Report getReport(String bId)
      Method to get the report object for the given bId
      Parameters:
      bId -
      Returns:
      Report
    • getQueryResponse

      public QueryResult getQueryResponse(String bId)
      Method to get the query result object for the given bId
      Parameters:
      bId -
      Returns:
      QueryResult
    • getCDCQueryResult

      public CDCQueryResult getCDCQueryResult(String bId)
      Method to get the cdc query result object for the given bId
      Parameters:
      bId -
      Returns:
      CDCQueryResult
    • getEntity

      public com.intuit.ipp.core.IEntity getEntity(String bId)
      Method to get the entity object for the given bId
      Parameters:
      bId -
      Returns:
      IEntity
    • getFaultResult

      public Map<String,com.intuit.ipp.data.Fault> getFaultResult()
      Gets faultResult list
      Returns:
      faultResult
    • getReportResult

      public Map<String,com.intuit.ipp.data.Report> getReportResult()
      Gets reportResult list
      Returns:
      reportResult
    • getQueryResult

      public Map<String,QueryResult> getQueryResult()
      Gets queryResult list
      Returns:
      queryResult
    • getCDCQueryResult

      public Map<String,CDCQueryResult> getCDCQueryResult()
      Gets cdcQueryResult list
      Returns:
      cdcQueryResult
    • getEntityResult

      public Map<String,com.intuit.ipp.core.IEntity> getEntityResult()
      Gets entityResult list
      Returns:
      entityResult
    • getIntuitObject

      protected <T> jakarta.xml.bind.JAXBElement<? extends com.intuit.ipp.data.IntuitEntity> getIntuitObject(T entity)
      Method to get the corresponding IEntity type for the given JAXBElement
      Parameters:
      entity -
      Returns:
      entity