|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILocalStorageService
Service that provides the functionality for local storage of repositories.
| Method Summary | |
|---|---|
RepoFile |
getFile(AbstractRepository repo,
java.lang.String relativePath)
|
java.lang.String |
getLatestStoredRevision(AbstractRepository repo)
|
java.util.Collection<Revision> |
getRevisions(AbstractRepository repo,
java.lang.String startingRevision,
int maxRevisions)
|
void |
saveFileRevision(AbstractRepository repo,
RepoFileRevision rfr)
Saves an actual file that was part of the revision. |
void |
saveRevision(AbstractRepository repo,
Revision rev)
Saves the revision information for this repo / revision combo. |
| Method Detail |
|---|
java.lang.String getLatestStoredRevision(AbstractRepository repo)
throws StorageException
repo - The repo you need the revision for
StorageException - if there is an error retrieving itAbstractRepository.getNullRevisionDefault()
RepoFile getFile(AbstractRepository repo,
java.lang.String relativePath)
throws StorageException
repo - The repo you need the revision forrelativePath - The relative path of the file you need
StorageException - if there is an error retrieving it
void saveRevision(AbstractRepository repo,
Revision rev)
throws StorageException
IMPORTANT: This does NOT save the individual files that were part of this revision. You must do that separately.
repo - The repo that the revision applies torev - The revision to save
StorageException - if there is an error saving it
void saveFileRevision(AbstractRepository repo,
RepoFileRevision rfr)
throws StorageException
repo - The repo that the revision applies torfr - The revision to save
StorageException - if there is an error saving it
java.util.Collection<Revision> getRevisions(AbstractRepository repo,
java.lang.String startingRevision,
int maxRevisions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||