|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public String getContentString(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
public InputStream getContentStream(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
public Document getContentDOM(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
public 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
public 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
public 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
public boolean createResource(String uri, String content) throws ProcessingException
uri
- the uri of the resource.content
- the content to initialize the resource with.
ProcessingException
public 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
public 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
public boolean remove(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
public boolean exists(String uri) throws ProcessingException
uri
- the uri of the document.
ProcessingException
public 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
public RepositoryPropertyHelper getPropertyHelper()
public RepositoryTransactionHelper getTransactionHelper()
public RepositoryVersioningHelper getVersioningHelper()
public CredentialsToken getCredentials()
public 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 |