Class CompleteVcsRepositoryData
- java.lang.Object
-
- com.atlassian.bamboo.vcs.configuration.CompleteVcsRepositoryData
-
- All Implemented Interfaces:
BambooIdProvider,BambooPluginDataIdProvider,ImmutableEntityWithOid,ProjectIdProvider,PluginKeyProvider,DescriptionProvider,NameProvider,VcsRepositoryData,Versionable,Serializable
public class CompleteVcsRepositoryData extends Object implements VcsRepositoryData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompleteVcsRepositoryData(@Nullable VcsRepositoryData inheritedData, @NotNull PartialVcsRepositoryData overrides)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.vcs.configuration.VcsRepositoryData
getEntityType
-
-
-
-
Constructor Detail
-
CompleteVcsRepositoryData
public CompleteVcsRepositoryData(@Nullable @Nullable VcsRepositoryData inheritedData, @NotNull @NotNull PartialVcsRepositoryData overrides)
-
-
Method Detail
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
getVcsLocation
@NotNull public @NotNull VcsLocationDefinition getVcsLocation()
- Specified by:
getVcsLocationin interfaceVcsRepositoryData
-
getBranch
@NotNull public @NotNull VcsBranchDefinition getBranch()
- Specified by:
getBranchin interfaceVcsRepositoryData
-
getVcsChangeDetectionOptions
@NotNull public @NotNull VcsChangeDetectionOptions getVcsChangeDetectionOptions()
- Specified by:
getVcsChangeDetectionOptionsin interfaceVcsRepositoryData
-
getVcsBranchDetectionOptions
@Nullable public @Nullable VcsBranchDetectionOptions getVcsBranchDetectionOptions()
- Specified by:
getVcsBranchDetectionOptionsin interfaceVcsRepositoryData
-
getBambooSpecsDetectionOptions
@Nullable public @Nullable VcsBambooSpecsDetectionOptions getBambooSpecsDetectionOptions()
- Specified by:
getBambooSpecsDetectionOptionsin interfaceVcsRepositoryData
-
getViewerConfiguration
@Nullable public @Nullable VcsRepositoryViewerDefinition getViewerConfiguration()
- Specified by:
getViewerConfigurationin interfaceVcsRepositoryData
-
isMarkedForDeletion
public boolean isMarkedForDeletion()
- Specified by:
isMarkedForDeletionin interfaceVcsRepositoryData
-
isLinked
public boolean isLinked()
- Specified by:
isLinkedin interfaceVcsRepositoryData- Returns:
- true iff this repository is a linked repository
-
isShared
public boolean isShared()
- Specified by:
isSharedin interfaceVcsRepositoryData- Returns:
- true iff this repository is a linked repository or a project repository
-
isRootVcsLinked
public boolean isRootVcsLinked()
- Specified by:
isRootVcsLinkedin interfaceVcsRepositoryData- Returns:
- true if this repository is a linked repository or inherits data (possibly indirectly) from a linked repository
-
isRootVcsProject
public boolean isRootVcsProject()
- Specified by:
isRootVcsProjectin interfaceVcsRepositoryData- Returns:
- true if this repository is a project repository or inherits data (possibly indirectly) from a project repository
-
isRootVcsShared
public boolean isRootVcsShared()
- Specified by:
isRootVcsSharedin interfaceVcsRepositoryData- Returns:
- true if this repository is either linked or project repository or inherits data (possibly indirectly) from a shared repository
-
isLegacyRepository
public boolean isLegacyRepository()
- Specified by:
isLegacyRepositoryin interfaceVcsRepositoryData- Returns:
- true if underlying repository is implemented with old API
-
asLegacyData
@NotNull public @NotNull RepositoryData asLegacyData()
- Specified by:
asLegacyDatain interfaceVcsRepositoryData- Returns:
- this object in old format.
-
isAncestorMarkedForDeletion
public boolean isAncestorMarkedForDeletion()
- Specified by:
isAncestorMarkedForDeletionin interfaceVcsRepositoryData- 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
-
getOid
public BambooEntityOid 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
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider
-
getDescription
@Nullable public @Nullable String getDescription()
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
getParentId
@Nullable public @Nullable Long getParentId()
Description copied from interface:VcsRepositoryDataGet id of the repository this inherits data from or null if none.- Specified by:
getParentIdin interfaceVcsRepositoryData
-
getParentOid
@Nullable public @Nullable BambooEntityOid getParentOid()
Description copied from interface:VcsRepositoryDataGet oid of the repository this inherits data from or null if none.- Specified by:
getParentOidin interfaceVcsRepositoryData
-
getRootVcsRepositoryId
public long getRootVcsRepositoryId()
Description copied from interface:VcsRepositoryDataGet id of the repository that is the root of the hierarchy this repository belongs to. Returns repository id if this repository is the root. IfVcsRepositoryData.isRootVcsLinked()returns true, this method returns id of that linked repository.- Specified by:
getRootVcsRepositoryIdin interfaceVcsRepositoryData
-
getProjectId
public Long getProjectId()
- Specified by:
getProjectIdin interfaceProjectIdProvider- Specified by:
getProjectIdin interfaceVcsRepositoryData- Returns:
- id of project which is associated with this repository, returns null if repository is global.
-
getVersion
@NotNull public @NotNull Long getVersion()
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
-