@Entity public class CommitImpl extends BambooEntityObject implements Commit
| Constructor and Description |
|---|
CommitImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(CommitFile commitFile) |
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
Author |
getAuthor() |
AuthorContext |
getAuthorContext() |
String |
getChangeSetId()
Return VCS identifier for this changeset.
|
String |
getComment() |
Date |
getDate() |
List<CommitFile> |
getFiles() |
RepositoryChangeset |
getRepositoryChangeset() |
String |
guessChangeSetId() |
int |
hashCode() |
boolean |
isForeignCommit()
True if commit comes from another branch/is not in the ancestry path.
|
void |
setAuthor(Author author)
Who made the commit
|
void |
setChangeSetId(String changeSetId) |
void |
setComment(String comment) |
void |
setDate(Date date) |
void |
setFiles(List<CommitFile> files) |
void |
setForeignCommit(boolean foreignCommit) |
void |
setRepositoryChangeset(RepositoryChangeset repositoryChangeset) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, wait, wait, waitsetIdgetIdpublic AuthorContext getAuthorContext()
getAuthorContext in interface CommitContextAuthorContext of commit authorpublic void setAuthor(Author author)
Commitpublic void addFile(CommitFile commitFile)
@NotNull public List<CommitFile> getFiles()
getFiles in interface CommitContextList of CommitFile objects representing changed filespublic void setFiles(List<CommitFile> files)
@NotNull public String getComment()
getComment in interface CommitContext@Nullable public String guessChangeSetId()
guessChangeSetId in interface CommitContextpublic void setComment(String comment)
public String getChangeSetId()
CommitContextgetChangeSetId in interface CommitContextpublic void setChangeSetId(String changeSetId)
@NotNull public Date getDate()
getDate in interface CommitContextDate of commit.public void setDate(@NotNull
Date date)
@Nullable public RepositoryChangeset getRepositoryChangeset()
getRepositoryChangeset in interface CommitRepositoryChangeset this commit belongs topublic void setRepositoryChangeset(@Nullable
RepositoryChangeset repositoryChangeset)
setRepositoryChangeset in interface Commitpublic boolean isForeignCommit()
CommitContextisForeignCommit in interface CommitContextpublic void setForeignCommit(boolean foreignCommit)
setForeignCommit in interface Commitpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectpublic int compareTo(Object obj)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.