net.sf.vcaperture.model
Class ProcessedRepository

java.lang.Object
  extended by net.sf.vcaperture.model.AbstractRepository
      extended by net.sf.vcaperture.model.ProcessedRepository

public class ProcessedRepository
extends AbstractRepository

This represents a repository that has been processed by the tool. It provides completely local access to all of the information needed regarding the repository so that you can avoid the possibly large overhead of constantly contacting a repository that may be remote.

Author:
Jeremy Thomerson (jthomerson@users.sourceforge.net)

Field Summary
private  AbstractRepository mBackingRepository
           
 
Fields inherited from class net.sf.vcaperture.model.AbstractRepository
LOGGER
 
Constructor Summary
ProcessedRepository(AbstractRepository repo)
           
 
Method Summary
 RepoFile getFile(java.lang.String relativePath)
           
 java.lang.String getLatestRevision()
           
 java.util.Collection<Revision> getRevisions(java.lang.String startingRevision, int maxRevisions)
           
 ILocalStorageService getStorageService()
           
 boolean isRevisionNewer(java.lang.String name, java.lang.String startingRevision)
          Is revision name newer than startingRevision?
 
Methods inherited from class net.sf.vcaperture.model.AbstractRepository
copy, equals, getName, getNullRevisionDefault, getRootDirectory, getURL, hashCode, setName, setURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mBackingRepository

private final AbstractRepository mBackingRepository
Constructor Detail

ProcessedRepository

public ProcessedRepository(AbstractRepository repo)
Method Detail

isRevisionNewer

public boolean isRevisionNewer(java.lang.String name,
                               java.lang.String startingRevision)
Description copied from class: AbstractRepository
Is revision name newer than startingRevision?

Specified by:
isRevisionNewer in class AbstractRepository
Returns:
true if revision name is newer than startingRevision

getLatestRevision

public java.lang.String getLatestRevision()
Specified by:
getLatestRevision in class AbstractRepository

getRevisions

public java.util.Collection<Revision> getRevisions(java.lang.String startingRevision,
                                                   int maxRevisions)
Specified by:
getRevisions in class AbstractRepository

getFile

public RepoFile getFile(java.lang.String relativePath)
Specified by:
getFile in class AbstractRepository

getStorageService

public ILocalStorageService getStorageService()


Copyright © 2008. All Rights Reserved.