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:
getCompleteKeyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getPluginKey
public String getPluginKey()
- Specified by:
getPluginKeyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getKey
public String getKey()
- Specified by:
getKeyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getName
public String getName()
- Specified by:
getNamein interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>- Specified by:
getNamein interfaceNameProvider
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getModuleClass
public Class<VcsWorkingCopyManager> getModuleClass()
- Specified by:
getModuleClassin 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:
initin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>- Throws:
com.atlassian.plugin.PluginParseException
-
isEnabledByDefault
public boolean isEnabledByDefault()
- Specified by:
isEnabledByDefaultin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
isSystemModule
public boolean isSystemModule()
- Specified by:
isSystemModulein interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
destroy
public void destroy()
- Specified by:
destroyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getMinJavaVersion
public Float getMinJavaVersion()
- Specified by:
getMinJavaVersionin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()
- Specified by:
satisfiesMinJavaVersionin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getParams
public Map<String,String> getParams()
- Specified by:
getParamsin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getI18nNameKey
public String getI18nNameKey()
- Specified by:
getI18nNameKeyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getDescriptionKey
public String getDescriptionKey()
- Specified by:
getDescriptionKeyin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getPlugin
public com.atlassian.plugin.Plugin getPlugin()
- Specified by:
getPluginin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getResourceDescriptors
public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
- Specified by:
getResourceDescriptorsin interfacecom.atlassian.plugin.Resourced
-
getResourceDescriptor
public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
- Specified by:
getResourceDescriptorin interfacecom.atlassian.plugin.Resourced
-
getResourceLocation
public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
- Specified by:
getResourceLocationin interfacecom.atlassian.plugin.Resourced
-
getModule
public VcsWorkingCopyManager getModule()
- Specified by:
getModulein interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
getIcon
@Nullable public @Nullable String getIcon()
Description copied from interface:VcsRepositoryModuleDescriptorReturns IMAGE (icon) for specific repository.- Specified by:
getIconin interfaceVcsRepositoryModuleDescriptor- Returns:
- IMAGE path
-
getOptionDescription
@Nullable public @Nullable String getOptionDescription()
Description copied from interface:VcsRepositoryModuleDescriptorAdditional description rendered in repository selection UI.- Specified by:
getOptionDescriptionin interfaceVcsRepositoryModuleDescriptor
-
getTooltipKey
@Nullable public @Nullable String getTooltipKey()
Description copied from interface:VcsRepositoryModuleDescriptorReturns TRANSLATION key which is used in tooltips.- Specified by:
getTooltipKeyin interfaceVcsRepositoryModuleDescriptor- Returns:
- TRANSLATION key
-
isPrimary
public boolean isPrimary()
Description copied from interface:VcsRepositoryModuleDescriptorMarks repository for PRIMARY (in our case Stash & Bitbucket), is used for rendering.- Specified by:
isPrimaryin interfaceVcsRepositoryModuleDescriptor
-
getWeight
public int getWeight()
- Specified by:
getWeightin interfacecom.atlassian.plugin.web.descriptors.WeightedDescriptor
-
getLegacyModule
@NotNull public @NotNull Repository getLegacyModule()
-
getLegacyRepositoryModuleDescriptor
public RepositoryModuleDescriptor getLegacyRepositoryModuleDescriptor()
-
getVcsLocationConfigurator
@NotNull public @NotNull VcsLocationConfigurator getVcsLocationConfigurator()
- Specified by:
getVcsLocationConfiguratorin interfaceVcsRepositoryModuleDescriptor
-
getVcsChangeDetectionOptionsConfigurator
@Nullable public @Nullable VcsChangeDetectionOptionsConfigurator getVcsChangeDetectionOptionsConfigurator()
- Specified by:
getVcsChangeDetectionOptionsConfiguratorin interfaceVcsRepositoryModuleDescriptor
-
getVcsBranchDetectionOptionsConfigurator
@Nullable public @Nullable VcsBranchDetectionOptionsConfigurator getVcsBranchDetectionOptionsConfigurator()
- Specified by:
getVcsBranchDetectionOptionsConfiguratorin interfaceVcsRepositoryModuleDescriptor
-
getVcsBranchConfigurator
@Nullable public @Nullable VcsBranchConfigurator getVcsBranchConfigurator()
- Specified by:
getVcsBranchConfiguratorin interfaceVcsRepositoryModuleDescriptor
-
getChangeDetector
@NotNull public @NotNull VcsChangeDetector getChangeDetector()
- Specified by:
getChangeDetectorin interfaceVcsRepositoryModuleDescriptor
-
getTagsHandler
@Nullable public @Nullable VcsTagsHandler getTagsHandler()
- Specified by:
getTagsHandlerin interfaceVcsRepositoryModuleDescriptor
-
getWorkingCopyManager
@NotNull public @NotNull VcsWorkingCopyManager getWorkingCopyManager()
- Specified by:
getWorkingCopyManagerin interfaceVcsRepositoryModuleDescriptor
-
getConnectionTester
@Nullable public @Nullable VcsConnectionTester getConnectionTester()
- Specified by:
getConnectionTesterin interfaceVcsRepositoryModuleDescriptor
-
getBranchDetector
@Nullable public @Nullable VcsBranchDetector getBranchDetector()
- Specified by:
getBranchDetectorin interfaceVcsRepositoryModuleDescriptor
-
getBranchCreator
@Nullable public @Nullable VcsBranchCreator getBranchCreator()
- Specified by:
getBranchCreatorin interfaceVcsRepositoryModuleDescriptor
-
getTagCreator
@Nullable public @Nullable VcsTagCreator getTagCreator()
- Specified by:
getTagCreatorin interfaceVcsRepositoryModuleDescriptor
-
getPullRequestDetector
@Nullable public @Nullable VcsPullRequestDetector getPullRequestDetector()
- Specified by:
getPullRequestDetectorin interfaceVcsRepositoryModuleDescriptor
-
getVariableGenerator
@Nullable public @Nullable VcsVariableGenerator getVariableGenerator()
- Specified by:
getVariableGeneratorin interfaceVcsRepositoryModuleDescriptor
-
getVcsMavenPomAccessor
@Nullable public @Nullable VcsMavenPomAccessor getVcsMavenPomAccessor()
- Specified by:
getVcsMavenPomAccessorin interfaceVcsRepositoryModuleDescriptor
-
getExporter
@NotNull public @NotNull VcsRepositoryDataExporter getExporter()
- Specified by:
getExporterin interfaceVcsRepositoryModuleDescriptor
-
supportsMerging
public boolean supportsMerging()
- Specified by:
supportsMergingin interfaceVcsRepositoryModuleDescriptor
-
supportsRemoteUpdates
public boolean supportsRemoteUpdates()
- Specified by:
supportsRemoteUpdatesin interfaceVcsRepositoryModuleDescriptor
-
supportsBranchDetection
public boolean supportsBranchDetection()
- Specified by:
supportsBranchDetectionin interfaceVcsRepositoryModuleDescriptor
-
supportsBranchOverrides
public boolean supportsBranchOverrides()
- Specified by:
supportsBranchOverridesin interfaceVcsRepositoryModuleDescriptor
-
supportsBranchCreation
public boolean supportsBranchCreation()
- Specified by:
supportsBranchCreationin interfaceVcsRepositoryModuleDescriptor
-
supportsTagCreation
public boolean supportsTagCreation()
- Specified by:
supportsTagCreationin interfaceVcsRepositoryModuleDescriptor
-
providesCustomVariables
public boolean providesCustomVariables()
- Specified by:
providesCustomVariablesin interfaceVcsRepositoryModuleDescriptor
-
supportsTestingConnection
public boolean supportsTestingConnection()
- Specified by:
supportsTestingConnectionin interfaceVcsRepositoryModuleDescriptor
-
supportsImportFromMaven
public boolean supportsImportFromMaven()
- Specified by:
supportsImportFromMavenin interfaceVcsRepositoryModuleDescriptor
-
providesWorkingCopyStatus
public boolean providesWorkingCopyStatus()
- Specified by:
providesWorkingCopyStatusin interfaceVcsRepositoryModuleDescriptor
-
revisionIdsAreUnique
public boolean revisionIdsAreUnique()
Description copied from interface:VcsRepositoryModuleDescriptorReturn 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:
revisionIdsAreUniquein interfaceVcsRepositoryModuleDescriptor
-
getTypeString
@NotNull public @NotNull String getTypeString()
Description copied from interface:VcsRepositoryModuleDescriptorReturns "type" of vcs to be used for variable generation.- Specified by:
getTypeStringin interfaceVcsRepositoryModuleDescriptor
-
getDefaultTriggerKey
@NotNull public @NotNull String getDefaultTriggerKey()
Description copied from interface:VcsRepositoryModuleDescriptorDefault trigger key for this repository If none was set polling trigger key will be returned- Specified by:
getDefaultTriggerKeyin interfaceVcsRepositoryModuleDescriptor- Returns:
- trigger key
-
getDefaultVcsViewerKey
@NotNull public @NotNull String getDefaultVcsViewerKey()
Description copied from interface:VcsRepositoryModuleDescriptorDefault web viewer for this repository.- Specified by:
getDefaultVcsViewerKeyin interfaceVcsRepositoryModuleDescriptor
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacecom.atlassian.plugin.ModuleDescriptor<VcsWorkingCopyManager>
-
-