net.sf.statcvs.model
public class Author extends Object implements Comparable
Revision
s in a repository.
TODO: Rename to LoginConstructor and Description |
---|
Author(String name)
Creates a new author.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
equals(Object rhs) |
SortedSet |
getDirectories()
Returns all
Directory s 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
Revision s of this author, sorted from oldest
to most recent. |
String |
getTwitterUserId() |
String |
getTwitterUserName() |
int |
hashCode() |
boolean |
isTwitterIncludeFlash() |
boolean |
isTwitterIncludeHtml() |
void |
setEmail(String email) |
void |
setHomePageUrl(String homePageUrl) |
void |
setImageUrl(String imageUrl) |
void |
setRealName(String realName) |
void |
setTwitterIncludeFlash(boolean twitterIncludeFlash) |
void |
setTwitterIncludeHtml(boolean twitterIncludeHtml) |
void |
setTwitterUserId(String twitterUserId) |
void |
setTwitterUserName(String twitterUserName) |
String |
toString() |
public Author(String name)
name
- the author's login nameprotected void addRevision(Revision revision)
Revision
constructorrevision
- a revision committed by this authorpublic String getName()
public SortedSet getRevisions()
Revision
s of this author, sorted from oldest
to most recent.public SortedSet getDirectories()
Directory
s the author
has committed a change to, sorted by name.public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public String getHomePageUrl()
public void setHomePageUrl(String homePageUrl)
public String getImageUrl()
public void setImageUrl(String imageUrl)
public String getRealName()
public void setRealName(String realName)
public String getEmail()
public void setEmail(String email)
public String getTwitterUserName()
public void setTwitterUserName(String twitterUserName)
public String getTwitterUserId()
public void setTwitterUserId(String twitterUserId)
public boolean isTwitterIncludeHtml()
public void setTwitterIncludeHtml(boolean twitterIncludeHtml)
public boolean isTwitterIncludeFlash()
public void setTwitterIncludeFlash(boolean twitterIncludeFlash)