public JSONArray getPagingQueryResponse ( ) throws HygieiaException { synchronized ( this . v1Service ) { Object obj = this . v1Service . executePassThroughQuery ( this . getPagingQuery ( ) ) ; if ( obj == null ) { throw new HygieiaException ( "FAILED: There was a problem parsing or casting JSON types from a message response" , HygieiaException . JSON_FORMAT_ERROR ) ; } if ( obj . toString ( ) . equalsIgnoreCase ( "{\"error\":\"Unauthorized\"}" ) ) { throw new HygieiaException ( "FAILED: There was a problem authenticating with VersionOne" , HygieiaException . INVALID_CONFIGURATION ) ; } return makeJsonOutputArray ( obj . toString ( ) ) ; } }
Runs the VersionOneConnection library tools against a given YAML - formatted query . This requires a pre - formatted paged query to run and will not perform the paging for you - there are other helper methods for this .