hu.midori.kosmos.model
Class SvnRepository

java.lang.Object
  extended by hu.midori.kosmos.model.Identified
      extended by hu.midori.kosmos.model.SvnRepository

public class SvnRepository
extends Identified

Wraps a Subversion repository.

Version:
$Id$
Author:
Aron Gombas

Field Summary
 java.util.List<ScmRepositoryChange> commits
          Full history of the commits in reversed order.
 
Constructor Summary
SvnRepository()
          By design this should be private to avoid instantiation without discriminator, but Hessian needs default ctor.
SvnRepository(java.lang.String location, long revision, java.util.Date createdDate, java.util.List<ScmRepositoryChange> commits, int commitsTotal, int commitsToday, int commitsLast7Days, int commitsLast31Days, int committersTotal, int committersToday, int committersLast7Days, int committersLast31Days, ZoomableImageLocator filesPerFileTypeChartLocator, ZoomableImageLocator commitsPerAuthorChartLocator, ZoomableImageLocator commitsPerFileChartLocator, ZoomableImageLocator commitsPerWeekChartLocator, ZoomableImageLocator repoEntriesPerWeekChartLocator, int dirs, int files, int totalFileSize, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> filesPerFileType, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> commitsPerAuthor, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> commitsPerFile)
           
 
Method Summary
 double getActivity()
          Returns a calculated activity percentage in the range [0.0, 1.0].
 long getAge()
          Returns its age in milliseconds.
 java.util.List<ScmRepositoryChange> getCommits()
           
 int getCommitsLast31Days()
           
 int getCommitsLast7Days()
           
 java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getCommitsPerAuthor()
           
 ZoomableImageLocator getCommitsPerAuthorChartLocator()
           
 java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getCommitsPerFile()
           
 ZoomableImageLocator getCommitsPerFileChartLocator()
           
 ZoomableImageLocator getCommitsPerWeekChartLocator()
           
 int getCommitsToday()
           
 int getCommitsTotal()
           
 int getCommittersLast31Days()
           
 int getCommittersLast7Days()
           
 int getCommittersToday()
           
 int getCommittersTotal()
           
 java.util.Date getCreatedDate()
           
 int getDirs()
           
 int getFiles()
           
 java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getFilesPerFileType()
           
 ZoomableImageLocator getFilesPerFileTypeChartLocator()
           
 long getLatestTouchAge()
          Returns the age of its latest touch in milliseconds.
 long getLatestTouchAgeInDays()
          Returns the age of its latest touch in days.
 java.lang.String getLocation()
           
 ZoomableImageLocator getRepoEntriesPerWeekChartLocator()
           
 long getRevision()
           
 int getTotalFileSize()
           
 java.lang.String toString()
           
 
Methods inherited from class hu.midori.kosmos.model.Identified
getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commits

public java.util.List<ScmRepositoryChange> commits
Full history of the commits in reversed order.

Constructor Detail

SvnRepository

public SvnRepository()
By design this should be private to avoid instantiation without discriminator, but Hessian needs default ctor.


SvnRepository

public SvnRepository(java.lang.String location,
                     long revision,
                     java.util.Date createdDate,
                     java.util.List<ScmRepositoryChange> commits,
                     int commitsTotal,
                     int commitsToday,
                     int commitsLast7Days,
                     int commitsLast31Days,
                     int committersTotal,
                     int committersToday,
                     int committersLast7Days,
                     int committersLast31Days,
                     ZoomableImageLocator filesPerFileTypeChartLocator,
                     ZoomableImageLocator commitsPerAuthorChartLocator,
                     ZoomableImageLocator commitsPerFileChartLocator,
                     ZoomableImageLocator commitsPerWeekChartLocator,
                     ZoomableImageLocator repoEntriesPerWeekChartLocator,
                     int dirs,
                     int files,
                     int totalFileSize,
                     java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> filesPerFileType,
                     java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> commitsPerAuthor,
                     java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> commitsPerFile)
Method Detail

getLocation

public java.lang.String getLocation()

getRevision

public long getRevision()

getCreatedDate

public java.util.Date getCreatedDate()

getCommits

public java.util.List<ScmRepositoryChange> getCommits()

getCommitsTotal

public int getCommitsTotal()

getCommitsToday

public int getCommitsToday()

getCommitsLast7Days

public int getCommitsLast7Days()

getCommitsLast31Days

public int getCommitsLast31Days()

getCommittersTotal

public int getCommittersTotal()

getCommittersToday

public int getCommittersToday()

getCommittersLast7Days

public int getCommittersLast7Days()

getCommittersLast31Days

public int getCommittersLast31Days()

getFilesPerFileTypeChartLocator

public ZoomableImageLocator getFilesPerFileTypeChartLocator()

getCommitsPerAuthorChartLocator

public ZoomableImageLocator getCommitsPerAuthorChartLocator()

getCommitsPerFileChartLocator

public ZoomableImageLocator getCommitsPerFileChartLocator()

getCommitsPerWeekChartLocator

public ZoomableImageLocator getCommitsPerWeekChartLocator()

getRepoEntriesPerWeekChartLocator

public ZoomableImageLocator getRepoEntriesPerWeekChartLocator()

getDirs

public int getDirs()

getFiles

public int getFiles()

getTotalFileSize

public int getTotalFileSize()

getFilesPerFileType

public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getFilesPerFileType()

getCommitsPerAuthor

public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getCommitsPerAuthor()

getCommitsPerFile

public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getCommitsPerFile()

getAge

public long getAge()
Returns its age in milliseconds.


getLatestTouchAge

public long getLatestTouchAge()
Returns the age of its latest touch in milliseconds.


getLatestTouchAgeInDays

public long getLatestTouchAgeInDays()
Returns the age of its latest touch in days.


getActivity

public double getActivity()
Returns a calculated activity percentage in the range [0.0, 1.0].


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object