public abstract class FsResource extends Object implements Resource, MoveableResource, CopyableResource, LockableResource, DigestResource
| Constructor and Description |
|---|
FsResource(String host,
FileSystemResourceFactory factory,
File file) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(DigestResponse digestRequest) |
Object |
authenticate(String user,
String password) |
boolean |
authorise(Request request,
Request.Method method,
Auth auth) |
int |
compareTo(Resource o) |
void |
copyTo(CollectionResource newParent,
String newName) |
void |
delete() |
protected abstract void |
doCopy(File dest) |
Date |
getCreateDate() |
LockToken |
getCurrentLock() |
File |
getFile() |
Date |
getModifiedDate() |
String |
getName() |
String |
getRealm() |
String |
getUniqueId() |
boolean |
isDigestAllowed() |
LockResult |
lock(LockTimeout timeout,
LockInfo lockInfo) |
void |
moveTo(CollectionResource newParent,
String newName) |
LockResult |
refreshLock(String token,
LockTimeout timeout) |
void |
unlock(String tokenId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckRedirectpublic FsResource(String host, FileSystemResourceFactory factory, File file)
protected abstract void doCopy(File dest) throws NotAuthorizedException
NotAuthorizedExceptionpublic File getFile()
public String getUniqueId()
getUniqueId in interface Resourcepublic Object authenticate(String user, String password)
authenticate in interface Resourcepublic Object authenticate(DigestResponse digestRequest)
authenticate in interface DigestResourcepublic boolean isDigestAllowed()
isDigestAllowed in interface DigestResourcepublic boolean authorise(Request request, Request.Method method, Auth auth)
public Date getModifiedDate()
getModifiedDate in interface Resourcepublic Date getCreateDate()
public int compareTo(Resource o)
public void moveTo(CollectionResource newParent, String newName)
moveTo in interface MoveableResourcepublic void copyTo(CollectionResource newParent, String newName) throws NotAuthorizedException
copyTo in interface CopyableResourceNotAuthorizedExceptionpublic void delete()
public LockResult lock(LockTimeout timeout, LockInfo lockInfo) throws NotAuthorizedException
lock in interface LockableResourceNotAuthorizedExceptionpublic LockResult refreshLock(String token, LockTimeout timeout) throws NotAuthorizedException
refreshLock in interface LockableResourceNotAuthorizedExceptionpublic void unlock(String tokenId) throws NotAuthorizedException
unlock in interface LockableResourceNotAuthorizedExceptionpublic LockToken getCurrentLock()
getCurrentLock in interface LockableResourceCopyright © 2021 McEvoy Software Ltd. All rights reserved.