public class BoxSearchSharedLink extends BoxJSONObject
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 |
---|
BoxSearchSharedLink(JsonObject jsonObject,
BoxAPIConnection api)
Construct a BoxRecentItem.
|
Modifier and Type | Method and Description |
---|---|
URL |
getAccessibleViaSharedLink()
Get the optional shared link through which the user has access to this item.
|
BoxItem.Info |
getItem()
Get the item which was interacted with.
|
String |
getType()
Get item type.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxSearchSharedLink(JsonObject jsonObject, BoxAPIConnection api)
jsonObject
- the parsed JSON object.api
- the API connection to be used to fetch interacted itemprotected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
member
- the JSON member to be parsed.public BoxItem.Info getItem()
public URL getAccessibleViaSharedLink()