com.atlassian.bamboo.commit
Class CommitImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.commit.CommitImpl
- All Implemented Interfaces:
- Commit, CommitContext, BambooIdProvider, BambooObject, java.lang.Cloneable
public class CommitImpl
- extends BambooEntityObject
- implements Commit
Fields inherited from interface com.atlassian.bamboo.commit.Commit |
UNKNOWN |
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 |
CommitImpl
public CommitImpl()
getAuthor
public Author getAuthor()
- Specified by:
getAuthor
in interface CommitContext
- Returns:
Author
who made the commit
setAuthor
public void setAuthor(Author author)
- Description copied from interface:
Commit
- Who made the commit
- Specified by:
setAuthor
in interface Commit
addFile
public void addFile(CommitFile commitFile)
getFiles
@NotNull
public java.util.List<CommitFile> getFiles()
- Specified by:
getFiles
in interface CommitContext
- 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 CommitContext
- Returns:
- the commit comment
guessChangeSetId
@Nullable
public java.lang.String guessChangeSetId()
- Specified by:
guessChangeSetId
in interface CommitContext
setComment
public void setComment(java.lang.String comment)
getChangeSetId
public java.lang.String getChangeSetId()
- Description copied from interface:
CommitContext
- Return VCS identifier for this changeset.
- Specified by:
getChangeSetId
in interface CommitContext
- Returns:
setChangeSetId
public void setChangeSetId(java.lang.String changeSetId)
getDate
public java.util.Date getDate()
- Specified by:
getDate
in interface CommitContext
- Returns:
Date
of commit.
setDate
public void setDate(java.util.Date date)
getRepositoryChangeset
@Nullable
public RepositoryChangeset getRepositoryChangeset()
- Specified by:
getRepositoryChangeset
in interface Commit
- Returns:
RepositoryChangeset
this commit belongs to
setRepositoryChangeset
public void setRepositoryChangeset(@Nullable
RepositoryChangeset repositoryChangeset)
- Specified by:
setRepositoryChangeset
in interface Commit
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 © 2012 Atlassian. All Rights Reserved.