Method Summary |
|
boolean | copy(String uri, String dest, boolean recurse, boolean overwrite) copy a resource
Parameters: uri - the uri of the resource. Parameters: dest - the destination of the copy. Parameters: recurse - if true recursively creates parent collections if not existant Parameters: overwrite - whether to overwrite the destination if it exists. |
boolean | createResource(String uri, String content) create a new resource
Parameters: uri - the uri of the resource. Parameters: content - the content to initialize the resource with. |
public boolean | exists(String uri) checks wether resource exists
Parameters: uri - the uri of the document. |
Document | getContentDOM(String uri) get content as DOM
Parameters: uri - the uri of the resource. |
InputStream | getContentStream(String uri) get content as Stream
Parameters: uri - the uri of the resource. |
String | getContentString(String uri) get content as String
Parameters: uri - the uri of the resource. |
CredentialsToken | getCredentials() |
RepositoryPropertyHelper | getPropertyHelper() |
RepositoryTransactionHelper | getTransactionHelper() |
RepositoryVersioningHelper | getVersioningHelper() |
boolean | makeCollection(String uri, boolean recursive) make collection
Parameters: uri - the uri of the collection. Parameters: recursive - a boolean indicating wetherthe operation should fail if the parentcollection does not exist or wether thecomplete path should be created. |
boolean | move(String uri, String dest, boolean recurse, boolean overwrite) move a resource
Parameters: uri - the uri of the resource. Parameters: dest - the destination of the move. Parameters: recurse - if true recursively creates parent collections if not existant Parameters: overwrite - whether to overwrite the destination if it exists. |
boolean | remove(String uri) remove resource
Parameters: uri - the uri of the resource. |
boolean | saveContent(String uri, String content) save content
Parameters: uri - the uri of the resource. Parameters: content - the to be saved content given as a String. |
boolean | saveContent(String uri, Node node) save content
Parameters: uri - the uri of the resource. Parameters: node - the to be saved content given as a W3C Node object. |
boolean | saveContent(String uri, Source source) save content
Parameters: uri - the uri of the resource. Parameters: source - the to be saved content given as a Excalibur Source object. |
void | setCredentials(CredentialsToken credentials) |