Interface PartialVcsRepositoryData
-
- All Superinterfaces:
BambooIdProvider,DescriptionProvider,ImmutableEntityWithOid,NameProvider,PluginKeyProvider,ProjectIdProvider,Versionable
- All Known Implementing Classes:
PartialVcsRepositoryDataImpl
public interface PartialVcsRepositoryData extends BambooIdProvider, DescriptionProvider, ImmutableEntityWithOid, PluginKeyProvider, ProjectIdProvider, Versionable
Low level configuration view of a repository. Should only be used to handle configuration actions and storage. Getters on configurations will only return not null value if that configuration part is overridden.- Since:
- 5.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @NotNull RepositoryDataasLegacyData()Deprecated.since 5.14 for backward compatibility only@Nullable VcsBambooSpecsDetectionOptionsgetBambooSpecsConfiguration()@Nullable VcsBranchDefinitiongetBranch()@NotNull VcsRepositoryDatagetCompleteData()Complete view on this configuration.default BambooEntityTypegetEntityType()Entity type of this object, used inBambooEntityOid.@Nullable VcsRepositoryDatagetInheritedData()Complete view on a configuration of a parent repository or null if there's no parent.@Nullable LonggetParentId()Get id of the repository this inherits data from or null if none.@Nullable BambooEntityOidgetParentOid()Get oid of the repository this inherits data from or null if none.@Nullable LonggetProjectId()longgetRootVcsRepositoryId()Get id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptionsgetVcsBranchDetectionOptions()@Nullable VcsChangeDetectionOptionsgetVcsChangeDetectionOptions()@Nullable VcsLocationDefinitiongetVcsLocation()@Nullable VcsRepositoryViewerDefinitiongetViewerConfiguration()booleanisAncestorMarkedForDeletion()booleanisLegacyRepository()Deprecated.since 5.14 for backward compatibility onlybooleanisLinked()booleanisMarkedForDeletion()booleanisRootVcsLinked()booleanisRootVcsProjectRepository()booleanisRootVcsShared()booleanisShared()booleanoverridesBranch()booleanoverridesBranchDetectionOptions()booleanoverridesChangeDetectionOptions()booleanoverridesLocation()-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription, getName
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.plugin.PluginKeyProvider
getPluginKey
-
Methods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
-
-
-
Method Detail
-
getVcsLocation
@Nullable @Nullable VcsLocationDefinition getVcsLocation()
-
getBranch
@Nullable @Nullable VcsBranchDefinition getBranch()
-
getVcsChangeDetectionOptions
@Nullable @Nullable VcsChangeDetectionOptions getVcsChangeDetectionOptions()
-
getVcsBranchDetectionOptions
@Nullable @Nullable VcsBranchDetectionOptions getVcsBranchDetectionOptions()
-
getBambooSpecsConfiguration
@Nullable @Nullable VcsBambooSpecsDetectionOptions getBambooSpecsConfiguration()
-
getViewerConfiguration
@Nullable @Nullable VcsRepositoryViewerDefinition getViewerConfiguration()
-
getProjectId
@Nullable @Nullable Long getProjectId()
- Specified by:
getProjectIdin interfaceProjectIdProvider- Returns:
- id of project which is associated with this repository, returns null if repository is either global or plan.
-
isMarkedForDeletion
boolean isMarkedForDeletion()
-
isLinked
boolean isLinked()
-
isShared
boolean isShared()
-
isRootVcsLinked
boolean isRootVcsLinked()
- Returns:
- true if this repository is a linked repository or inherits data (possibly indirectly) from a linked repository
-
isRootVcsProjectRepository
boolean isRootVcsProjectRepository()
- Returns:
- true if this repository is a project repository or inherits data (possibly indirectly) from a project repository
-
isRootVcsShared
boolean isRootVcsShared()
- Returns:
- true if this repository is either linked or project repository or inherits data (possibly indirectly) from a shared repository
-
isLegacyRepository
@Deprecated boolean isLegacyRepository()
Deprecated.since 5.14 for backward compatibility only- Returns:
- true if underlying repository is implemented with old API
-
asLegacyData
@Deprecated @NotNull @NotNull RepositoryData asLegacyData()
Deprecated.since 5.14 for backward compatibility only- Returns:
- this object in old format.
-
isAncestorMarkedForDeletion
boolean isAncestorMarkedForDeletion()
- Returns:
- true if this repository or any of its ancestors of this repository is marked for deletion
- Since:
- 12.0
-
getEntityType
default BambooEntityType getEntityType()
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
getInheritedData
@Nullable @Nullable VcsRepositoryData getInheritedData()
Complete view on a configuration of a parent repository or null if there's no parent.
-
getCompleteData
@NotNull @NotNull VcsRepositoryData getCompleteData()
Complete view on this configuration.
-
getParentId
@Nullable @Nullable Long getParentId()
Get id of the repository this inherits data from or null if none.
-
getParentOid
@Nullable @Nullable BambooEntityOid getParentOid()
Get oid of the repository this inherits data from or null if none.- Since:
- 6.0
-
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.
-
overridesLocation
boolean overridesLocation()
-
overridesBranch
boolean overridesBranch()
-
overridesChangeDetectionOptions
boolean overridesChangeDetectionOptions()
-
overridesBranchDetectionOptions
boolean overridesBranchDetectionOptions()
-
-