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
public class VcsRepositoryDataImpl extends Object implements VcsRepositoryData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VcsRepositoryDataImpl(@NotNull VcsRepositoryData other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull RepositoryData
asLegacyData()
boolean
equals(Object o)
@Nullable VcsBambooSpecsDetectionOptions
getBambooSpecsDetectionOptions()
@Nullable VcsBranchDefinition
getBranch()
@Nullable String
getDescription()
long
getId()
@NotNull String
getName()
BambooEntityOid
getOid()
OID assigned to this object.@Nullable Long
getParentId()
Get id of the repository this inherits data from or null if none.@Nullable BambooEntityOid
getParentOid()
Get oid of the repository this inherits data from or null if none.@NotNull String
getPluginKey()
Long
getProjectId()
long
getRootVcsRepositoryId()
Get id of the repository that is the root of the hierarchy this repository belongs to.@Nullable VcsBranchDetectionOptions
getVcsBranchDetectionOptions()
@Nullable VcsChangeDetectionOptions
getVcsChangeDetectionOptions()
@NotNull VcsLocationDefinition
getVcsLocation()
@NotNull Long
getVersion()
Returns the version number of this object.@Nullable VcsRepositoryViewerDefinition
getViewerConfiguration()
int
hashCode()
boolean
isLegacyRepository()
boolean
isLinked()
boolean
isMarkedForDeletion()
boolean
isRootVcsLinked()
boolean
isRootVcsProject()
boolean
isRootVcsShared()
boolean
isShared()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.vcs.configuration.VcsRepositoryData
getEntityType
-
-
-
-
Constructor Detail
-
VcsRepositoryDataImpl
public VcsRepositoryDataImpl(@NotNull @NotNull VcsRepositoryData other)
-
-
Method Detail
-
getOid
public BambooEntityOid 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
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getVcsLocation
@NotNull public @NotNull VcsLocationDefinition getVcsLocation()
- Specified by:
getVcsLocation
in interfaceVcsRepositoryData
-
getBranch
@Nullable public @Nullable VcsBranchDefinition getBranch()
- Specified by:
getBranch
in interfaceVcsRepositoryData
-
getVcsChangeDetectionOptions
@Nullable public @Nullable VcsChangeDetectionOptions getVcsChangeDetectionOptions()
- Specified by:
getVcsChangeDetectionOptions
in interfaceVcsRepositoryData
-
getVcsBranchDetectionOptions
@Nullable public @Nullable VcsBranchDetectionOptions getVcsBranchDetectionOptions()
- Specified by:
getVcsBranchDetectionOptions
in interfaceVcsRepositoryData
-
getBambooSpecsDetectionOptions
@Nullable public @Nullable VcsBambooSpecsDetectionOptions getBambooSpecsDetectionOptions()
- Specified by:
getBambooSpecsDetectionOptions
in interfaceVcsRepositoryData
-
getViewerConfiguration
@Nullable public @Nullable VcsRepositoryViewerDefinition 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
-
isShared
public boolean isShared()
- Specified by:
isShared
in interfaceVcsRepositoryData
- Returns:
- true iff this repository is a linked repository or a project 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
-
isRootVcsShared
public boolean isRootVcsShared()
- Specified by:
isRootVcsShared
in interfaceVcsRepositoryData
- Returns:
- true if this repository is either linked or project repository or inherits data (possibly indirectly) from a shared repository
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
getDescription
@Nullable public @Nullable String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
-
isLegacyRepository
public boolean isLegacyRepository()
- Specified by:
isLegacyRepository
in interfaceVcsRepositoryData
- Returns:
- true if underlying repository is implemented with old API
-
getParentId
@Nullable public @Nullable Long 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
@Nullable public @Nullable BambooEntityOid 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
public Long 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
@NotNull public @NotNull Long getVersion()
Description copied from interface:Versionable
Returns the version number of this object.- Specified by:
getVersion
in interfaceVersionable
- Returns:
- the version number
-
asLegacyData
@NotNull public @NotNull RepositoryData asLegacyData()
- Specified by:
asLegacyData
in interfaceVcsRepositoryData
- Returns:
- this object in old format.
-
-