Package com.intuit.ipp.services
Class BatchOperation
java.lang.Object
com.intuit.ipp.services.BatchOperation
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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<com.intuit.ipp.data.BatchItemRequest>
variable batchItemRequestsvariable bIds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCDCQuery
(List<? extends com.intuit.ipp.core.IEntity> entities, String changedSince, String bId) Method to add the cdc query batch operation to batchItemRequest<T extends com.intuit.ipp.core.IEntity>
voidMethod to add the entity batch operations to the batchItemRequestvoid
Method to add the query batch operation to batchItemRequestvoid
addReportQuery
(String reportQuery, String bId) Method to add the report query batch operation to batchItemRequestList<com.intuit.ipp.data.BatchItemRequest>
Gets batchItemRequestsgetBIds()
Gets bIdsGets cdcQueryResult listgetCDCQueryResult
(String bId) Method to get the cdc query result object for the given bIdcom.intuit.ipp.core.IEntity
Method to get the entity object for the given bIdGets entityResult listcom.intuit.ipp.data.Fault
Method to get the fault object for the given bIdGets faultResult listprotected <T> jakarta.xml.bind.JAXBElement<? extends com.intuit.ipp.data.IntuitEntity>
getIntuitObject
(T entity) Method to get the corresponding IEntity type for the given JAXBElementgetQueryResponse
(String bId) Method to get the query result object for the given bIdGets queryResult listcom.intuit.ipp.data.Report
Method to get the report object for the given bIdGets reportResult listboolean
isCDCQuery
(String bId) Method to validate whether the batch item is cdc query for the given bIdboolean
Method to validate whether the batch item is entity for the given bIdboolean
Method to validate whether the batch item is fault for the given bIdboolean
Method to validate whether the batch item is query for the given bIdboolean
Method to validate whether the batch item is report for the given bId
-
Field Details
-
batchItemRequests
variable batchItemRequests -
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 entityoperation
- the OperationEnumbId
- the batch Id
-
addQuery
Method to add the query batch operation to batchItemRequest- Parameters:
query
- the querybId
- 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 entitieschangedSince
- the date where the entities should be listed from the last changed datebId
- the batch Id- Throws:
FMSException
-
addReportQuery
Method to add the report query batch operation to batchItemRequest- Parameters:
reportQuery
-bId
-
-
getBatchItemRequests
Gets batchItemRequests- Returns:
- batchItemRequests
-
getBIds
Gets bIds- Returns:
- bIds
-
isFault
Method to validate whether the batch item is fault for the given bId- Parameters:
bId
-- Returns:
- boolean
-
isReport
Method to validate whether the batch item is report for the given bId- Parameters:
bId
-- Returns:
- boolean
-
isQuery
Method to validate whether the batch item is query for the given bId- Parameters:
bId
-- Returns:
- boolean
-
isCDCQuery
Method to validate whether the batch item is cdc query for the given bId- Parameters:
bId
-- Returns:
- boolean
-
isEntity
Method to validate whether the batch item is entity for the given bId- Parameters:
bId
-- Returns:
- boolean
-
getFault
Method to get the fault object for the given bId- Parameters:
bId
-- Returns:
- boolean
-
getReport
Method to get the report object for the given bId- Parameters:
bId
-- Returns:
- Report
-
getQueryResponse
Method to get the query result object for the given bId- Parameters:
bId
-- Returns:
- QueryResult
-
getCDCQueryResult
Method to get the cdc query result object for the given bId- Parameters:
bId
-- Returns:
- CDCQueryResult
-
getEntity
Method to get the entity object for the given bId- Parameters:
bId
-- Returns:
- IEntity
-
getFaultResult
Gets faultResult list- Returns:
- faultResult
-
getReportResult
Gets reportResult list- Returns:
- reportResult
-
getQueryResult
Gets queryResult list- Returns:
- queryResult
-
getCDCQueryResult
Gets cdcQueryResult list- Returns:
- cdcQueryResult
-
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
-