|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.hippo.client.api.service.NOPWebdavService
public class NOPWebdavService
Convenience NOP implementation of the WebdavService
| Constructor Summary | |
|---|---|
NOPWebdavService()
|
|
| 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 path)
Execute a webdav PROPFIND. |
int |
executePropPatch(DocumentPath targetPath,
Property[] propertiesToRemove,
Property[] propertiesToSet)
Execute a webdav PROPPATCH. |
int |
executePut(DocumentPath path,
InputStream putObject)
Execute a webdav PUT. |
RawResponse |
executeSearch(DocumentPath path,
InputStream dasl)
Execute a webdav SEARCH. |
RawResponse |
executeSearch(DocumentPath path,
String dasl)
Execute a webdav SEARCH. |
DocumentCollection |
fetchCollection(DocumentPath path,
InputStream dasl,
boolean includeContent)
Execute a DASL query and (optionally) get the content of all documents in the resultset. |
DocumentCollection |
fetchCollection(DocumentPath path,
String dasl,
boolean includeContent)
Execute a DASL query and (optionally) get the content of all documents in the resultset. |
RawResponse |
fetchContent(DocumentPath path)
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 path)
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 path)
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOPWebdavService()
| Method Detail |
|---|
public DocumentPath getBasePath()
WebdavService
getBasePath in interface WebdavServicepublic boolean isDocumentIdEnabled()
WebdavService
isDocumentIdEnabled in interface WebdavService
public Document fetchDocument(DocumentPath path)
throws ClientException
WebdavService
fetchDocument in interface WebdavServicepath - Path to the document in the repository
ClientException - If anything went wrong
public Document fetchDocumentById(String documentId)
throws ClientException
WebdavService
fetchDocumentById in interface WebdavServicedocumentId - A document Id
ClientException - If anything went wrong
public RawResponse fetchContent(DocumentPath path)
throws ClientException
WebdavService
fetchContent in interface WebdavServicepath - Path to a document in the repository
ClientException - If anything went wrong
public RawResponse fetchContentById(String documentId)
throws ClientException
WebdavService
fetchContentById in interface WebdavServicedocumentId - A document Id
ClientException - If anything went wrong
public DocumentMetadata fetchMetadata(DocumentPath path)
throws ClientException
WebdavService
fetchMetadata in interface WebdavServicepath - Path to a document in the repository
ClientException - If anything went wrong
public DocumentMetadata fetchMetadataById(String documentId)
throws ClientException
WebdavService
fetchMetadataById in interface WebdavServicedocumentId - A document Id
ClientException - If anything went wrong
public DocumentCollection fetchCollection(DocumentPath path,
InputStream dasl,
boolean includeContent)
throws ClientException
WebdavService
fetchCollection in interface WebdavServicepath - 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
public DocumentCollection fetchCollection(DocumentPath path,
String dasl,
boolean includeContent)
throws ClientException
WebdavService
fetchCollection in interface WebdavServicepath - 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
public FacetCollection fetchFacets(DocumentPath targetPath,
InputStream dasl)
throws ClientException
WebdavService
fetchFacets in interface WebdavServicetargetPath - 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
public FacetCollection fetchFacets(DocumentPath targetPath,
String dasl)
throws ClientException
WebdavService
fetchFacets in interface WebdavServicetargetPath - 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
public RawResponse executePropfind(DocumentPath path)
throws ClientException
WebdavService
executePropfind in interface WebdavServicepath - Path to a document in the repository
ClientException - If anything went wrong
public RawResponse executeSearch(DocumentPath path,
InputStream dasl)
throws ClientException
WebdavService
executeSearch in interface WebdavServicepath - 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
public RawResponse executeSearch(DocumentPath path,
String dasl)
throws ClientException
WebdavService
executeSearch in interface WebdavServicepath - 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
public int executePut(DocumentPath path,
InputStream putObject)
throws ClientException
WebdavService
executePut in interface WebdavServicepath - The path in the repository where to add the new documentputObject - An inputStream on the document to put
ClientException - If anything went wrong
public int executePropPatch(DocumentPath targetPath,
Property[] propertiesToRemove,
Property[] propertiesToSet)
throws ClientException
WebdavService
executePropPatch in interface WebdavServicetargetPath - 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
public int executeDelete(DocumentPath targetPath)
throws ClientException
WebdavService
executeDelete in interface WebdavServicetargetPath - The path in the repository to be deleted
ClientException - If anything went wrong
public int executeMkCol(DocumentPath targetPath)
throws ClientException
WebdavService
executeMkCol in interface WebdavServicetargetPath - The path in the repository where to add the new collection.
ClientException - If anything went wrong
public int executeMkCols(DocumentPath targetPath)
throws ClientException
WebdavService
executeMkCols in interface WebdavServicetargetPath - The path in the repository where to add the new collection.
ClientException - If anything went wrong
public int executeHead(DocumentPath targetPath)
throws ClientException
WebdavService
executeHead in interface WebdavServicetargetPath - The path in the reposutory to be checked
ClientException - If anything went wrong
public int executeMove(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
throws ClientException
WebdavService
executeMove in interface WebdavServicetargetPath - 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
public int executeCopy(DocumentPath targetPath,
DocumentPath destinationPath,
boolean overwrite)
throws ClientException
WebdavService
executeCopy in interface WebdavServicetargetPath - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||