mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
rename BlamePagingResult to BlameResult
This commit is contained in:
@@ -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
|
||||
*
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user