private AnnotationBulkDelete parseBulkDeleteQS ( final HttpQuery query ) { final AnnotationBulkDelete settings = new AnnotationBulkDelete ( ) ; settings . start_time = query . getRequiredQueryStringParam ( "start_time" ) ; settings . end_time = query . getQueryStringParam ( "end_time" ) ; if ( query . hasQueryStringParam ( "tsuids" ) ) { String [ ] tsuids = query . getQueryStringParam ( "tsuids" ) . split ( "," ) ; settings . tsuids = new ArrayList < String > ( tsuids . length ) ; for ( String tsuid : tsuids ) { settings . tsuids . add ( tsuid . trim ( ) ) ; } } if ( query . hasQueryStringParam ( "global" ) ) { settings . global = true ; } return settings ; }
Parses a query string for a bulk delet request