@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.
|
@NotNull String |
getComment() |
@NotNull Date |
getDate() |
@NotNull List<CommitFile> |
getFiles() |
@Nullable RepositoryChangeset |
getRepositoryChangeset() |
@Nullable 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(@NotNull Date date) |
void |
setFiles(List<CommitFile> files) |
void |
setForeignCommit(boolean foreignCommit) |
void |
setRepositoryChangeset(@Nullable 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 @NotNull List<CommitFile> getFiles()
getFiles
in interface CommitContext
List
of CommitFile
objects representing changed filespublic void setFiles(List<CommitFile> files)
@NotNull public @NotNull String getComment()
getComment
in interface CommitContext
@Nullable public @Nullable 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 @NotNull Date getDate()
getDate
in interface CommitContext
Date
of commit.public void setDate(@NotNull @NotNull Date date)
@Nullable public @Nullable RepositoryChangeset getRepositoryChangeset()
getRepositoryChangeset
in interface Commit
RepositoryChangeset
this commit belongs topublic void setRepositoryChangeset(@Nullable @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.