|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.buildersenperformers.chydav.ChyWebdavStore
public class ChyWebdavStore
| Constructor Summary | |
|---|---|
ChyWebdavStore(File root)
|
|
| Method Summary | |
|---|---|
ITransaction |
begin(Principal principal)
Indicates that a new request or transaction with this store involved has been started. |
void |
checkAuthentication(ITransaction pArg0)
Checks if authentication information passed in is valid. |
void |
commit(ITransaction pArg0)
Indicates that all changes done inside this request shall be made permanent and any transactions, connections and other temporary resources shall be terminated. |
void |
createFolder(ITransaction pArg0,
String pArg1)
Creates a folder at the position specified by folderUri. |
void |
createResource(ITransaction pArg0,
String path)
Creates a content resource at the position specified by resourceUri. |
String[] |
getChildrenNames(ITransaction trx,
String path)
Gets the names of the children of the folder specified by folderUri. |
InputStream |
getResourceContent(ITransaction trx,
String path)
Gets the content of the resource specified by resourceUri. |
long |
getResourceLength(ITransaction pArg0,
String path)
Gets the length of the content resource specified by resourceUri. |
StoredObject |
getStoredObject(ITransaction trx,
String path)
Gets the storedObject specified by uri |
void |
removeObject(ITransaction pArg0,
String pArg1)
Removes the object specified by uri. |
void |
rollback(ITransaction pArg0)
Indicates that all changes done inside this request shall be undone and any transactions, connections and other temporary resources shall be terminated. |
long |
setResourceContent(ITransaction trx,
String uri,
InputStream content,
String contentType,
String characterEncoding)
Sets / stores the content of the resource specified by resourceUri. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChyWebdavStore(File root)
| Method Detail |
|---|
public ITransaction begin(Principal principal)
IWebdavStore#commit()
or #rollback(). If only non-read methods have been called, the
request will be terminated by a #commit(). This method will be
called by (@link WebdavStoreAdapter} at the beginning of each request.
begin in interface IWebdavStoreprincipal - the principal that started this request or null if
there is non availablepublic void checkAuthentication(ITransaction pArg0)
IWebdavStore
checkAuthentication in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transactionpublic void commit(ITransaction pArg0)
IWebdavStore
commit in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transaction
public void createFolder(ITransaction pArg0,
String pArg1)
IWebdavStorefolderUri.
createFolder in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transactionpArg1 - URI of the folder
public void createResource(ITransaction pArg0,
String path)
IWebdavStoreresourceUri.
createResource in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transactionpath - URI of the content resource
public String[] getChildrenNames(ITransaction trx,
String path)
IWebdavStorefolderUri.
getChildrenNames in interface IWebdavStoretrx - indicates that the method is within the scope of a WebDAV
transactionpath - URI of the folder
null if the
uri points to a file
public InputStream getResourceContent(ITransaction trx,
String path)
IWebdavStoreresourceUri.
getResourceContent in interface IWebdavStoretrx - indicates that the method is within the scope of a WebDAV
transactionpath - URI of the content resource
public long getResourceLength(ITransaction pArg0,
String path)
IWebdavStoreresourceUri.
getResourceLength in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transaction
-1 declares this
value as invalid and asks the adapter to try to set it from the
properties if possible
public StoredObject getStoredObject(ITransaction trx,
String path)
IWebdavStoreuri
getStoredObject in interface IWebdavStoretrx - indicates that the method is within the scope of a WebDAV
transactionpath - URI
public void removeObject(ITransaction pArg0,
String pArg1)
IWebdavStoreuri.
removeObject in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transactionpArg1 - URI of the object, i.e. content resource or folderpublic void rollback(ITransaction pArg0)
IWebdavStore
rollback in interface IWebdavStorepArg0 - indicates that the method is within the scope of a WebDAV
transaction
public long setResourceContent(ITransaction trx,
String uri,
InputStream content,
String contentType,
String characterEncoding)
IWebdavStoreresourceUri.
setResourceContent in interface IWebdavStoretrx - indicates that the method is within the scope of a WebDAV
transactionuri - URI of the resource where the content will be storedcontent - input stream from which the content will be read fromcontentType - content type of the resource or null if unknowncharacterEncoding - character encoding of the resource or null if unknown
or not applicable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||