Class CompleteVcsRepositoryData
java.lang.Object
com.atlassian.bamboo.vcs.configuration.CompleteVcsRepositoryData
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,ProjectIdProvider
,PluginKeyProvider
,DescriptionProvider
,NameProvider
,VcsRepositoryData
,Versionable
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionCompleteVcsRepositoryData
(@Nullable VcsRepositoryData inheritedData, @NotNull PartialVcsRepositoryData overrides) -
Method Summary
Modifier and TypeMethodDescription@NotNull RepositoryData
@Nullable VcsBambooSpecsDetectionOptions
@NotNull VcsBranchDefinition
@Nullable String
long
getId()
@NotNull String
getName()
getOid()
OID assigned to this object.@Nullable Long
Get id of the repository this inherits data from or null if none.@Nullable BambooEntityOid
Get oid of the repository this inherits data from or null if none.@NotNull String
long
Get id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptions
@NotNull VcsChangeDetectionOptions
@NotNull VcsLocationDefinition
@NotNull Long
Returns the version number of this object.@Nullable VcsRepositoryViewerDefinition
boolean
boolean
isLinked()
boolean
boolean
boolean
boolean
boolean
isShared()
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 Details
-
CompleteVcsRepositoryData
public CompleteVcsRepositoryData(@Nullable @Nullable VcsRepositoryData inheritedData, @NotNull @NotNull PartialVcsRepositoryData overrides)
-
-
Method Details
-
getPluginKey
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getVcsLocation
- Specified by:
getVcsLocation
in interfaceVcsRepositoryData
-
getBranch
- Specified by:
getBranch
in interfaceVcsRepositoryData
-
getVcsChangeDetectionOptions
- Specified by:
getVcsChangeDetectionOptions
in interfaceVcsRepositoryData
-
getVcsBranchDetectionOptions
- Specified by:
getVcsBranchDetectionOptions
in interfaceVcsRepositoryData
-
getBambooSpecsDetectionOptions
- Specified by:
getBambooSpecsDetectionOptions
in interfaceVcsRepositoryData
-
getViewerConfiguration
- Specified by:
getViewerConfiguration
in interfaceVcsRepositoryData
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceVcsRepositoryData
-
isLinked
public boolean isLinked()- Specified by:
isLinked
in interfaceVcsRepositoryData
- Returns:
- true iff this repository is a linked repository
-
isRootVcsLinked
public boolean isRootVcsLinked()- Specified by:
isRootVcsLinked
in 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:
isRootVcsProject
in interfaceVcsRepositoryData
- Returns:
- true if this repository is a project repository or inherits data (possibly indirectly) from a project repository
-
isLegacyRepository
public boolean isLegacyRepository()- Specified by:
isLegacyRepository
in interfaceVcsRepositoryData
- Returns:
- true if underlying repository is implemented with old API
-
asLegacyData
- Specified by:
asLegacyData
in interfaceVcsRepositoryData
- Returns:
- this object in old format.
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
-
getOid
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
-
getParentId
Description copied from interface:VcsRepositoryData
Get id of the repository this inherits data from or null if none.- Specified by:
getParentId
in interfaceVcsRepositoryData
-
getParentOid
Description copied from interface:VcsRepositoryData
Get oid of the repository this inherits data from or null if none.- Specified by:
getParentOid
in interfaceVcsRepositoryData
-
getRootVcsRepositoryId
public long getRootVcsRepositoryId()Description copied from interface:VcsRepositoryData
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. IfVcsRepositoryData.isRootVcsLinked()
returns true, this method returns id of that linked repository.- Specified by:
getRootVcsRepositoryId
in interfaceVcsRepositoryData
-
getProjectId
- Specified by:
getProjectId
in interfaceProjectIdProvider
- Specified by:
getProjectId
in interfaceVcsRepositoryData
- Returns:
- id of project which is associated with this repository, returns null if repository is global.
-
getVersion
Description copied from interface:Versionable
Returns the version number of this object.- Specified by:
getVersion
in interfaceVersionable
- Returns:
- the version number
-