com.atlassian.bamboo.v2.build
Class BuildChangesImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BuildChangesImpl
All Implemented Interfaces:
BuildChanges, java.io.Serializable

public class BuildChangesImpl
extends java.lang.Object
implements BuildChanges

See Also:
Serialized Form

Constructor Summary
BuildChangesImpl()
           
BuildChangesImpl(java.lang.String vcsRevisionKey)
           
BuildChangesImpl(java.lang.String vcsRevisionKey, java.util.List<Commit> changes)
           
 
Method Summary
 BuildChanges cloneBuildChanges()
           
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<Commit> getChanges()
          List of Commit objects that triggered off this particular build.
 java.lang.String getPreviousVcsRevisionKey()
          Returns a Repository dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from the Repository as to be internally consistent
 int getSkippedCommitsCount()
          The number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)
 java.lang.String getVcsLastChangeRevisionKey()
          Returns a Repository dependent "id" for last change for repository subpath - currently implemented for Subversion ONLY This is value is taken from the Repository as to be internally consistent *
 java.lang.String getVcsRevisionKey()
          Returns a Repository dependent "id" for this checkout.
 int hashCode()
           
 void setChanges(java.util.List<Commit> changes)
           
 void setPreviousVcsRevisionKey(java.lang.String previousVcsRevisionKey)
           
 void setSkippedCommitsCount(int skippedCommitsCount)
           
 void setVcsLastChangeRevisionKey(java.lang.String vcsLastChangeRevisionKey)
           
 void setVcsRevisionKey(java.lang.String vcsRevisionKey)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildChangesImpl

public BuildChangesImpl()

BuildChangesImpl

public BuildChangesImpl(java.lang.String vcsRevisionKey)

BuildChangesImpl

public BuildChangesImpl(java.lang.String vcsRevisionKey,
                        java.util.List<Commit> changes)
Method Detail

getVcsRevisionKey

public java.lang.String getVcsRevisionKey()
Description copied from interface: BuildChanges
Returns a Repository dependent "id" for this checkout. e.g. date timestamp for CVS, revision number for SVN etc. This is value is taken from the Repository as to be internally consistent

Specified by:
getVcsRevisionKey in interface BuildChanges
Returns:
@Nullable. Revision "id"

setVcsRevisionKey

public void setVcsRevisionKey(@Nullable
                              java.lang.String vcsRevisionKey)
Specified by:
setVcsRevisionKey in interface BuildChanges

getPreviousVcsRevisionKey

public java.lang.String getPreviousVcsRevisionKey()
Description copied from interface: BuildChanges
Returns a Repository dependent "id" for previous state of repository, so change is between previousVcsRevisionKey and vcsRevisionKey This is value is taken from the Repository as to be internally consistent

Specified by:
getPreviousVcsRevisionKey in interface BuildChanges
Returns:

setPreviousVcsRevisionKey

public void setPreviousVcsRevisionKey(@Nullable
                                      java.lang.String previousVcsRevisionKey)
Specified by:
setPreviousVcsRevisionKey in interface BuildChanges

getVcsLastChangeRevisionKey

public java.lang.String getVcsLastChangeRevisionKey()
Description copied from interface: BuildChanges
Returns a Repository dependent "id" for last change for repository subpath - currently implemented for Subversion ONLY This is value is taken from the Repository as to be internally consistent *

Specified by:
getVcsLastChangeRevisionKey in interface BuildChanges
Returns:

setVcsLastChangeRevisionKey

public void setVcsLastChangeRevisionKey(java.lang.String vcsLastChangeRevisionKey)
Specified by:
setVcsLastChangeRevisionKey in interface BuildChanges

getChanges

@NotNull
public java.util.List<Commit> getChanges()
Description copied from interface: BuildChanges
List of Commit objects that triggered off this particular build. Returns empty collection if no changes returned.

Specified by:
getChanges in interface BuildChanges
Returns:
List of Commits. May be empty

setChanges

public void setChanges(@NotNull
                       java.util.List<Commit> changes)
Specified by:
setChanges in interface BuildChanges

getSkippedCommitsCount

public int getSkippedCommitsCount()
Description copied from interface: BuildChanges
The number of commits that were included in this buildChanges, but their details were skipped (because there was too many commits to keep them all in this buildChanges)

Specified by:
getSkippedCommitsCount in interface BuildChanges
Returns:
number of skipped commits

setSkippedCommitsCount

public void setSkippedCommitsCount(int skippedCommitsCount)
Specified by:
setSkippedCommitsCount in interface BuildChanges

cloneBuildChanges

@NotNull
public BuildChanges cloneBuildChanges()
Specified by:
cloneBuildChanges in interface BuildChanges
Returns:
a copy of the current build changes.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Atlassian. All Rights Reserved.