Class PartialVcsRepositoryDataImpl
java.lang.Object
com.atlassian.bamboo.vcs.configuration.PartialVcsRepositoryDataImpl
- All Implemented Interfaces:
BambooIdProvider,ImmutableEntityWithOid,ProjectIdProvider,PluginKeyProvider,DescriptionProvider,NameProvider,PartialVcsRepositoryData,Versionable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPartialVcsRepositoryDataImpl(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, Long version) PartialVcsRepositoryDataImpl(@NotNull RepositoryDataEntity repositoryData, @NotNull RawRepositoryConfiguration rawRepositoryConfiguration, @Nullable VcsRepositoryData inheritedData) -
Method Summary
Modifier and TypeMethodDescriptionstatic PartialVcsRepositoryDataImplcreateChild(@NotNull VcsRepositoryData repositoryData) Create overriding repository which doesn't actually override anything.static PartialVcsRepositoryDataImplcreateChildWithNewBranch(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator) Create overriding repository which overrides branch.static PartialVcsRepositoryDataImplcreateChildWithNewBranchAndOverwrittenLocationForForkScenario(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator, VcsLocationConfigurator vcsLocationConfigurator, VcsForkDto vcsForkDto) @Nullable VcsBambooSpecsDetectionOptions@Nullable VcsBranchDefinition@NotNull VcsRepositoryDataComplete view on this configuration.@Nullable StringlonggetId()@Nullable VcsRepositoryDataComplete view on a configuration of a parent repository or null if there's no parent.@NotNull StringgetName()getOid()OID assigned to this object.@Nullable LongGet id of the repository this inherits data from or null if none.@Nullable BambooEntityOidGet oid of the repository this inherits data from or null if none.@NotNull String@Nullable LonglongGet id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptions@Nullable VcsChangeDetectionOptions@Nullable VcsLocationDefinition@NotNull LongReturns the version number of this object.@Nullable VcsRepositoryViewerDefinitionbooleanbooleanisLinked()booleanbooleanbooleanbooleanbooleanisShared()booleanbooleanbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.vcs.configuration.PartialVcsRepositoryData
getEntityType
-
Constructor Details
-
PartialVcsRepositoryDataImpl
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, Long version) -
PartialVcsRepositoryDataImpl
public PartialVcsRepositoryDataImpl(@NotNull @NotNull RepositoryDataEntity repositoryData, @NotNull @NotNull RawRepositoryConfiguration rawRepositoryConfiguration, @Nullable @Nullable VcsRepositoryData inheritedData)
-
-
Method Details
-
createChild
public static PartialVcsRepositoryDataImpl createChild(@NotNull @NotNull VcsRepositoryData repositoryData) Create overriding repository which doesn't actually override anything. -
createChildWithNewBranch
public static PartialVcsRepositoryDataImpl createChildWithNewBranch(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator) Create overriding repository which overrides branch. -
createChildWithNewBranchAndOverwrittenLocationForForkScenario
public static PartialVcsRepositoryDataImpl createChildWithNewBranchAndOverwrittenLocationForForkScenario(VcsRepositoryData repositoryDefinition, VcsBranch newBranch, VcsBranchConfigurator vcsBranchConfigurator, VcsLocationConfigurator vcsLocationConfigurator, VcsForkDto vcsForkDto) -
getInheritedData
Description copied from interface:PartialVcsRepositoryDataComplete view on a configuration of a parent repository or null if there's no parent.- Specified by:
getInheritedDatain interfacePartialVcsRepositoryData
-
overridesLocation
public boolean overridesLocation()- Specified by:
overridesLocationin interfacePartialVcsRepositoryData
-
overridesBranch
public boolean overridesBranch()- Specified by:
overridesBranchin interfacePartialVcsRepositoryData
-
overridesChangeDetectionOptions
public boolean overridesChangeDetectionOptions()- Specified by:
overridesChangeDetectionOptionsin interfacePartialVcsRepositoryData
-
overridesBranchDetectionOptions
public boolean overridesBranchDetectionOptions()- Specified by:
overridesBranchDetectionOptionsin interfacePartialVcsRepositoryData
-
getOid
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid
-
getPluginKey
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
getVcsLocation
- Specified by:
getVcsLocationin interfacePartialVcsRepositoryData
-
getBranch
- Specified by:
getBranchin interfacePartialVcsRepositoryData
-
getVcsChangeDetectionOptions
- Specified by:
getVcsChangeDetectionOptionsin interfacePartialVcsRepositoryData
-
getVcsBranchDetectionOptions
- Specified by:
getVcsBranchDetectionOptionsin interfacePartialVcsRepositoryData
-
getBambooSpecsConfiguration
- Specified by:
getBambooSpecsConfigurationin interfacePartialVcsRepositoryData
-
getViewerConfiguration
- Specified by:
getViewerConfigurationin interfacePartialVcsRepositoryData
-
getProjectId
- Specified by:
getProjectIdin interfacePartialVcsRepositoryData- Specified by:
getProjectIdin interfaceProjectIdProvider- Returns:
- id of project which is associated with this repository, returns null if repository is either global or plan.
-
getVersion
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfacePartialVcsRepositoryData
-
isLinked
public boolean isLinked()- Specified by:
isLinkedin interfacePartialVcsRepositoryData
-
isRootVcsLinked
public boolean isRootVcsLinked()- Specified by:
isRootVcsLinkedin interfacePartialVcsRepositoryData- Returns:
- true if this repository is a linked repository or inherits data (possibly indirectly) from a linked repository
-
isRootVcsProjectRepository
public boolean isRootVcsProjectRepository()- Specified by:
isRootVcsProjectRepositoryin interfacePartialVcsRepositoryData- Returns:
- true if this repository is a project repository or inherits data (possibly indirectly) from a project repository
-
isAncestorMarkedForDeletion
public boolean isAncestorMarkedForDeletion()- Specified by:
isAncestorMarkedForDeletionin interfacePartialVcsRepositoryData- Returns:
- true if this repository or any of its ancestors of this repository is marked for deletion
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
getCompleteData
Description copied from interface:PartialVcsRepositoryDataComplete view on this configuration.- Specified by:
getCompleteDatain interfacePartialVcsRepositoryData
-
getParentId
Description copied from interface:PartialVcsRepositoryDataGet id of the repository this inherits data from or null if none.- Specified by:
getParentIdin interfacePartialVcsRepositoryData
-
getParentOid
Description copied from interface:PartialVcsRepositoryDataGet oid of the repository this inherits data from or null if none.- Specified by:
getParentOidin interfacePartialVcsRepositoryData
-
getRootVcsRepositoryId
public long getRootVcsRepositoryId()Description copied from interface:PartialVcsRepositoryDataGet id of the repository that is the root of the hierarchy this repository belongs to. Returns repository id if this repository is the root.- Specified by:
getRootVcsRepositoryIdin interfacePartialVcsRepositoryData
-