com.atlassian.bamboo.commit
Interface Commit

All Superinterfaces:
BambooObject, java.io.Serializable
All Known Implementing Classes:
CommitImpl

public interface Commit
extends BambooObject, java.io.Serializable

Interface that represents a single commit set.


Field Summary
static java.lang.String UNKNOWN
           
 
Method Summary
 Commit cloneCommit()
           
 Author getAuthor()
           
 java.lang.String getComment()
           
 java.util.Date getDate()
           
 java.util.List<CommitFile> getFiles()
           
 ResultsSummary getResultsSummary()
           
 java.lang.String guessChangeSetId()
           
 void setAuthor(Author author)
          Who make the commit
 void setFiles(java.util.List<CommitFile> files)
           
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Field Detail

UNKNOWN

static final java.lang.String UNKNOWN
See Also:
Constant Field Values
Method Detail

getAuthor

Author getAuthor()
Returns:
Author who made the commit

setAuthor

void setAuthor(Author author)
Who make the commit

Parameters:
author -

getResultsSummary

ResultsSummary getResultsSummary()
Returns:
BuildResultsSummary whic this commit belongs to. May be null if still haven't built

getFiles

java.util.List<CommitFile> getFiles()
Returns:
List of CommitFile objects representing changed files

setFiles

void setFiles(java.util.List<CommitFile> files)
Parameters:
files - - files to update this commit with.

getComment

@NotNull
java.lang.String getComment()
Returns:
the commit comment

getDate

java.util.Date getDate()
Returns:
Date of commit.

guessChangeSetId

@Nullable
java.lang.String guessChangeSetId()

cloneCommit

@NotNull
Commit cloneCommit()
Returns:
a copy of this commit - will not include resultsSummay


Copyright © 2010 Atlassian. All Rights Reserved.