net.sf.statcvs.model

Class Author

Implemented Interfaces:
Comparable

public class Author
extends Object
implements Comparable

Represents an author of one or more Revisions in a repository. TODO: Rename to Login
Version:
$Id: Author.java,v 1.14 2008/04/02 11:22:16 benoitx Exp $
Author:
Richard Cyganiak

Constructor Summary

Author(String name)
Creates a new author.

Method Summary

protected void
addRevision(Revision revision)
Adds a revision for this author; called by Revision constructor
int
compareTo(Object o)
Compares the instance to another author, using their login names.
SortedSet
getDirectories()
Returns all Directorys the author has committed a change to, sorted by name.
String
getEmail()
String
getHomePageUrl()
String
getImageUrl()
String
getName()
Returns the author's login name.
String
getRealName()
SortedSet
getRevisions()
Returns all Revisions of this author, sorted from oldest to most recent.
void
setEmail(String email)
void
setHomePageUrl(String homePageUrl)
void
setImageUrl(String imageUrl)
void
setRealName(String realName)
String
toString()

Constructor Details

Author

public Author(String name)
Creates a new author.
Parameters:
name - the author's login name

Method Details

addRevision

protected void addRevision(Revision revision)
Adds a revision for this author; called by Revision constructor
Parameters:
revision - a revision committed by this author

compareTo

public int compareTo(Object o)
Compares the instance to another author, using their login names.

getDirectories

public SortedSet getDirectories()
Returns all Directorys the author has committed a change to, sorted by name.
Returns:
a set of Directory objects

getEmail

public String getEmail()

getHomePageUrl

public String getHomePageUrl()

getImageUrl

public String getImageUrl()

getName

public String getName()
Returns the author's login name.
Returns:
the author's login name

getRealName

public String getRealName()

getRevisions

public SortedSet getRevisions()
Returns all Revisions of this author, sorted from oldest to most recent.
Returns:
all revisions of this author

setEmail

public void setEmail(String email)

setHomePageUrl

public void setHomePageUrl(String homePageUrl)

setImageUrl

public void setImageUrl(String imageUrl)

setRealName

public void setRealName(String realName)

toString

public String toString()