public class Lock extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
Boolean |
allowAccessByAnyUser
Can lock be modified by users other than its creator?
|
String |
depth |
Boolean |
exclusive
Is lock exclusive?
|
String |
owner
Owner of the lock.
|
String |
path
Path.
|
Boolean |
recursive
Does lock apply to subfolders?
|
String |
scope |
Long |
timeout
Lock timeout in seconds
|
String |
token
Lock token.
|
String |
type |
Long |
userId
Lock creator user ID
|
String |
username
Lock creator username
|
| Constructor and Description |
|---|
Lock() |
Lock(HashMap<String,Object> parameters) |
Lock(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static Lock |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Lock |
create(String path,
HashMap<String,Object> parameters)
Parameters:
path (required) - string - Path
allow_access_by_any_user - boolean - Can lock be modified by users other than its creator?
|
static Lock |
create(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
delete()
Parameters:
token (required) - string - Lock token
|
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(String path,
HashMap<String,Object> parameters)
Parameters:
token (required) - string - Lock token
|
static void |
delete(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
void |
destroy(HashMap<String,Object> parameters) |
static void |
destroy(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<Lock> |
listFor()
Parameters:
cursor - string - Used for pagination.
|
static ListIterator<Lock> |
listFor(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<Lock> |
listFor(String path,
HashMap<String,Object> parameters) |
static ListIterator<Lock> |
listFor(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic String path
public Long timeout
public String depth
public Boolean recursive
public String owner
public String scope
public Boolean exclusive
public String token
public String type
public Boolean allowAccessByAnyUser
public Long userId
public String username
public void delete()
throws IOException
IOExceptionpublic void destroy(HashMap<String,Object> parameters) throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic static ListIterator<Lock> listFor() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Lock> listFor(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Lock> listFor(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Lock> listFor(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Lock create(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Lock create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Lock create(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.