public Iterable < BoxFileVersionLegalHold . Info > getFileVersionHolds ( int limit , String ... fields ) { QueryStringBuilder queryString = new QueryStringBuilder ( ) . appendParam ( "policy_id" , this . getID ( ) ) ; if ( fields . length > 0 ) { queryString . appendParam ( "fields" , fields ) ; } URL url = LIST_OF_FILE_VERSION_HOLDS_URL_TEMPLATE . buildWithQuery ( getAPI ( ) . getBaseURL ( ) , queryString . toString ( ) ) ; return new BoxResourceIterable < BoxFileVersionLegalHold . Info > ( getAPI ( ) , url , limit ) { @ Override protected BoxFileVersionLegalHold . Info factory ( JsonObject jsonObject ) { BoxFileVersionLegalHold assignment = new BoxFileVersionLegalHold ( getAPI ( ) , jsonObject . get ( "id" ) . asString ( ) ) ; return assignment . new Info ( jsonObject ) ; } } ; }
Returns iterable with all non - deleted file version legal holds for this legal hold policy .