rename BlamePagingResult to BlameResult

This commit is contained in:
Sebastian Sdorra
2011-09-16 09:05:06 +02:00
parent 0e82fc1ffe
commit 668600b65d
8 changed files with 65 additions and 41 deletions

View File

@@ -52,14 +52,26 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "blame-paging")
@XmlAccessorType(XmlAccessType.FIELD)
public class BlamePagingResult
public class BlameResult
{
/**
* Constructs ...
*
*/
public BlamePagingResult() {}
public BlameResult() {}
/**
* Constructs ...
*
*
* @param blameLines
*/
public BlameResult(List<BlameLine> blameLines)
{
this.blameLines = blameLines;
this.total = blameLines.size();
}
/**
* Constructs ...
@@ -68,7 +80,7 @@ public class BlamePagingResult
* @param total
* @param blameLines
*/
public BlamePagingResult(int total, List<BlameLine> blameLines)
public BlameResult(int total, List<BlameLine> blameLines)
{
this.total = total;
this.blameLines = blameLines;
@@ -87,6 +99,19 @@ public class BlamePagingResult
return blameLines;
}
/**
* Method description
*
*
* @param i
*
* @return
*/
public BlameLine getLine(int i)
{
return blameLines.get(i);
}
/**
* Method description
*

View File

@@ -59,6 +59,6 @@ public interface BlameViewer
* @throws IOException
* @throws RepositoryException
*/
public BlamePagingResult getBlame(String revision, String path)
public BlameResult getBlame(String revision, String path)
throws IOException, RepositoryException;
}

View File

@@ -83,7 +83,7 @@ public class BlameViewerUtil extends CacheClearHook
{
this.repositoryManager = repositoryManager;
this.cache = cacheManager.getCache(BlameViewerCacheKey.class,
BlamePagingResult.class, CACHE_NAME);
BlameResult.class, CACHE_NAME);
init(repositoryManager, cache);
}
@@ -104,7 +104,7 @@ public class BlameViewerUtil extends CacheClearHook
* @throws NotSupportedFeatuerException
* @throws RepositoryException
*/
public BlamePagingResult getBlame(String repositoryId, String revision,
public BlameResult getBlame(String repositoryId, String revision,
String path)
throws RepositoryException, NotSupportedFeatuerException, IOException
{
@@ -136,7 +136,7 @@ public class BlameViewerUtil extends CacheClearHook
* @throws NotSupportedFeatuerException
* @throws RepositoryException
*/
public BlamePagingResult getBlame(Repository repository, String revision,
public BlameResult getBlame(Repository repository, String revision,
String path)
throws RepositoryException, NotSupportedFeatuerException, IOException
{
@@ -153,7 +153,7 @@ public class BlameViewerUtil extends CacheClearHook
BlameViewerCacheKey key = new BlameViewerCacheKey(repository.getId(),
revision, path);
BlamePagingResult result = cache.get(key);
BlameResult result = cache.get(key);
if (result == null)
{
@@ -285,7 +285,7 @@ public class BlameViewerUtil extends CacheClearHook
//~--- fields ---------------------------------------------------------------
/** Field description */
private Cache<BlameViewerCacheKey, BlamePagingResult> cache;
private Cache<BlameViewerCacheKey, BlameResult> cache;
/** Field description */
private RepositoryManager repositoryManager;