@Entity public class VcsPullRequestImpl extends com.atlassian.core.bean.EntityObject implements MutableVcsPullRequest
ORDERING
Constructor and Description |
---|
VcsPullRequestImpl() |
VcsPullRequestImpl(VcsPullRequest pullRequest) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getKey() |
@NotNull String |
getSource() |
Long |
getSourceRepositoryId() |
@NotNull String |
getTarget() |
long |
getTargetRepositoryId() |
@Nullable VcsForkDto |
getVcsForkDto() |
int |
hashCode() |
boolean |
isOpen() |
void |
setKey(String vcsPullRequestKey) |
void |
setOpen(boolean open) |
void |
setSource(@NotNull String source) |
void |
setSourceRepositoryId(Long sourceRepositoryId) |
void |
setTarget(@NotNull String target) |
void |
setTargetRepositoryId(long targetRepositoryId) |
void |
setVcsForkDto(@Nullable String sourceParentIdentifier,
@Nullable String sourceRepositoryIdentifier) |
void |
setVcsForkDto(@Nullable VcsForkDto vcsForkDto) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
getLastModificationDate, isFromFork
getCreationDate
setId
getId
public VcsPullRequestImpl()
public VcsPullRequestImpl(VcsPullRequest pullRequest)
public String getKey()
getKey
in interface VcsPullRequest
public void setKey(String vcsPullRequestKey)
setKey
in interface MutableVcsPullRequest
vcsPullRequestKey
- VCS-specific id of pull requestpublic Long getSourceRepositoryId()
getSourceRepositoryId
in interface VcsPullRequest
public void setSourceRepositoryId(Long sourceRepositoryId)
setSourceRepositoryId
in interface MutableVcsPullRequest
sourceRepositoryId
- source repository idpublic long getTargetRepositoryId()
getTargetRepositoryId
in interface VcsPullRequest
public void setTargetRepositoryId(long targetRepositoryId)
setTargetRepositoryId
in interface MutableVcsPullRequest
targetRepositoryId
- target repository id@NotNull public @NotNull String getSource()
getSource
in interface VcsPullRequest
public void setSource(@NotNull @NotNull String source)
setSource
in interface MutableVcsPullRequest
source
- branch name or git ref@NotNull public @NotNull String getTarget()
getTarget
in interface VcsPullRequest
public void setTarget(@NotNull @NotNull String target)
setTarget
in interface MutableVcsPullRequest
target
- branch name or git refpublic boolean isOpen()
isOpen
in interface VcsPullRequest
public void setOpen(boolean open)
setOpen
in interface MutableVcsPullRequest
open
- pull request open status@Nullable public @Nullable VcsForkDto getVcsForkDto()
getVcsForkDto
in interface VcsPullRequest
public void setVcsForkDto(@Nullable @Nullable VcsForkDto vcsForkDto)
setVcsForkDto
in interface MutableVcsPullRequest
vcsForkDto
- forked pull request specific data access objectpublic void setVcsForkDto(@Nullable @Nullable String sourceParentIdentifier, @Nullable @Nullable String sourceRepositoryIdentifier)
setVcsForkDto
in interface MutableVcsPullRequest
sourceParentIdentifier
- the project identifier of forked/source repository, e.g. project keysourceRepositoryIdentifier
- the forked repository identifier, e.g. repository slugpublic boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.