public class VcsRepositoryModuleDescriptorImpl extends AbstractBambooModuleDescriptor<VcsWorkingCopyManager> implements VcsRepositoryModuleDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
DOWNLOAD_RESOURCE_TYPE |
static String |
ICON_RESOURCE |
static String |
POLLING_TRIGGER_KEY |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
SELECTED_REPOSITORY
Constructor and Description |
---|
VcsRepositoryModuleDescriptorImpl(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
BambooSpecsHandler |
getBambooSpecsHandler() |
@Nullable VcsBranchCreator |
getBranchCreator() |
@Nullable VcsBranchDetector |
getBranchDetector() |
@Nullable VcsBuildWarningsUpdater |
getBuildWarningsUpdater() |
@NotNull VcsChangeDetector |
getChangeDetector() |
@Nullable VcsConnectionTester |
getConnectionTester() |
@NotNull String |
getDefaultTriggerKey()
Default trigger key for this repository
If none was set polling trigger key will be returned
|
@NotNull String |
getDefaultVcsViewerKey()
Default web viewer for this repository.
|
@NotNull VcsRepositoryDataExporter |
getExporter() |
@Nullable String |
getIcon()
Returns IMAGE (icon) for specific repository.
|
@Nullable String |
getOptionDescription()
Additional description rendered in repository selection UI.
|
@Nullable VcsPullRequestDetector |
getPullRequestDetector() |
@Nullable VcsTagCreator |
getTagCreator() |
@Nullable VcsTagsHandler |
getTagsHandler() |
@Nullable String |
getTooltipKey()
Returns TRANSLATION key which is used in tooltips.
|
@NotNull String |
getTypeString()
Returns "type" of vcs to be used for variable generation.
|
@Nullable VcsVariableGenerator |
getVariableGenerator() |
@Nullable VcsBranchConfigurator |
getVcsBranchConfigurator() |
@Nullable VcsBranchDetectionOptionsConfigurator |
getVcsBranchDetectionOptionsConfigurator() |
@Nullable VcsChangeDetectionOptionsConfigurator |
getVcsChangeDetectionOptionsConfigurator() |
@Nullable VcsCommitCommenter |
getVcsCommitCommenter() |
@NotNull VcsLocationConfigurator |
getVcsLocationConfigurator() |
@Nullable VcsMavenPomAccessor |
getVcsMavenPomAccessor() |
int |
getWeight() |
@NotNull VcsWorkingCopyManager |
getWorkingCopyManager() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
protected boolean |
isMutable()
Whether modules of this descriptor are supposed to be mutated by external components.
|
boolean |
isPrimary()
Marks repository for PRIMARY (in our case Stash & Bitbucket), is used for rendering.
|
boolean |
providesCustomVariables() |
boolean |
revisionIdsAreUnique()
Return true for vcs systems that uses revision ids that can be considered unique.
|
boolean |
supportsBranchCreation() |
boolean |
supportsBranchDetection() |
boolean |
supportsBranchOverrides() |
boolean |
supportsImportFromMaven() |
boolean |
supportsMerging() |
boolean |
supportsRemoteUpdates() |
boolean |
supportsTagCreation() |
boolean |
supportsTestingConnection() |
disabled, getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, postInit, preInit
assertModuleClassImplements, checkPermissions, destroy, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isDistributedVcs, providesWorkingCopyStatus, supportsBuildWarnings, supportsCommitComment, supportsForkedPullRequestDetection, supportsPullRequestDetection
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
getResourceDescriptor, getResourceDescriptors, getResourceLocation
getName
public static final String ICON_RESOURCE
public static final String DOWNLOAD_RESOURCE_TYPE
public static final String POLLING_TRIGGER_KEY
public VcsRepositoryModuleDescriptorImpl(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
init
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<VcsWorkingCopyManager>
com.atlassian.plugin.PluginParseException
protected boolean isMutable()
AbstractBambooModuleDescriptor
true
, which means a fresh module instance will be created each time AbstractBambooModuleDescriptor.getModule()
is called.
Subclasses that are safe to cache a singleton instance of module throughout the life span of this descriptor
can override this method and return false
.
isMutable
in class AbstractBambooModuleDescriptor<VcsWorkingCopyManager>
true
if modules of this descriptor are mutable@NotNull public @NotNull VcsLocationConfigurator getVcsLocationConfigurator()
getVcsLocationConfigurator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsChangeDetectionOptionsConfigurator getVcsChangeDetectionOptionsConfigurator()
getVcsChangeDetectionOptionsConfigurator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsBranchDetectionOptionsConfigurator getVcsBranchDetectionOptionsConfigurator()
getVcsBranchDetectionOptionsConfigurator
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull VcsChangeDetector getChangeDetector()
getChangeDetector
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsTagsHandler getTagsHandler()
getTagsHandler
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull VcsWorkingCopyManager getWorkingCopyManager()
getWorkingCopyManager
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsBranchConfigurator getVcsBranchConfigurator()
getVcsBranchConfigurator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsBranchDetector getBranchDetector()
getBranchDetector
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsPullRequestDetector getPullRequestDetector()
getPullRequestDetector
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsCommitCommenter getVcsCommitCommenter()
getVcsCommitCommenter
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsBuildWarningsUpdater getBuildWarningsUpdater()
getBuildWarningsUpdater
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsBranchCreator getBranchCreator()
getBranchCreator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsTagCreator getTagCreator()
getTagCreator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsConnectionTester getConnectionTester()
getConnectionTester
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsVariableGenerator getVariableGenerator()
getVariableGenerator
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsMavenPomAccessor getVcsMavenPomAccessor()
getVcsMavenPomAccessor
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull VcsRepositoryDataExporter getExporter()
getExporter
in interface VcsRepositoryModuleDescriptor
public BambooSpecsHandler getBambooSpecsHandler()
getBambooSpecsHandler
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable String getOptionDescription()
VcsRepositoryModuleDescriptor
getOptionDescription
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable String getIcon()
VcsRepositoryModuleDescriptor
getIcon
in interface VcsRepositoryModuleDescriptor
@Nullable public @Nullable String getTooltipKey()
VcsRepositoryModuleDescriptor
getTooltipKey
in interface VcsRepositoryModuleDescriptor
public boolean isPrimary()
VcsRepositoryModuleDescriptor
isPrimary
in interface VcsRepositoryModuleDescriptor
public int getWeight()
getWeight
in interface com.atlassian.plugin.web.descriptors.WeightedDescriptor
public boolean supportsBranchDetection()
supportsBranchDetection
in interface VcsRepositoryModuleDescriptor
public boolean supportsBranchOverrides()
supportsBranchOverrides
in interface VcsRepositoryModuleDescriptor
public boolean supportsBranchCreation()
supportsBranchCreation
in interface VcsRepositoryModuleDescriptor
public boolean supportsTagCreation()
supportsTagCreation
in interface VcsRepositoryModuleDescriptor
public boolean providesCustomVariables()
providesCustomVariables
in interface VcsRepositoryModuleDescriptor
public boolean supportsMerging()
supportsMerging
in interface VcsRepositoryModuleDescriptor
public boolean supportsRemoteUpdates()
supportsRemoteUpdates
in interface VcsRepositoryModuleDescriptor
public boolean supportsTestingConnection()
supportsTestingConnection
in interface VcsRepositoryModuleDescriptor
public boolean supportsImportFromMaven()
supportsImportFromMaven
in interface VcsRepositoryModuleDescriptor
public boolean revisionIdsAreUnique()
VcsRepositoryModuleDescriptor
revisionIdsAreUnique
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull String getTypeString()
VcsRepositoryModuleDescriptor
getTypeString
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull String getDefaultTriggerKey()
VcsRepositoryModuleDescriptor
getDefaultTriggerKey
in interface VcsRepositoryModuleDescriptor
@NotNull public @NotNull String getDefaultVcsViewerKey()
VcsRepositoryModuleDescriptor
getDefaultVcsViewerKey
in interface VcsRepositoryModuleDescriptor
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.