com.atlassian.bamboo.commit
Class CommitImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.commit.CommitImpl
All Implemented Interfaces:
Commit, BambooObject, java.io.Serializable, java.lang.Cloneable

public class CommitImpl
extends BambooEntityObject
implements Commit, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.commit.Commit
UNKNOWN
 
Constructor Summary
CommitImpl()
           
CommitImpl(Author author, java.lang.String comment, java.util.Date date)
           
CommitImpl(java.lang.String authorName)
           
CommitImpl(java.lang.String author, java.lang.String comment, java.util.Date date)
           
 
Method Summary
 void addFile(CommitFile commitFile)
           
 Commit cloneCommit()
           
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 Author getAuthor()
           
 java.lang.String getComment()
           
 java.util.Date getDate()
           
 java.util.List<CommitFile> getFiles()
           
 ResultsSummary getResultsSummary()
           
 java.lang.String guessChangeSetId()
           
 int hashCode()
           
 void setAuthor(Author author)
          Who make the commit
 void setComment(java.lang.String comment)
           
 void setDate(java.util.Date date)
           
 void setFiles(java.util.List<CommitFile> files)
           
 void setResultsSummary(ResultsSummary resultsSummary)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

CommitImpl

public CommitImpl()

CommitImpl

public CommitImpl(java.lang.String authorName)

CommitImpl

public CommitImpl(Author author,
                  java.lang.String comment,
                  java.util.Date date)

CommitImpl

public CommitImpl(java.lang.String author,
                  java.lang.String comment,
                  java.util.Date date)
Method Detail

getAuthor

public Author getAuthor()
Specified by:
getAuthor in interface Commit
Returns:
Author who made the commit

setAuthor

public void setAuthor(Author author)
Description copied from interface: Commit
Who make the commit

Specified by:
setAuthor in interface Commit

addFile

public void addFile(CommitFile commitFile)

getFiles

public java.util.List<CommitFile> getFiles()
Specified by:
getFiles in interface Commit
Returns:
List of CommitFile objects representing changed files

setFiles

public void setFiles(java.util.List<CommitFile> files)
Specified by:
setFiles in interface Commit
Parameters:
files - - files to update this commit with.

getComment

@NotNull
public java.lang.String getComment()
Specified by:
getComment in interface Commit
Returns:
the commit comment

guessChangeSetId

@Nullable
public java.lang.String guessChangeSetId()
Specified by:
guessChangeSetId in interface Commit

setComment

public void setComment(java.lang.String comment)

getDate

public java.util.Date getDate()
Specified by:
getDate in interface Commit
Returns:
Date of commit.

setDate

public void setDate(java.util.Date date)

getResultsSummary

public ResultsSummary getResultsSummary()
Specified by:
getResultsSummary in interface Commit
Returns:
BuildResultsSummary whic this commit belongs to. May be null if still haven't built

setResultsSummary

public void setResultsSummary(ResultsSummary resultsSummary)

cloneCommit

@NotNull
public Commit cloneCommit()
Specified by:
cloneCommit in interface Commit
Returns:
a copy of this commit - will not include resultsSummay

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

compareTo

public int compareTo(java.lang.Object obj)

toString

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


Copyright © 2010 Atlassian. All Rights Reserved.