@BoxResourceType(value="folder_lock") public class BoxFolderLock extends BoxResource
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 | Class and Description |
---|---|
class |
BoxFolderLock.Info
Contains information about a BoxFolderLock.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
DELETE_FOLDER_LOCK_URL_TEMPLATE
Delete Folder Locks URL Template.
|
Constructor and Description |
---|
BoxFolderLock(BoxAPIConnection api,
String id)
Constructs a BoxFolderLock with a given ID.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the lock on this folder.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate DELETE_FOLDER_LOCK_URL_TEMPLATE
public BoxFolderLock(BoxAPIConnection api, String id)
api
- the API connection to be used by the folder lock.id
- the ID of the folder lock.public void delete()