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.
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
SEARCH_URL_TEMPLATE
Search URL Template.
|
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.
|
PartialCollection<BoxSearchSharedLink> |
searchRangeIncludeSharedLinks(long offset,
long limit,
BoxSearchParameters bsp)
Searches all descendant folders using a given query and query parameters.
|
public static final URLTemplate SEARCH_URL_TEMPLATE
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 maximum number of items to return. The default is 30 and the maximum is 200.bsp
- containing query and advanced search capabilities.public PartialCollection<BoxSearchSharedLink> searchRangeIncludeSharedLinks(long offset, long limit, BoxSearchParameters bsp)
offset
- is the starting position.limit
- the maximum number of items to return. The default is 30 and the maximum is 200.bsp
- containing query and advanced search capabilities.public BoxAPIConnection getAPI()