private JsonArray formatBoxMetadataFilterRequest ( ) { JsonArray boxMetadataFilterRequestArray = new JsonArray ( ) ; JsonObject boxMetadataFilter = new JsonObject ( ) . add ( "templateKey" , this . metadataFilter . getTemplateKey ( ) ) . add ( "scope" , this . metadataFilter . getScope ( ) ) . add ( "filters" , this . metadataFilter . getFiltersList ( ) ) ; boxMetadataFilterRequestArray . add ( boxMetadataFilter ) ; return boxMetadataFilterRequestArray ; }
Add BoxMetaDataFilter to the JsonArray boxMetadataFilterRequestArray .