E - type of BoxItem to be returned in the response.R - type of BoxRequest being created.public abstract class BoxRequestUpdateSharedItem<E extends BoxItem,R extends BoxRequest<E,R>> extends BoxRequestItemUpdate<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Modifier | Constructor and Description |
|---|---|
protected |
BoxRequestUpdateSharedItem(BoxRequestItemUpdate r) |
|
BoxRequestUpdateSharedItem(java.lang.Class<E> clazz,
java.lang.String id,
java.lang.String requestUrl,
BoxSession session) |
| Modifier and Type | Method and Description |
|---|---|
BoxSharedLink.Access |
getAccess()
Gets the shared link access currently set for the item in the request.
|
protected java.lang.Boolean |
getCanDownload()
Returns the value for whether the shared link allows downloads currently set in the request.
|
java.lang.String |
getPassword()
Returns the shared link password currently set in the request.
|
java.util.Date |
getUnsharedAt()
Returns the date the link will be disabled at currently set in the request.
|
R |
setAccess(BoxSharedLink.Access access)
Sets the shared link access for the item in the request.
|
protected R |
setCanDownload(boolean canDownload)
Sets whether the shared link allows downloads in the request.
|
R |
setPassword(java.lang.String password)
Sets the shared link password in the request.
|
R |
setRemoveUnsharedAtDate()
Removes an unshared at date that is set on this item.
|
R |
setUnsharedAt(java.util.Date unsharedAt)
Sets the date that this shared link will be deactivated.
|
BoxRequestUpdateSharedItem |
updateSharedLink()
Converts the BoxRequestItemUpdate into a BoxRequestUpdateSharedItem.
|
getDescription, getIfMatchEtag, getName, getParentId, getSharedLink, getTags, parseHashMapEntry, setDescription, setIfMatchEtag, setName, setParentId, setSharedLink, setTagsgetId, onSendCompleted, setFieldsbuildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestUpdateSharedItem(java.lang.Class<E> clazz, java.lang.String id, java.lang.String requestUrl, BoxSession session)
protected BoxRequestUpdateSharedItem(BoxRequestItemUpdate r)
public BoxSharedLink.Access getAccess()
public R setAccess(BoxSharedLink.Access access)
access - new shared link access for the item.public java.util.Date getUnsharedAt()
public R setUnsharedAt(java.util.Date unsharedAt) throws java.text.ParseException
unsharedAt - the date that this shared link will be deactivated.java.text.ParseException - thrown if date provided cannot be properly parsed.public R setRemoveUnsharedAtDate() throws java.text.ParseException
java.text.ParseException - thrown if date provided cannot be properly parsed.public java.lang.String getPassword()
public R setPassword(java.lang.String password)
password - new password for the shared link, or null to remove the password.protected java.lang.Boolean getCanDownload()
protected R setCanDownload(boolean canDownload)
canDownload - new value for whether the shared link allows downloads.public BoxRequestUpdateSharedItem updateSharedLink()
BoxRequestItemUpdateupdateSharedLink in class BoxRequestItemUpdate<E extends BoxItem,R extends BoxRequest<E,R>>