com.atlassian.bamboo.v2.build
Class BuildRepositoryChangesImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BuildRepositoryChangesImpl
All Implemented Interfaces:
BuildRepositoryChanges, java.io.Serializable, java.lang.Comparable<BuildRepositoryChanges>

public class BuildRepositoryChangesImpl
extends java.lang.Object
implements BuildRepositoryChanges

See Also:
Serialized Form

Constructor Summary
BuildRepositoryChangesImpl()
           
BuildRepositoryChangesImpl(long repositoryId)
           
BuildRepositoryChangesImpl(long repositoryId, java.lang.String vcsRevisionKey, java.util.List<? extends CommitContext> changes)
           
BuildRepositoryChangesImpl(java.lang.String vcsRevisionKey)
           
BuildRepositoryChangesImpl(java.lang.String vcsRevisionKey, java.util.List<? extends CommitContext> changes)
           
 
Method Summary
 int compareTo(BuildRepositoryChanges o)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<CommitContext> getChanges()
          List of Commit objects that triggered off this particular build.
 java.lang.String getCustomXmlData()
          Repository specific data related to this changeset, e.g.
 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
 long getRepositoryId()
           
 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<CommitContext> changes)
           
 void setCustomXmlData(java.lang.String customXmlData)
           
 void setPreviousVcsRevisionKey(java.lang.String previousVcsRevisionKey)
           
 void setRepositoryId(long repositoryId)
           
 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

BuildRepositoryChangesImpl

public BuildRepositoryChangesImpl()

BuildRepositoryChangesImpl

public BuildRepositoryChangesImpl(long repositoryId)

BuildRepositoryChangesImpl

public BuildRepositoryChangesImpl(@NotNull
                                  java.lang.String vcsRevisionKey)

BuildRepositoryChangesImpl

public BuildRepositoryChangesImpl(@NotNull
                                  java.lang.String vcsRevisionKey,
                                  @NotNull
                                  java.util.List<? extends CommitContext> changes)

BuildRepositoryChangesImpl

public BuildRepositoryChangesImpl(long repositoryId,
                                  @Nullable
                                  java.lang.String vcsRevisionKey,
                                  @Nullable
                                  java.util.List<? extends CommitContext> changes)
Method Detail

getRepositoryId

public long getRepositoryId()
Specified by:
getRepositoryId in interface BuildRepositoryChanges

setRepositoryId

public void setRepositoryId(long repositoryId)
Specified by:
setRepositoryId in interface BuildRepositoryChanges

getVcsRevisionKey

@Nullable
public java.lang.String getVcsRevisionKey()
Description copied from interface: BuildRepositoryChanges
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 BuildRepositoryChanges
Returns:
Revision "id"

setVcsRevisionKey

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

getPreviousVcsRevisionKey

@Nullable
public java.lang.String getPreviousVcsRevisionKey()
Description copied from interface: BuildRepositoryChanges
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 BuildRepositoryChanges
Returns:

setPreviousVcsRevisionKey

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

getVcsLastChangeRevisionKey

public java.lang.String getVcsLastChangeRevisionKey()
Description copied from interface: BuildRepositoryChanges
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 BuildRepositoryChanges
Returns:

setVcsLastChangeRevisionKey

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

getChanges

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

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

setChanges

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

getSkippedCommitsCount

public int getSkippedCommitsCount()
Description copied from interface: BuildRepositoryChanges
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 BuildRepositoryChanges
Returns:
number of skipped commits

setSkippedCommitsCount

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

getCustomXmlData

public java.lang.String getCustomXmlData()
Description copied from interface: BuildRepositoryChanges
Repository specific data related to this changeset, e.g. information on SVN externals. Only available server-side.

Specified by:
getCustomXmlData in interface BuildRepositoryChanges
Returns:

setCustomXmlData

public void setCustomXmlData(@Nullable
                             java.lang.String customXmlData)
Specified by:
setCustomXmlData in interface BuildRepositoryChanges

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(BuildRepositoryChanges o)
Specified by:
compareTo in interface java.lang.Comparable<BuildRepositoryChanges>

toString

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


Copyright © 2012 Atlassian. All Rights Reserved.