public class BoxWebLinksManagerImpl extends BoxItemsManagerImpl implements IBoxWebLinksManager
| Constructor and Description |
|---|
BoxWebLinksManagerImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxWebLink |
copyWebLink(java.lang.String webLinkId,
BoxItemCopyRequestObject requestObject)
Copy a web link.
|
BoxWebLink |
createSharedLink(java.lang.String webLinkId,
BoxSharedLinkRequestObject requestObject)
Create a shared link for a web link, given the id of the web link.
|
void |
deleteWebLink(java.lang.String webLinkId,
BoxDefaultRequestObject requestObject)
Delete a web link.
|
BoxWebLink |
getWebLink(java.lang.String webLinkId,
BoxDefaultRequestObject requestObject)
Get web link given a web link id.
|
BoxWebLink |
updateWebLinkInfo(java.lang.String webLinkId,
BoxWebLinkRequestObject requestObject)
Update info for a web link.
|
copyItem, createSharedLink, getItem, updateItemInfoexecuteRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxWebLinksManagerImpl(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRequestAuth auth, IBoxRESTClient restClient)
config - BoxConfigresourceHub - resource hubparser - json parserauth - auth for api callsrestClient - REST client to make api calls.public BoxWebLink getWebLink(java.lang.String webLinkId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxWebLinksManagergetWebLink in interface IBoxWebLinksManagerwebLinkId - id of the web linkrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public void deleteWebLink(java.lang.String webLinkId,
BoxDefaultRequestObject requestObject)
throws BoxRestException,
BoxServerException,
AuthFatalFailureException
IBoxWebLinksManagerdeleteWebLink in interface IBoxWebLinksManagerwebLinkId - id of the web linkrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxWebLink copyWebLink(java.lang.String webLinkId, BoxItemCopyRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxWebLinksManagercopyWebLink in interface IBoxWebLinksManagerwebLinkId - id of the web linkrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxWebLink updateWebLinkInfo(java.lang.String webLinkId, BoxWebLinkRequestObject requestObject) throws java.io.UnsupportedEncodingException, BoxRestException, BoxServerException, AuthFatalFailureException
IBoxWebLinksManagerupdateWebLinkInfo in interface IBoxWebLinksManagerwebLinkId - id of the web linkrequestObject - request objectjava.io.UnsupportedEncodingException - exceptionBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxWebLink createSharedLink(java.lang.String webLinkId, BoxSharedLinkRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxWebLinksManagercreateSharedLink in interface IBoxWebLinksManagerwebLinkId - id of the web linkrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.