public class PrimaryDataEntityResource extends Object implements io.milton.resource.PropFindableResource
| Modifier and Type | Field and Description |
|---|---|
protected ClientPrimaryDataEntity |
entity |
protected FileSystemHandler |
fileSystemHandler |
protected String |
path |
protected String |
username |
| Constructor and Description |
|---|
PrimaryDataEntityResource(String path,
FileSystemHandler fileSystemHandler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(String user,
String password) |
boolean |
authorise(io.milton.http.Request request,
io.milton.http.Request.Method method,
io.milton.http.Auth auth) |
String |
checkRedirect(io.milton.http.Request request) |
boolean |
exists()
Check if the resource represents an existing
ClientPrimaryDataEntity |
Date |
getCreateDate() |
ClientPrimaryDataEntity |
getEntity()
Returns an instance of ClientPrimaryDataEntity represented by this
Resource
|
Date |
getModifiedDate() |
String |
getName() |
String |
getRealm() |
String |
getUniqueId() |
boolean |
isDirectory()
Check if the
ClientPrimaryDataEntity represented by this
PrimaryDataEntityResource is a directory. |
protected ClientPrimaryDataEntity entity
protected FileSystemHandler fileSystemHandler
protected String path
protected String username
public PrimaryDataEntityResource(String path, FileSystemHandler fileSystemHandler) throws RemoteException, de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryException
RemoteExceptionde.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectoryExceptionpublic boolean exists()
ClientPrimaryDataEntityClientPrimaryDataEntityFileSystemHandler.getEntity(String)public boolean isDirectory()
ClientPrimaryDataEntity represented by this
PrimaryDataEntityResource is a directory.PrimaryDataEntityResource is a directory.public ClientPrimaryDataEntity getEntity()
public Object authenticate(String user, String password)
authenticate in interface io.milton.resource.Resourcepublic boolean authorise(io.milton.http.Request request,
io.milton.http.Request.Method method,
io.milton.http.Auth auth)
authorise in interface io.milton.resource.Resourcepublic String checkRedirect(io.milton.http.Request request)
checkRedirect in interface io.milton.resource.Resourcepublic Date getModifiedDate()
getModifiedDate in interface io.milton.resource.Resourcepublic String getName()
getName in interface io.milton.resource.Resourcepublic String getRealm()
getRealm in interface io.milton.resource.Resourcepublic String getUniqueId()
getUniqueId in interface io.milton.resource.Resourcepublic Date getCreateDate()
getCreateDate in interface io.milton.resource.PropFindableResourceCopyright © 2016 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.