Class RepositoryConfiguratorImpl
- java.lang.Object
-
- com.atlassian.bamboo.repository.configuration.RepositoryConfiguratorImpl
-
- All Implemented Interfaces:
RepositoryConfigurator
,com.atlassian.plugin.web.descriptors.WeightedDescriptor
public class RepositoryConfiguratorImpl extends Object implements RepositoryConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static RepositoryConfigurator
DEFAULT
-
Fields inherited from interface com.atlassian.bamboo.repository.configuration.RepositoryConfigurator
LINKED_REPOSITORY_ACCESS_OPTION
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfiguratorImpl(int weight, boolean isPrimary, String icon, String tooltipKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getIcon()
Returns IMAGE (icon) for specific repository.@Nullable String
getTooltipKey()
Returns TRANSLATION key which is used in tooltips.int
getWeight()
Get repository WEIGHT, which is used for ordering (rendering).boolean
isPrimary()
Marks repository for PRIMARY (in our case Stash and Bitbucket), is used for rendering.
-
-
-
Field Detail
-
DEFAULT
public static RepositoryConfigurator DEFAULT
-
-
Method Detail
-
getIcon
@Nullable public @Nullable String getIcon()
Description copied from interface:RepositoryConfigurator
Returns IMAGE (icon) for specific repository.- Specified by:
getIcon
in interfaceRepositoryConfigurator
- Returns:
- IMAGE path
-
getTooltipKey
@Nullable public @Nullable String getTooltipKey()
Description copied from interface:RepositoryConfigurator
Returns TRANSLATION key which is used in tooltips.- Specified by:
getTooltipKey
in interfaceRepositoryConfigurator
- Returns:
- TRANSLATION key
-
isPrimary
public boolean isPrimary()
Description copied from interface:RepositoryConfigurator
Marks repository for PRIMARY (in our case Stash and Bitbucket), is used for rendering.- Specified by:
isPrimary
in interfaceRepositoryConfigurator
-
getWeight
public int getWeight()
Description copied from interface:RepositoryConfigurator
Get repository WEIGHT, which is used for ordering (rendering).- Specified by:
getWeight
in interfaceRepositoryConfigurator
- Specified by:
getWeight
in interfacecom.atlassian.plugin.web.descriptors.WeightedDescriptor
-
-