public class BoxSearch extends Object
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.
Constructor and Description |
---|
BoxSearch(BoxAPIConnection api)
Constructs a Search to be used by everything.
|
Modifier and Type | Method and Description |
---|---|
BoxAPIConnection |
getAPI()
Gets the API connection used by this resource.
|
PartialCollection<BoxItem.Info> |
searchRange(long offset,
long limit,
BoxSearchParameters bsp)
Searches all descendant folders using a given query and query parameters.
|
public BoxSearch(BoxAPIConnection api)
api
- the API connection to be used by the search.public PartialCollection<BoxItem.Info> searchRange(long offset, long limit, BoxSearchParameters bsp)
offset
- is the starting position.limit
- the number of search results CANNONT Exceed 1000.bsp
- containing query and advanced search capabilities.public BoxAPIConnection getAPI()