Package net.sf.statcvs.model
Class Author
java.lang.Object
net.sf.statcvs.model.Author
- All Implemented Interfaces:
Comparable
Represents an author of one or more
Revision
s in a repository.
TODO: Rename to Login- Version:
- $Id: Author.java,v 1.16 2009/08/20 17:44:05 benoitx Exp $
- Author:
- Richard Cyganiak <richard@cyganiak.de>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRevision
(Revision revision) Adds a revision for this author; called byRevision
constructorint
Compares the instance to another author, using their login names.boolean
Returns allDirectory
s the author has committed a change to, sorted by name.getEmail()
getName()
Returns the author's login name.Returns allRevision
s of this author, sorted from oldest to most recent.int
hashCode()
boolean
boolean
void
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) toString()
-
Constructor Details
-
Author
Creates a new author.- Parameters:
name
- the author's login name
-
-
Method Details
-
addRevision
Adds a revision for this author; called byRevision
constructor- Parameters:
revision
- a revision committed by this author
-
getName
Returns the author's login name.- Returns:
- the author's login name
-
getRevisions
Returns allRevision
s of this author, sorted from oldest to most recent.- Returns:
- all revisions of this author
-
getDirectories
Returns allDirectory
s the author has committed a change to, sorted by name.- Returns:
- a set of Directory objects
-
compareTo
Compares the instance to another author, using their login names.- Specified by:
compareTo
in interfaceComparable
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-
getHomePageUrl
-
setHomePageUrl
-
getImageUrl
-
setImageUrl
-
getRealName
-
setRealName
-
getEmail
-
setEmail
-
getTwitterUserName
-
setTwitterUserName
-
getTwitterUserId
-
setTwitterUserId
-
isTwitterIncludeHtml
public boolean isTwitterIncludeHtml() -
setTwitterIncludeHtml
public void setTwitterIncludeHtml(boolean twitterIncludeHtml) -
isTwitterIncludeFlash
public boolean isTwitterIncludeFlash() -
setTwitterIncludeFlash
public void setTwitterIncludeFlash(boolean twitterIncludeFlash)
-