public static class BoxRequestsFile.PromoteFileVersion extends BoxRequestItem<BoxFileVersion,BoxRequestsFile.PromoteFileVersion>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactorymHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
PromoteFileVersion(java.lang.String id,
java.lang.String versionId,
java.lang.String requestUrl,
BoxSession session)
Creates a promote file version request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onSendCompleted(BoxResponse<BoxFileVersion> response)
Post action that will be performed after a successful send occurs.
|
BoxRequestsFile.PromoteFileVersion |
setVersionId(java.lang.String versionId)
Sets the id of the version to promote.
|
addRepresentationHintGroup, createHeaderMap, getId, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic PromoteFileVersion(java.lang.String id,
java.lang.String versionId,
java.lang.String requestUrl,
BoxSession session)
id - id of the file to promote a version ofversionId - id of the version to promote to the toprequestUrl - URL of the promote file version endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFile.PromoteFileVersion setVersionId(java.lang.String versionId)
versionId - id of the version to promote.protected void onSendCompleted(BoxResponse<BoxFileVersion> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequestItem<BoxFileVersion,BoxRequestsFile.PromoteFileVersion>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.