public List<CDCQueryResult> executeCDCQuery(List<? extends IEntity> entities, String changedSince) throws FMSException {

        if (entities == null || entities.isEmpty()) {
            throw new FMSException("Entities is required.");
        }

        if (!StringUtils.hasText(changedSince)) {
            throw new FMSException("changedSince is required.");
        }

        IntuitMessage intuitMessage = prepareCDCQuery(entities, changedSince);

        // execute interceptors
        executeInterceptors(intuitMessage);

        List<CDCQueryResult> cdcQueryResults = null;

        // Iterate the IntuitObjects list in QueryResponse and convert to <T> entity
        IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().getResponse();
        if (intuitResponse != null) {
            List<CDCResponse> cdcResponses = intuitResponse.getCDCResponse();
            if (cdcResponses != null) {
                cdcQueryResults = getCDCQueryResult(cdcResponses);
            }
        }
        return cdcQueryResults;
    }
public List < CDCQueryResult > executeCDCQuery ( List < ? extends IEntity > entities , String changedSince ) throws FMSException { if ( entities == null || entities . isEmpty ( ) ) { throw new FMSException ( "Entities is required." ) ; } if ( ! StringUtils . hasText ( changedSince ) ) { throw new FMSException ( "changedSince is required." ) ; } IntuitMessage intuitMessage = prepareCDCQuery ( entities , changedSince ) ; executeInterceptors ( intuitMessage ) ; List < CDCQueryResult > cdcQueryResults = null ; IntuitResponse intuitResponse = ( IntuitResponse ) intuitMessage . getResponseElements ( ) . getResponse ( ) ; if ( intuitResponse != null ) { List < CDCResponse > cdcResponses = intuitResponse . getCDCResponse ( ) ; if ( cdcResponses != null ) { cdcQueryResults = getCDCQueryResult ( cdcResponses ) ; } } return cdcQueryResults ; }
Method to retrieve the list of records for the given entities whose last modified date is greater than the given changedSince date

@param entities the list of entities to be listed in the response
@param changedSince the date where the entities should be listed from the last changed date
@return the list of CDCQueryResult object
@throws FMSException throws FMSException