|
||||||||||
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.SimpleFileSystemRepository
public class SimpleFileSystemRepository
This is a simple implementation of a Repository
using the local
file system as a storage area for Artifact
s.
This implementation defines the following properties :
Field Summary |
---|
Fields inherited from class org.figure8.join.services.repository.AbstractStructuredRepository |
---|
CATEGORY_PROPERTY, DEFAULT_STRUCTURE, ID_PROPERTY, RELEASE_PROPERTY, VERSION_PROPERTY |
Constructor Summary | |
---|---|
SimpleFileSystemRepository()
Creates a new instance of SimpleFileSystemRepository. |
Method Summary | |
---|---|
java.io.InputStream |
getArtifact(Artifact artifact)
Retrieve the input stream corresponding to a given Artifact. |
java.lang.String |
getRootDirectory()
|
void |
setRootDirectory(java.lang.String root)
Sets the path to root of the file system repository. |
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 SimpleFileSystemRepository()
Method Detail |
---|
public void setRootDirectory(java.lang.String root) throws InvalidParameterException
root
- Path to the file system repository
InvalidParameterException
- if root is null or not a valid directorypublic java.lang.String getRootDirectory()
public 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 |