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.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
Constructors Constructor Description LegacyRepositoryModuleDescriptor(RepositoryModuleDescriptor repositoryModuleDescriptor)
-
Method Summary
-
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, init, isBroken, setBroken
-
Methods inherited from interface com.atlassian.bamboo.vcs.module.VcsRepositoryModuleDescriptor
getBambooSpecsHandler, getBuildWarningsUpdater, getVcsCommitCommenter, isDistributedVcs, supportsBuildWarnings, supportsCommitComment, supportsForkedPullRequestDetection, supportsPullRequestDetection
-
-
-
-
Constructor Detail
-
LegacyRepositoryModuleDescriptor
public LegacyRepositoryModuleDescriptor(RepositoryModuleDescriptor repositoryModuleDescriptor)
-
-
Method Detail
-
getCompleteKey
public String getCompleteKey()
- Specified by:
getCompleteKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getPluginKey
public String getPluginKey()
- Specified by:
getPluginKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getKey
public String getKey()
- Specified by:
getKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getName
public String getName()
- Specified by:
getName
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
- Specified by:
getName
in interfaceNameProvider
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getModuleClass
public Class<VcsWorkingCopyManager> getModuleClass()
- Specified by:
getModuleClass
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
init
public void init(@NotNull @NotNull com.atlassian.plugin.Plugin plugin, @NotNull @NotNull org.dom4j.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
public Float getMinJavaVersion()
- Specified by:
getMinJavaVersion
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()
- Specified by:
satisfiesMinJavaVersion
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getParams
public Map<String,String> getParams()
- Specified by:
getParams
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getI18nNameKey
public String getI18nNameKey()
- Specified by:
getI18nNameKey
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getDescriptionKey
public String 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
public List<com.atlassian.plugin.elements.ResourceDescriptor> 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
public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
- Specified by:
getResourceLocation
in interfacecom.atlassian.plugin.Resourced
-
getModule
public VcsWorkingCopyManager getModule()
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getIcon
@Nullable public @Nullable String getIcon()
Description copied from interface:VcsRepositoryModuleDescriptor
Returns IMAGE (icon) for specific repository.- Specified by:
getIcon
in interfaceVcsRepositoryModuleDescriptor
- Returns:
- IMAGE path
-
getOptionDescription
@Nullable public @Nullable String getOptionDescription()
Description copied from interface:VcsRepositoryModuleDescriptor
Additional description rendered in repository selection UI.- Specified by:
getOptionDescription
in interfaceVcsRepositoryModuleDescriptor
-
getTooltipKey
@Nullable public @Nullable String 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.descriptors.WeightedDescriptor
-
getLegacyModule
@NotNull public @NotNull Repository getLegacyModule()
-
getLegacyRepositoryModuleDescriptor
public RepositoryModuleDescriptor getLegacyRepositoryModuleDescriptor()
-
getVcsLocationConfigurator
@NotNull public @NotNull VcsLocationConfigurator 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
@Nullable public @Nullable VcsBranchConfigurator getVcsBranchConfigurator()
- Specified by:
getVcsBranchConfigurator
in interfaceVcsRepositoryModuleDescriptor
-
getChangeDetector
@NotNull public @NotNull VcsChangeDetector getChangeDetector()
- Specified by:
getChangeDetector
in interfaceVcsRepositoryModuleDescriptor
-
getTagsHandler
@Nullable public @Nullable VcsTagsHandler getTagsHandler()
- Specified by:
getTagsHandler
in interfaceVcsRepositoryModuleDescriptor
-
getWorkingCopyManager
@NotNull public @NotNull VcsWorkingCopyManager getWorkingCopyManager()
- Specified by:
getWorkingCopyManager
in interfaceVcsRepositoryModuleDescriptor
-
getConnectionTester
@Nullable public @Nullable VcsConnectionTester getConnectionTester()
- Specified by:
getConnectionTester
in interfaceVcsRepositoryModuleDescriptor
-
getBranchDetector
@Nullable public @Nullable VcsBranchDetector getBranchDetector()
- Specified by:
getBranchDetector
in interfaceVcsRepositoryModuleDescriptor
-
getBranchCreator
@Nullable public @Nullable VcsBranchCreator getBranchCreator()
- Specified by:
getBranchCreator
in interfaceVcsRepositoryModuleDescriptor
-
getTagCreator
@Nullable public @Nullable VcsTagCreator getTagCreator()
- Specified by:
getTagCreator
in interfaceVcsRepositoryModuleDescriptor
-
getPullRequestDetector
@Nullable public @Nullable VcsPullRequestDetector getPullRequestDetector()
- Specified by:
getPullRequestDetector
in interfaceVcsRepositoryModuleDescriptor
-
getVariableGenerator
@Nullable public @Nullable VcsVariableGenerator getVariableGenerator()
- Specified by:
getVariableGenerator
in interfaceVcsRepositoryModuleDescriptor
-
getVcsMavenPomAccessor
@Nullable public @Nullable VcsMavenPomAccessor getVcsMavenPomAccessor()
- Specified by:
getVcsMavenPomAccessor
in interfaceVcsRepositoryModuleDescriptor
-
getExporter
@NotNull public @NotNull VcsRepositoryDataExporter 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
@NotNull public @NotNull String getTypeString()
Description copied from interface:VcsRepositoryModuleDescriptor
Returns "type" of vcs to be used for variable generation.- Specified by:
getTypeString
in interfaceVcsRepositoryModuleDescriptor
-
getDefaultTriggerKey
@NotNull public @NotNull String 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
@NotNull public @NotNull String 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>
-
-