Interface VcsRepositoryData
- All Superinterfaces:
BambooIdProvider,BambooPluginDataIdProvider,DescriptionProvider,ImmutableEntityWithOid,NameProvider,PluginKeyProvider,ProjectIdProvider,Serializable,Versionable
- All Known Subinterfaces:
PlanRepositoryDefinition
- All Known Implementing Classes:
CompleteVcsRepositoryData,MockVcsRepositoryData,PlanRepositoryDefinitionImpl,VcsRepositoryDataImpl
public interface VcsRepositoryData
extends BambooPluginDataIdProvider, DescriptionProvider, Serializable, ImmutableEntityWithOid, ProjectIdProvider, Versionable
Effective repository definition as seen outside any specific
Plan's context
Product of:
- importing parent's configuration
- applying local configuration overrides (e.g. branch)
Analogue of existing RepositoryData- Since:
- 5.14
-
Method Summary
Modifier and TypeMethodDescription@NotNull RepositoryDataDeprecated.since 5.14 for backward compatibility only@Nullable VcsBambooSpecsDetectionOptions@Nullable VcsBranchDefinitiondefault BambooEntityTypeEntity type of this object, used inBambooEntityOid.@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.@Nullable LonglongGet id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptions@Nullable VcsChangeDetectionOptions@NotNull VcsLocationDefinition@Nullable VcsRepositoryViewerDefinitionbooleanDeprecated.since 5.14 for backward compatibility onlybooleanisLinked()booleanbooleanbooleanbooleanbooleanisShared()Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription, getNameMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.plugin.PluginKeyProvider
getPluginKeyMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Method Details
-
getVcsLocation
-
getBranch
-
getVcsChangeDetectionOptions
-
getVcsBranchDetectionOptions
-
getViewerConfiguration
-
getBambooSpecsDetectionOptions
-
isMarkedForDeletion
boolean isMarkedForDeletion() -
isLinked
boolean isLinked()- Returns:
- true iff this repository is a linked repository
-
isLegacyRepository
Deprecated.since 5.14 for backward compatibility only- Returns:
- true if underlying repository is implemented with old API
-
asLegacyData
Deprecated.since 5.14 for backward compatibility only- Returns:
- this object in old format.
-
getEntityType
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
getParentId
Get id of the repository this inherits data from or null if none. -
getParentOid
Get oid of the repository this inherits data from or null if none.- Since:
- 6.0
-
isRootVcsLinked
boolean isRootVcsLinked()- Returns:
- true if this repository is a linked repository or inherits data (possibly indirectly) from a linked repository
-
isRootVcsProject
boolean isRootVcsProject()- Returns:
- true if this repository is a project repository or inherits data (possibly indirectly) from a project repository
-
getRootVcsRepositoryId
long getRootVcsRepositoryId()Get id of the repository that is the root of the hierarchy this repository belongs to. Returns repository id if this repository is the root. IfisRootVcsLinked()returns true, this method returns id of that linked repository. -
getProjectId
- Specified by:
getProjectIdin interfaceProjectIdProvider- Returns:
- id of project which is associated with this repository, returns null if repository is global.
-