public class PartialVcsRepositoryDataImpl extends Object implements PartialVcsRepositoryData
Modifier | Constructor and Description |
---|---|
protected |
PartialVcsRepositoryDataImpl(long id,
BambooEntityOid oid,
String pluginKey,
String name,
String description,
VcsBranch vcsBranch,
String viewerPluginKey,
Map<String,String> serverConfiguration,
Map<String,String> changeDetectionConfiguration,
Map<String,String> branchDetectionConfiguration,
Map<String,String> branchConfiguration,
Map<String,String> viewerConfiguration,
Map<String,String> bambooSpecsDetectionConfiguration,
String legacyXml,
String legacyViewerXml,
boolean linked,
VcsRepositoryData inheritedData,
Long projectId) |
|
PartialVcsRepositoryDataImpl(@NotNull RepositoryDataEntity repositoryData,
@NotNull RawRepositoryConfiguration rawRepositoryConfiguration,
@Nullable VcsRepositoryData inheritedData) |
Modifier and Type | Method and Description |
---|---|
@NotNull RepositoryData |
asLegacyData() |
static PartialVcsRepositoryDataImpl |
createChild(@NotNull VcsRepositoryData repositoryData)
Create overriding repository which doesn't actually override anything.
|
static PartialVcsRepositoryDataImpl |
createChildWithNewBranch(VcsRepositoryData repositoryDefinition,
VcsBranch newBranch,
VcsBranchConfigurator vcsBranchConfigurator)
Create overriding repository which overrides branch.
|
static PartialVcsRepositoryDataImpl |
createChildWithNewBranchAndOverwrittenLocationForForkScenario(VcsRepositoryData repositoryDefinition,
VcsBranch newBranch,
VcsBranchConfigurator vcsBranchConfigurator,
VcsLocationConfigurator vcsLocationConfigurator,
VcsForkDto vcsForkDto) |
@Nullable VcsBambooSpecsDetectionOptions |
getBambooSpecsConfiguration() |
@Nullable VcsBranchDefinition |
getBranch() |
@NotNull VcsRepositoryData |
getCompleteData()
Complete view on this configuration.
|
@Nullable String |
getDescription() |
long |
getId() |
@Nullable VcsRepositoryData |
getInheritedData()
Complete view on a configuration of a parent repository or null if there's no parent.
|
@NotNull String |
getName() |
BambooEntityOid |
getOid()
OID assigned to this object.
|
@Nullable Long |
getParentId()
Get id of the repository this inherits data from or null if none.
|
@Nullable BambooEntityOid |
getParentOid()
Get oid of the repository this inherits data from or null if none.
|
@NotNull String |
getPluginKey() |
@Nullable Long |
getProjectId() |
long |
getRootVcsRepositoryId()
Get id of the repository that is the root of the hierarchy this repository belongs to.
|
@Nullable VcsBranchDetectionOptions |
getVcsBranchDetectionOptions() |
@Nullable VcsChangeDetectionOptions |
getVcsChangeDetectionOptions() |
@Nullable VcsLocationDefinition |
getVcsLocation() |
@Nullable VcsRepositoryViewerDefinition |
getViewerConfiguration() |
boolean |
isLegacyRepository() |
boolean |
isLinked() |
boolean |
isMarkedForDeletion() |
boolean |
isRootVcsLinked() |
boolean |
isRootVcsProjectRepository() |
boolean |
isRootVcsShared() |
boolean |
isShared() |
boolean |
overridesBranch() |
boolean |
overridesBranchDetectionOptions() |
boolean |
overridesChangeDetectionOptions() |
boolean |
overridesLocation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityType
protected PartialVcsRepositoryDataImpl(long id, BambooEntityOid oid, String pluginKey, String name, String description, VcsBranch vcsBranch, String viewerPluginKey, Map<String,String> serverConfiguration, Map<String,String> changeDetectionConfiguration, Map<String,String> branchDetectionConfiguration, Map<String,String> branchConfiguration, Map<String,String> viewerConfiguration, Map<String,String> bambooSpecsDetectionConfiguration, String legacyXml, String legacyViewerXml, boolean linked, VcsRepositoryData inheritedData, Long projectId)
public PartialVcsRepositoryDataImpl(@NotNull @NotNull RepositoryDataEntity repositoryData, @NotNull @NotNull RawRepositoryConfiguration rawRepositoryConfiguration, @Nullable @Nullable VcsRepositoryData inheritedData)
public static PartialVcsRepositoryDataImpl createChild(@NotNull @NotNull VcsRepositoryData repositoryData)
public static PartialVcsRepositoryDataImpl createChildWithNewBranch(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator)
public static PartialVcsRepositoryDataImpl createChildWithNewBranchAndOverwrittenLocationForForkScenario(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator, VcsLocationConfigurator vcsLocationConfigurator, VcsForkDto vcsForkDto)
@Nullable public @Nullable VcsRepositoryData getInheritedData()
PartialVcsRepositoryData
getInheritedData
in interface PartialVcsRepositoryData
public boolean overridesLocation()
overridesLocation
in interface PartialVcsRepositoryData
public boolean overridesBranch()
overridesBranch
in interface PartialVcsRepositoryData
public boolean overridesChangeDetectionOptions()
overridesChangeDetectionOptions
in interface PartialVcsRepositoryData
public boolean overridesBranchDetectionOptions()
overridesBranchDetectionOptions
in interface PartialVcsRepositoryData
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
@NotNull public @NotNull String getPluginKey()
getPluginKey
in interface PluginKeyProvider
@Nullable public @Nullable VcsLocationDefinition getVcsLocation()
getVcsLocation
in interface PartialVcsRepositoryData
@Nullable public @Nullable VcsBranchDefinition getBranch()
getBranch
in interface PartialVcsRepositoryData
@Nullable public @Nullable VcsChangeDetectionOptions getVcsChangeDetectionOptions()
getVcsChangeDetectionOptions
in interface PartialVcsRepositoryData
@Nullable public @Nullable VcsBranchDetectionOptions getVcsBranchDetectionOptions()
getVcsBranchDetectionOptions
in interface PartialVcsRepositoryData
@Nullable public @Nullable VcsBambooSpecsDetectionOptions getBambooSpecsConfiguration()
getBambooSpecsConfiguration
in interface PartialVcsRepositoryData
@Nullable public @Nullable VcsRepositoryViewerDefinition getViewerConfiguration()
getViewerConfiguration
in interface PartialVcsRepositoryData
@Nullable public @Nullable Long getProjectId()
getProjectId
in interface ProjectIdProvider
getProjectId
in interface PartialVcsRepositoryData
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface PartialVcsRepositoryData
public boolean isLinked()
isLinked
in interface PartialVcsRepositoryData
public boolean isShared()
isShared
in interface PartialVcsRepositoryData
public boolean isRootVcsLinked()
isRootVcsLinked
in interface PartialVcsRepositoryData
public boolean isRootVcsProjectRepository()
isRootVcsProjectRepository
in interface PartialVcsRepositoryData
public boolean isRootVcsShared()
isRootVcsShared
in interface PartialVcsRepositoryData
public long getId()
getId
in interface BambooIdProvider
@NotNull public @NotNull String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
@Nullable public @Nullable String getDescription()
getDescription
in interface DescriptionProvider
public boolean isLegacyRepository()
isLegacyRepository
in interface PartialVcsRepositoryData
@NotNull public @NotNull RepositoryData asLegacyData()
asLegacyData
in interface PartialVcsRepositoryData
@NotNull public @NotNull VcsRepositoryData getCompleteData()
PartialVcsRepositoryData
getCompleteData
in interface PartialVcsRepositoryData
@Nullable public @Nullable Long getParentId()
PartialVcsRepositoryData
getParentId
in interface PartialVcsRepositoryData
@Nullable public @Nullable BambooEntityOid getParentOid()
PartialVcsRepositoryData
getParentOid
in interface PartialVcsRepositoryData
public long getRootVcsRepositoryId()
PartialVcsRepositoryData
getRootVcsRepositoryId
in interface PartialVcsRepositoryData
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.