com.atlassian.bamboo.deployments.versions.persistence.commits
Class MutableDeploymentVersionVcsCommitImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.deployments.versions.persistence.commits.MutableDeploymentVersionVcsCommitImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, InternalDeploymentVersionVcsCommit, MutableDeploymentVersionVcsCommit, Cloneable

public class MutableDeploymentVersionVcsCommitImpl
extends BambooEntityObject
implements MutableDeploymentVersionVcsCommit


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
MutableDeploymentVersionVcsCommitImpl()
           
MutableDeploymentVersionVcsCommitImpl(MutableDeploymentVersionVcsChangeset changeset, Author author, String changeSetId, String comment, Date date)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
          This method needs to be here in order to use proper id
 Author getAuthor()
           
 MutableDeploymentVersionVcsChangeset getChangeset()
           
 String getChangeSetId()
           
 String getComment()
           
 Date getDate()
           
 int hashCode()
          This method needs to be here in order to use proper id
 void setAuthor(Author author)
           
 void setChangeset(MutableDeploymentVersionVcsChangeset changeset)
           
 void setChangeSetId(String changeSetId)
           
 void setComment(String comment)
           
 void setDate(Date date)
           
 String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

MutableDeploymentVersionVcsCommitImpl

public MutableDeploymentVersionVcsCommitImpl()

MutableDeploymentVersionVcsCommitImpl

public MutableDeploymentVersionVcsCommitImpl(MutableDeploymentVersionVcsChangeset changeset,
                                             Author author,
                                             String changeSetId,
                                             String comment,
                                             Date date)
Method Detail

getChangeset

@NotNull
public MutableDeploymentVersionVcsChangeset getChangeset()
Specified by:
getChangeset in interface MutableDeploymentVersionVcsCommit

setChangeset

public void setChangeset(@NotNull
                         MutableDeploymentVersionVcsChangeset changeset)
Specified by:
setChangeset in interface MutableDeploymentVersionVcsCommit

getAuthor

public Author getAuthor()
Specified by:
getAuthor in interface InternalDeploymentVersionVcsCommit
Returns:
Author who made the commit

setAuthor

public void setAuthor(Author author)
Specified by:
setAuthor in interface MutableDeploymentVersionVcsCommit

getComment

@NotNull
public String getComment()
Specified by:
getComment in interface InternalDeploymentVersionVcsCommit
Returns:
the commit comment

setComment

public void setComment(@NotNull
                       String comment)
Specified by:
setComment in interface MutableDeploymentVersionVcsCommit

getDate

public Date getDate()
Specified by:
getDate in interface InternalDeploymentVersionVcsCommit
Returns:
Date of commit.

setDate

public void setDate(Date date)
Specified by:
setDate in interface MutableDeploymentVersionVcsCommit

getChangeSetId

public String getChangeSetId()
Specified by:
getChangeSetId in interface InternalDeploymentVersionVcsCommit
Returns:
VCS identifier for this changeset

setChangeSetId

public void setChangeSetId(String changeSetId)
Specified by:
setChangeSetId in interface MutableDeploymentVersionVcsCommit

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

public int compareTo(Object obj)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.