Class VcsRepositoryDataImpl
java.lang.Object
com.atlassian.bamboo.vcs.configuration.VcsRepositoryDataImpl
- All Implemented Interfaces:
BambooIdProvider,ImmutableEntityWithOid,ProjectIdProvider,PluginKeyProvider,DescriptionProvider,NameProvider,VcsRepositoryData,Versionable,Serializable
- Direct Known Subclasses:
PlanRepositoryDefinitionImpl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull RepositoryDataboolean@Nullable VcsBambooSpecsDetectionOptions@Nullable VcsBranchDefinition@Nullable StringlonggetId()@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 StringlongGet id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptions@Nullable VcsChangeDetectionOptions@NotNull VcsLocationDefinition@NotNull LongReturns the version number of this object.@Nullable VcsRepositoryViewerDefinitioninthashCode()booleanbooleanisLinked()booleanbooleanbooleanbooleanbooleanisShared()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.vcs.configuration.VcsRepositoryData
getEntityType
-
Constructor Details
-
VcsRepositoryDataImpl
-
-
Method Details
-
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 interfaceVcsRepositoryData
-
getBranch
- Specified by:
getBranchin interfaceVcsRepositoryData
-
getVcsChangeDetectionOptions
- Specified by:
getVcsChangeDetectionOptionsin interfaceVcsRepositoryData
-
getVcsBranchDetectionOptions
- Specified by:
getVcsBranchDetectionOptionsin interfaceVcsRepositoryData
-
getBambooSpecsDetectionOptions
- Specified by:
getBambooSpecsDetectionOptionsin interfaceVcsRepositoryData
-
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
-
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
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
isLegacyRepository
public boolean isLegacyRepository()- Specified by:
isLegacyRepositoryin interfaceVcsRepositoryData- Returns:
- true if underlying repository is implemented with old API
-
getParentId
Description copied from interface:VcsRepositoryDataGet id of the repository this inherits data from or null if none.- Specified by:
getParentIdin interfaceVcsRepositoryData
-
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
- 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
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
asLegacyData
- Specified by:
asLegacyDatain interfaceVcsRepositoryData- Returns:
- this object in old format.
-
equals
-
hashCode
public int hashCode()
-