@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, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public AuthorContext getAuthorContext()
getAuthorContext
in interface CommitContext
AuthorContext
of commit authorpublic void setAuthor(Author author)
Commit
public void addFile(CommitFile commitFile)
@NotNull public List<CommitFile> getFiles()
getFiles
in interface CommitContext
List
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 CommitContext
public void setComment(String comment)
public String getChangeSetId()
CommitContext
getChangeSetId
in interface CommitContext
public void setChangeSetId(String changeSetId)
@NotNull public Date getDate()
getDate
in interface CommitContext
Date
of commit.public void setDate(@NotNull Date date)
@Nullable public RepositoryChangeset getRepositoryChangeset()
getRepositoryChangeset
in interface Commit
RepositoryChangeset
this commit belongs topublic void setRepositoryChangeset(@Nullable RepositoryChangeset repositoryChangeset)
setRepositoryChangeset
in interface Commit
public boolean isForeignCommit()
CommitContext
isForeignCommit
in interface CommitContext
public void setForeignCommit(boolean foreignCommit)
setForeignCommit
in interface Commit
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(Object obj)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.