|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebdavService
Main interface of the Webdav Client component of the Hippo Repository Java Adapter.
| Method Summary | |
|---|---|
int |
executeCopy(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
Execute a webdav COPY. |
int |
executeDelete(DocumentPath targetPath)
Execute a webdav DELETE. |
int |
executeHead(DocumentPath targetPath)
Execure a webdav HEAD Checks if the path is available in the repository |
int |
executeMkCol(DocumentPath targetPath)
Execute a webdav MKCOL. |
int |
executeMkCols(DocumentPath targetPath)
Execute a recursive webdav MKCOL. |
int |
executeMove(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
Execute a webdav MOVE. |
RawResponse |
executePropfind(DocumentPath docPath)
Execute a webdav PROPFIND. |
int |
executePropPatch(DocumentPath targetPath,
Property[] propertiesToRemove,
Property[] propertiesToSet)
Execute a webdav PROPPATCH. |
int |
executePut(DocumentPath targetPath,
InputStream putObject)
Execute a webdav PUT. |
RawResponse |
executeSearch(DocumentPath targetPath,
InputStream dasl)
Execute a webdav SEARCH. |
RawResponse |
executeSearch(DocumentPath targetPath,
String dasl)
Execute a webdav SEARCH. |
DocumentCollection |
fetchCollection(DocumentPath targetPath,
InputStream dasl,
boolean includeContent)
Execute a DASL query and (optionally) get the content of all documents in the resultset. |
DocumentCollection |
fetchCollection(DocumentPath targetPath,
String dasl,
boolean includeContent)
Execute a DASL query and (optionally) get the content of all documents in the resultset. |
RawResponse |
fetchContent(DocumentPath docPath)
Fetch document content, this will do a webdav GET. |
RawResponse |
fetchContentById(String documentId)
Fetch the content of the document with the specied documentID. |
Document |
fetchDocument(DocumentPath docPath)
Fetch document content and metadata, this will do a webdav GET and a webdav PROPFIND. |
Document |
fetchDocumentById(String documentId)
Fetch the content and metadata of the document with the specied documentID. |
FacetCollection |
fetchFacets(DocumentPath targetPath,
InputStream dasl)
Execute a (Hippo proprietary) webdav FACETS and return the result as a FacetsCollection object structure. |
FacetCollection |
fetchFacets(DocumentPath targetPath,
String dasl)
Execute a (Hippo proprietary) webdav FACETS and return the result as a FacetsCollection object structure. |
DocumentMetadata |
fetchMetadata(DocumentPath docPath)
Fetch document metadata, this will do a webdav PROPFIND. |
DocumentMetadata |
fetchMetadataById(String documentId)
Fetch the metadata of the document with the specied documentID. |
DocumentPath |
getBasePath()
Create a DocumentPath pointing to the root node. |
boolean |
isDocumentIdEnabled()
Returns true if the documentId feature has been enabled. |
| Method Detail |
|---|
DocumentPath getBasePath()
Document fetchDocument(DocumentPath docPath)
throws ClientException
docPath - Path to the document in the repository
ClientException - If anything went wrong
RawResponse fetchContent(DocumentPath docPath)
throws ClientException
docPath - Path to a document in the repository
ClientException - If anything went wrong
DocumentMetadata fetchMetadata(DocumentPath docPath)
throws ClientException
docPath - Path to a document in the repository
ClientException - If anything went wrong
DocumentCollection fetchCollection(DocumentPath targetPath,
InputStream dasl,
boolean includeContent)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as an InputStream, see Using DASL Queries
for information about the DASL syntax.includeContent - If set to true a GET will be done to get the content for each document.
ClientException - If anything went wrong
DocumentCollection fetchCollection(DocumentPath targetPath,
String dasl,
boolean includeContent)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as a String, see Using DASL Queries
for information about the DASL syntax.includeContent - If set to true a GET will be done to get the content for each document.
ClientException - If anything went wrong
FacetCollection fetchFacets(DocumentPath targetPath,
InputStream dasl)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as an InputStream, see Using DASL Queries
for information about the DASL syntax.
ClientException - If anything went wrong
FacetCollection fetchFacets(DocumentPath targetPath,
String dasl)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as a String, see Using DASL Queries
for information about the DASL syntax.
ClientException - If anything went wrong
RawResponse executePropfind(DocumentPath docPath)
throws ClientException
docPath - Path to a document in the repository
ClientException - If anything went wrong
int executePut(DocumentPath targetPath,
InputStream putObject)
throws ClientException
targetPath - The path in the repository where to add the new documentputObject - An inputStream on the document to put
ClientException - If anything went wrong
int executeMkCol(DocumentPath targetPath)
throws ClientException
targetPath - The path in the repository where to add the new collection.
ClientException - If anything went wrong
int executeMkCols(DocumentPath targetPath)
throws ClientException
targetPath - The path in the repository where to add the new collection.
ClientException - If anything went wrong
int executeMove(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
throws ClientException
targetPath - The path in the repository which will be moved or renamed.destinationPath - The path in the repository to where the document or collection will be moved or renamed.overwrite - True if the destination may be overwritten, false otherwise.
ClientException - If anything went wrong
int executeCopy(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
throws ClientException
targetPath - The path in the repository which will be moved or renamed.destinationPath - The path in the repository to where the document or collection will be moved or renamed.overwrite - True if the destination may be overwritten, false otherwise.
ClientException - If anything went wrong
int executeDelete(DocumentPath targetPath)
throws ClientException
targetPath - The path in the repository to be deleted
ClientException - If anything went wrong
int executeHead(DocumentPath targetPath)
throws ClientException
targetPath - The path in the reposutory to be checked
ClientException - If anything went wrong
int executePropPatch(DocumentPath targetPath,
Property[] propertiesToRemove,
Property[] propertiesToSet)
throws ClientException
targetPath - The path in the repository to the document to updatepropertiesToRemove - An array of webdav properties to removepropertiesToSet - An array of webdav properties to set
ClientException - If anything went wrong
RawResponse executeSearch(DocumentPath targetPath,
InputStream dasl)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as an InputStream, see Using DASL Queries
for information about the DASL syntax.
ClientException - If anything went wrong
RawResponse executeSearch(DocumentPath targetPath,
String dasl)
throws ClientException
targetPath - The root path from which to run the querydasl - The DASL query as a String, see Using DASL Queries
for information about the DASL syntax.
ClientException - If anything went wrongboolean isDocumentIdEnabled()
Document fetchDocumentById(String documentId)
throws ClientException
documentId - A document Id
ClientException - If anything went wrong
DocumentMetadata fetchMetadataById(String documentId)
throws ClientException
documentId - A document Id
ClientException - If anything went wrong
RawResponse fetchContentById(String documentId)
throws ClientException
documentId - A document Id
ClientException - If anything went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||