org.infinispan.demos.gridfs
Class GridStore
java.lang.Object
org.infinispan.demos.gridfs.GridStore
- All Implemented Interfaces:
- net.sf.webdav.IWebdavStore
public class GridStore
- extends Object
- implements net.sf.webdav.IWebdavStore
- Author:
- Bela Ban
Method Summary |
net.sf.webdav.ITransaction |
begin(Principal principal)
|
void |
checkAuthentication(net.sf.webdav.ITransaction transaction)
|
void |
commit(net.sf.webdav.ITransaction transaction)
|
void |
createFolder(net.sf.webdav.ITransaction transaction,
String uri)
|
void |
createResource(net.sf.webdav.ITransaction transaction,
String uri)
|
void |
destroy()
|
String[] |
getChildrenNames(net.sf.webdav.ITransaction transaction,
String uri)
|
InputStream |
getResourceContent(net.sf.webdav.ITransaction transaction,
String uri)
|
long |
getResourceLength(net.sf.webdav.ITransaction transaction,
String uri)
|
net.sf.webdav.StoredObject |
getStoredObject(net.sf.webdav.ITransaction transaction,
String uri)
|
void |
removeObject(net.sf.webdav.ITransaction transaction,
String uri)
|
void |
rollback(net.sf.webdav.ITransaction transaction)
|
long |
setResourceContent(net.sf.webdav.ITransaction transaction,
String uri,
InputStream is,
String contentType,
String characterEncoding)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridStore
public GridStore(File root)
destroy
public void destroy()
begin
public net.sf.webdav.ITransaction begin(Principal principal)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
begin
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
checkAuthentication
public void checkAuthentication(net.sf.webdav.ITransaction transaction)
throws SecurityException
- Specified by:
checkAuthentication
in interface net.sf.webdav.IWebdavStore
- Throws:
SecurityException
commit
public void commit(net.sf.webdav.ITransaction transaction)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
commit
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
rollback
public void rollback(net.sf.webdav.ITransaction transaction)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
rollback
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
createFolder
public void createFolder(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
createFolder
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
createResource
public void createResource(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
createResource
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
setResourceContent
public long setResourceContent(net.sf.webdav.ITransaction transaction,
String uri,
InputStream is,
String contentType,
String characterEncoding)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
setResourceContent
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
getChildrenNames
public String[] getChildrenNames(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
getChildrenNames
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
removeObject
public void removeObject(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
removeObject
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
getResourceContent
public InputStream getResourceContent(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
getResourceContent
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
getResourceLength
public long getResourceLength(net.sf.webdav.ITransaction transaction,
String uri)
throws net.sf.webdav.exceptions.WebdavException
- Specified by:
getResourceLength
in interface net.sf.webdav.IWebdavStore
- Throws:
net.sf.webdav.exceptions.WebdavException
getStoredObject
public net.sf.webdav.StoredObject getStoredObject(net.sf.webdav.ITransaction transaction,
String uri)
- Specified by:
getStoredObject
in interface net.sf.webdav.IWebdavStore
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.