|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.repository.AbstractStructuredRepository org.figure8.join.services.repository.VFSRepository
public class VFSRepository
This is an implementation of Repository
using Jakarta VFS Commons.
Field Summary |
---|
Fields inherited from class org.figure8.join.services.repository.AbstractStructuredRepository |
---|
CATEGORY_PROPERTY, DEFAULT_STRUCTURE, ID_PROPERTY, RELEASE_PROPERTY, VERSION_PROPERTY |
Constructor Summary | |
---|---|
VFSRepository()
Creates a new instance of VFSRepository. |
Method Summary | |
---|---|
java.io.InputStream |
getArtifact(Artifact artifact)
Retrieve the input stream corresponding to a given Artifact. |
java.lang.String |
getBaseUrl()
Get the base url (string representation) of the physical repository to access |
void |
setBaseUrl(java.lang.String baseUrl)
Set the base url (string representation) of the physical repository to access |
void |
storeArtifact(Artifact artifact,
java.io.File content)
Store the content of a given Artifact within repository datastore. |
void |
storeArtifact(Artifact artifact,
java.io.InputStream is)
Store the content of a given Artifact within repository datastore using an input stream. |
Methods inherited from class org.figure8.join.services.repository.AbstractStructuredRepository |
---|
getStructureDefinition, getStructurePath, setStructureDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VFSRepository()
Method Detail |
---|
public java.lang.String getBaseUrl()
public void setBaseUrl(java.lang.String baseUrl)
baseUrl
- The base url of the repositorypublic java.io.InputStream getArtifact(Artifact artifact) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to retrieve
InputStream
on artifact content
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transferpublic void storeArtifact(Artifact artifact, java.io.File content) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to storecontent
- File representing artifact content (may be a directory)
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transferpublic void storeArtifact(Artifact artifact, java.io.InputStream is) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to storeis
- InputStream on artifact content
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transfer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |