Class VcsPullRequestImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.plan.pullrequest.VcsPullRequestImpl
- All Implemented Interfaces:
BambooIdProvider,BambooObject,MutableVcsPullRequest,VcsPullRequest,CreationDateProvider,Cloneable
@Entity
public class VcsPullRequestImpl
extends com.atlassian.core.bean.EntityObject
implements MutableVcsPullRequest
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VcsPullRequestImplcloneForAnotherRootId(@NotNull VcsPullRequest pullRequest, long newRootVcsId) booleangetKey()@NotNull String@NotNull Stringlong@Nullable VcsForkDtointhashCode()booleanisOpen()voidvoidsetOpen(boolean open) voidvoidsetSourceRepositoryId(Long sourceRepositoryId) voidvoidsetTargetRepositoryId(long targetRepositoryId) voidsetVcsForkDto(@Nullable VcsForkDto vcsForkDto) voidsetVcsForkDto(@Nullable String sourceParentIdentifier, @Nullable String sourceRepositoryIdentifier) toString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
getCreationDateMethods inherited from interface com.atlassian.bamboo.plan.pullrequest.VcsPullRequest
getLastModificationDate, isFromFork
-
Constructor Details
-
VcsPullRequestImpl
public VcsPullRequestImpl() -
VcsPullRequestImpl
-
-
Method Details
-
cloneForAnotherRootId
public static VcsPullRequestImpl cloneForAnotherRootId(@NotNull @NotNull VcsPullRequest pullRequest, long newRootVcsId) -
getKey
- Specified by:
getKeyin interfaceVcsPullRequest- Returns:
- repository specific pull request key
-
setKey
- Specified by:
setKeyin interfaceMutableVcsPullRequest- Parameters:
vcsPullRequestKey- VCS-specific id of pull request
-
getSourceRepositoryId
- Specified by:
getSourceRepositoryIdin interfaceVcsPullRequest- Returns:
- source repository id or null if source repository is out of Bamboo control
-
setSourceRepositoryId
- Specified by:
setSourceRepositoryIdin interfaceMutableVcsPullRequest- Parameters:
sourceRepositoryId- source repository id
-
getTargetRepositoryId
public long getTargetRepositoryId()- Specified by:
getTargetRepositoryIdin interfaceVcsPullRequest- Returns:
- target repository id
-
setTargetRepositoryId
public void setTargetRepositoryId(long targetRepositoryId) - Specified by:
setTargetRepositoryIdin interfaceMutableVcsPullRequest- Parameters:
targetRepositoryId- target repository id
-
getSource
- Specified by:
getSourcein interfaceVcsPullRequest- Returns:
- source branch name or git ref
-
setSource
- Specified by:
setSourcein interfaceMutableVcsPullRequest- Parameters:
source- branch name or git ref
-
getTarget
- Specified by:
getTargetin interfaceVcsPullRequest- Returns:
- name of target branch name or git ref
-
setTarget
- Specified by:
setTargetin interfaceMutableVcsPullRequest- Parameters:
target- branch name or git ref
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceVcsPullRequest- Returns:
- if pull request is open or merged/declined
-
setOpen
public void setOpen(boolean open) - Specified by:
setOpenin interfaceMutableVcsPullRequest- Parameters:
open- pull request open status
-
getVcsForkDto
- Specified by:
getVcsForkDtoin interfaceVcsPullRequest- Returns:
- data access object connected with pull requests made from forked repositories
-
setVcsForkDto
- Specified by:
setVcsForkDtoin interfaceMutableVcsPullRequest- Parameters:
vcsForkDto- forked pull request specific data access object
-
setVcsForkDto
public void setVcsForkDto(@Nullable @Nullable String sourceParentIdentifier, @Nullable @Nullable String sourceRepositoryIdentifier) - Specified by:
setVcsForkDtoin interfaceMutableVcsPullRequest- Parameters:
sourceParentIdentifier- the project identifier of forked/source repository, e.g. project keysourceRepositoryIdentifier- the forked repository identifier, e.g. repository slug
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
toString
-