|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
A repository interface intended to be used by flowscripts or corresponding wrapper components.
Method Summary | |
---|---|
boolean |
copy(String uri,
String dest,
boolean recurse,
boolean overwrite)
copy a resource |
boolean |
createResource(String uri,
String content)
create a new resource |
boolean |
exists(String uri)
checks wether resource exists |
Document |
getContentDOM(String uri)
get content as DOM |
InputStream |
getContentStream(String uri)
get content as Stream |
String |
getContentString(String uri)
get content as String |
CredentialsToken |
getCredentials()
get the credentials used against the repository |
RepositoryPropertyHelper |
getPropertyHelper()
get a property helper |
RepositoryTransactionHelper |
getTransactionHelper()
get a transaction helper |
RepositoryVersioningHelper |
getVersioningHelper()
get a versioning helper |
boolean |
makeCollection(String uri,
boolean recursive)
make collection |
boolean |
move(String uri,
String dest,
boolean recurse,
boolean overwrite)
move a resource |
boolean |
remove(String uri)
remove resource |
boolean |
saveContent(String uri,
Node node)
save content |
boolean |
saveContent(String uri,
Source source)
save content |
boolean |
saveContent(String uri,
String content)
save content |
void |
setCredentials(CredentialsToken credentials)
set the credentials to be used against the repository |
Method Detail |
---|
String getContentString(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
InputStream getContentStream(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
Document getContentDOM(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
boolean saveContent(String uri, String content) throws ProcessingException
uri
- the uri of the resource.content
- the to be saved content given as a String.
ProcessingException
boolean saveContent(String uri, Node node) throws ProcessingException
uri
- the uri of the resource.node
- the to be saved content given as a W3C Node object.
ProcessingException
boolean saveContent(String uri, Source source) throws ProcessingException
uri
- the uri of the resource.source
- the to be saved content given as a Excalibur Source object.
ProcessingException
boolean createResource(String uri, String content) throws ProcessingException
uri
- the uri of the resource.content
- the content to initialize the resource with.
ProcessingException
boolean copy(String uri, String dest, boolean recurse, boolean overwrite) throws ProcessingException
uri
- the uri of the resource.dest
- the destination of the copy.recurse
- if true recursively creates parent collections if not existantoverwrite
- whether to overwrite the destination if it exists.
ProcessingException
boolean move(String uri, String dest, boolean recurse, boolean overwrite) throws ProcessingException
uri
- the uri of the resource.dest
- the destination of the move.recurse
- if true recursively creates parent collections if not existantoverwrite
- whether to overwrite the destination if it exists.
ProcessingException
boolean remove(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
boolean exists(String uri) throws ProcessingException
uri
- the uri of the document.
ProcessingException
boolean makeCollection(String uri, boolean recursive) throws ProcessingException
uri
- the uri of the collection.recursive
- a boolean indicating wether
the operation should fail if the parent
collection does not exist or wether the
complete path should be created.
ProcessingException
RepositoryPropertyHelper getPropertyHelper()
RepositoryTransactionHelper getTransactionHelper()
RepositoryVersioningHelper getVersioningHelper()
CredentialsToken getCredentials()
void setCredentials(CredentialsToken credentials)
credentials
- the credentials to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |