Class LegacyRepositoryModuleDescriptor
java.lang.Object
com.atlassian.bamboo.vcs.configuration.legacy.LegacyRepositoryModuleDescriptor
- All Implemented Interfaces:
NameProvider
,VcsRepositoryModuleDescriptor
,com.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.web.api.descriptors.WeightedDescriptor
public class LegacyRepositoryModuleDescriptor
extends Object
implements VcsRepositoryModuleDescriptor
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.vcs.module.VcsRepositoryModuleDescriptor
SELECTED_REPOSITORY
-
Constructor Summary
ConstructorDescriptionLegacyRepositoryModuleDescriptor
(RepositoryModuleDescriptor repositoryModuleDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
@Nullable VcsBranchCreator
@Nullable VcsBranchDetector
@NotNull VcsChangeDetector
@Nullable VcsConnectionTester
@NotNull String
Default trigger key for this repository If none was set polling trigger key will be returned@NotNull String
Default web viewer for this repository.@NotNull VcsRepositoryDataExporter
@Nullable String
getIcon()
Returns IMAGE (icon) for specific repository.getKey()
@NotNull Repository
getName()
@Nullable String
Additional description rendered in repository selection UI.com.atlassian.plugin.Plugin
@Nullable VcsPullRequestDetector
com.atlassian.plugin.elements.ResourceDescriptor
getResourceDescriptor
(String type, String name) List<com.atlassian.plugin.elements.ResourceDescriptor>
com.atlassian.plugin.elements.ResourceLocation
getResourceLocation
(String type, String name) @Nullable VcsTagCreator
@Nullable VcsTagsHandler
@Nullable String
Returns TRANSLATION key which is used in tooltips.@NotNull String
Returns "type" of vcs to be used for variable generation.@Nullable VcsVariableGenerator
@Nullable VcsBranchConfigurator
@Nullable VcsBranchDetectionOptionsConfigurator
@Nullable VcsChangeDetectionOptionsConfigurator
@NotNull VcsLocationConfigurator
@Nullable VcsMavenPomAccessor
int
@NotNull VcsWorkingCopyManager
void
init
(@NotNull com.atlassian.plugin.Plugin plugin, @NotNull com.atlassian.plugin.module.Element element) boolean
boolean
boolean
Marks repository for PRIMARY (in our case Stash & Bitbucket), is used for rendering.boolean
boolean
boolean
boolean
Return true for vcs systems that uses revision ids that can be considered unique.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
equals, getDisplayName, hashCode, isBroken, setBroken
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
Methods inherited from interface com.atlassian.bamboo.vcs.module.VcsRepositoryModuleDescriptor
getBambooSpecsHandler, getBuildWarningsUpdater, getGitPluginConfigurationTransformer, getVcsCommitCommenter, isDistributedVcs, supportsBuildWarnings, supportsCommitComment, supportsForkedPullRequestDetection, supportsPullRequestDetection
-
Constructor Details
-
LegacyRepositoryModuleDescriptor
-
-
Method Details
-
getCompleteKey
- Specified by:
getCompleteKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getPluginKey
- Specified by:
getPluginKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getKey
- Specified by:
getKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getName
- Specified by:
getName
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
- Specified by:
getName
in interfaceNameProvider
-
getDescription
- Specified by:
getDescription
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getModuleClass
- Specified by:
getModuleClass
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
init
public void init(@NotNull @NotNull com.atlassian.plugin.Plugin plugin, @NotNull @NotNull com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException - Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
- Throws:
com.atlassian.plugin.PluginParseException
-
isEnabledByDefault
public boolean isEnabledByDefault()- Specified by:
isEnabledByDefault
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
isSystemModule
public boolean isSystemModule()- Specified by:
isSystemModule
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
destroy
public void destroy()- Specified by:
destroy
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getMinJavaVersion
- Specified by:
getMinJavaVersion
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()- Specified by:
satisfiesMinJavaVersion
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getParams
- Specified by:
getParams
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getI18nNameKey
- Specified by:
getI18nNameKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getDescriptionKey
- Specified by:
getDescriptionKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getPlugin
public com.atlassian.plugin.Plugin getPlugin()- Specified by:
getPlugin
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getResourceDescriptors
- Specified by:
getResourceDescriptors
in interfacecom.atlassian.plugin.Resourced
-
getResourceDescriptor
public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name) - Specified by:
getResourceDescriptor
in interfacecom.atlassian.plugin.Resourced
-
getResourceLocation
- Specified by:
getResourceLocation
in interfacecom.atlassian.plugin.Resourced
-
getModule
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getIcon
Description copied from interface:VcsRepositoryModuleDescriptor
Returns IMAGE (icon) for specific repository.- Specified by:
getIcon
in interfaceVcsRepositoryModuleDescriptor
- Returns:
- IMAGE path
-
getOptionDescription
Description copied from interface:VcsRepositoryModuleDescriptor
Additional description rendered in repository selection UI.- Specified by:
getOptionDescription
in interfaceVcsRepositoryModuleDescriptor
-
getTooltipKey
Description copied from interface:VcsRepositoryModuleDescriptor
Returns TRANSLATION key which is used in tooltips.- Specified by:
getTooltipKey
in interfaceVcsRepositoryModuleDescriptor
- Returns:
- TRANSLATION key
-
isPrimary
public boolean isPrimary()Description copied from interface:VcsRepositoryModuleDescriptor
Marks repository for PRIMARY (in our case Stash & Bitbucket), is used for rendering.- Specified by:
isPrimary
in interfaceVcsRepositoryModuleDescriptor
-
getWeight
public int getWeight()- Specified by:
getWeight
in interfacecom.atlassian.plugin.web.api.descriptors.WeightedDescriptor
-
getLegacyModule
-
getLegacyRepositoryModuleDescriptor
-
getVcsLocationConfigurator
- Specified by:
getVcsLocationConfigurator
in interfaceVcsRepositoryModuleDescriptor
-
getVcsChangeDetectionOptionsConfigurator
@Nullable public @Nullable VcsChangeDetectionOptionsConfigurator getVcsChangeDetectionOptionsConfigurator()- Specified by:
getVcsChangeDetectionOptionsConfigurator
in interfaceVcsRepositoryModuleDescriptor
-
getVcsBranchDetectionOptionsConfigurator
@Nullable public @Nullable VcsBranchDetectionOptionsConfigurator getVcsBranchDetectionOptionsConfigurator()- Specified by:
getVcsBranchDetectionOptionsConfigurator
in interfaceVcsRepositoryModuleDescriptor
-
getVcsBranchConfigurator
- Specified by:
getVcsBranchConfigurator
in interfaceVcsRepositoryModuleDescriptor
-
getChangeDetector
- Specified by:
getChangeDetector
in interfaceVcsRepositoryModuleDescriptor
-
getTagsHandler
- Specified by:
getTagsHandler
in interfaceVcsRepositoryModuleDescriptor
-
getWorkingCopyManager
- Specified by:
getWorkingCopyManager
in interfaceVcsRepositoryModuleDescriptor
-
getConnectionTester
- Specified by:
getConnectionTester
in interfaceVcsRepositoryModuleDescriptor
-
getBranchDetector
- Specified by:
getBranchDetector
in interfaceVcsRepositoryModuleDescriptor
-
getBranchCreator
- Specified by:
getBranchCreator
in interfaceVcsRepositoryModuleDescriptor
-
getTagCreator
- Specified by:
getTagCreator
in interfaceVcsRepositoryModuleDescriptor
-
getPullRequestDetector
- Specified by:
getPullRequestDetector
in interfaceVcsRepositoryModuleDescriptor
-
getVariableGenerator
- Specified by:
getVariableGenerator
in interfaceVcsRepositoryModuleDescriptor
-
getVcsMavenPomAccessor
- Specified by:
getVcsMavenPomAccessor
in interfaceVcsRepositoryModuleDescriptor
-
getExporter
- Specified by:
getExporter
in interfaceVcsRepositoryModuleDescriptor
-
supportsMerging
public boolean supportsMerging()- Specified by:
supportsMerging
in interfaceVcsRepositoryModuleDescriptor
-
supportsRemoteUpdates
public boolean supportsRemoteUpdates()- Specified by:
supportsRemoteUpdates
in interfaceVcsRepositoryModuleDescriptor
-
supportsBranchDetection
public boolean supportsBranchDetection()- Specified by:
supportsBranchDetection
in interfaceVcsRepositoryModuleDescriptor
-
supportsBranchOverrides
public boolean supportsBranchOverrides()- Specified by:
supportsBranchOverrides
in interfaceVcsRepositoryModuleDescriptor
-
supportsBranchCreation
public boolean supportsBranchCreation()- Specified by:
supportsBranchCreation
in interfaceVcsRepositoryModuleDescriptor
-
supportsTagCreation
public boolean supportsTagCreation()- Specified by:
supportsTagCreation
in interfaceVcsRepositoryModuleDescriptor
-
providesCustomVariables
public boolean providesCustomVariables()- Specified by:
providesCustomVariables
in interfaceVcsRepositoryModuleDescriptor
-
supportsTestingConnection
public boolean supportsTestingConnection()- Specified by:
supportsTestingConnection
in interfaceVcsRepositoryModuleDescriptor
-
supportsImportFromMaven
public boolean supportsImportFromMaven()- Specified by:
supportsImportFromMaven
in interfaceVcsRepositoryModuleDescriptor
-
providesWorkingCopyStatus
public boolean providesWorkingCopyStatus()- Specified by:
providesWorkingCopyStatus
in interfaceVcsRepositoryModuleDescriptor
-
revisionIdsAreUnique
public boolean revisionIdsAreUnique()Description copied from interface:VcsRepositoryModuleDescriptor
Return true for vcs systems that uses revision ids that can be considered unique. For example Git uses hashes that have low collision chance, so it follows that 2 commits with that same revision id are in fact the same commit. Subversion, on the other hand, uses cardinal numbers which are obviously not unique.- Specified by:
revisionIdsAreUnique
in interfaceVcsRepositoryModuleDescriptor
-
getTypeString
Description copied from interface:VcsRepositoryModuleDescriptor
Returns "type" of vcs to be used for variable generation.- Specified by:
getTypeString
in interfaceVcsRepositoryModuleDescriptor
-
getDefaultTriggerKey
Description copied from interface:VcsRepositoryModuleDescriptor
Default trigger key for this repository If none was set polling trigger key will be returned- Specified by:
getDefaultTriggerKey
in interfaceVcsRepositoryModuleDescriptor
- Returns:
- trigger key
-
getDefaultVcsViewerKey
Description copied from interface:VcsRepositoryModuleDescriptor
Default web viewer for this repository.- Specified by:
getDefaultVcsViewerKey
in interfaceVcsRepositoryModuleDescriptor
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-