Class AbstractExternalRepositoryConfiguration
java.lang.Object
com.polarion.platform.repository.external.AbstractExternalRepositoryConfiguration
- All Implemented Interfaces:
IExternalRepositoryConfiguration
public abstract class AbstractExternalRepositoryConfiguration
extends Object
implements IExternalRepositoryConfiguration
Abstract implementation of
IExternalRepositoryConfiguration that should be used
as base for configuration beans of particular repository providers.- Since:
- 3.5.1
- Author:
- Jiri Banszel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf value not set, it is an empty String.getId()getName()abstract StringReturns the secret that's used as the identifier for the webhook on the External Repository Aggregator Service.booleanvoidvoidsetBranchFilter(String branchFilter) voidsetChangeTraceabilityEnabled(boolean enabled) voidsetDefaultBranch(String defaultBranch) voidvoidvoidvoidsetSecretKey(String secretKey) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.polarion.platform.repository.external.IExternalRepositoryConfiguration
getFullUri
-
Constructor Details
-
AbstractExternalRepositoryConfiguration
public AbstractExternalRepositoryConfiguration()
-
-
Method Details
-
getProviderId
- Specified by:
getProviderIdin interfaceIExternalRepositoryConfiguration
-
getId
- Specified by:
getIdin interfaceIExternalRepositoryConfiguration
-
setId
- Specified by:
setIdin interfaceIExternalRepositoryConfiguration
-
getName
- Specified by:
getNamein interfaceIExternalRepositoryConfiguration
-
setName
- Specified by:
setNamein interfaceIExternalRepositoryConfiguration
-
getBranch
Description copied from interface:IExternalRepositoryConfigurationIf value not set, it is an empty String. Used for all providers if using the External Repository Aggregator Service. Used for only BitBucket and GitLab providers if using Direct Polling of external repositories.- Specified by:
getBranchin interfaceIExternalRepositoryConfiguration- Since:
- 3.22.1
-
setBranch
- Specified by:
setBranchin interfaceIExternalRepositoryConfiguration
-
getBranchFilter
- Specified by:
getBranchFilterin interfaceIExternalRepositoryConfiguration- Returns:
- Branch filter (uses regular expression). If the repository's branches are matched by the regular expression, these branches will be tracked for Change Traceability.
- Since:
- 3.22.1
-
setBranchFilter
- Since:
- 3.22.1
-
getDefaultBranch
- Specified by:
getDefaultBranchin interfaceIExternalRepositoryConfiguration- Returns:
- default branch that other branches will merge to. If value not set, it is an empty String.
- Since:
- 3.22.1
-
setDefaultBranch
- Since:
- 3.22.1
-
getSecret
Description copied from interface:IExternalRepositoryConfigurationReturns the secret that's used as the identifier for the webhook on the External Repository Aggregator Service. If the secret matches in the configuration, commits will be available. Can be null if not yet generated in administration.- Specified by:
getSecretin interfaceIExternalRepositoryConfiguration- Since:
- 3.22.1
-
setSecret
- Since:
- 3.22.1
-
getSecretKey
- Since:
- 3.22.1
-
setSecretKey
- Since:
- 3.22.1
-
isChangeTraceabilityEnabled
public boolean isChangeTraceabilityEnabled()- Specified by:
isChangeTraceabilityEnabledin interfaceIExternalRepositoryConfiguration- Returns:
- whether Change Traceability is enabled for this repository.
- Since:
- 3.22.1
-
setChangeTraceabilityEnabled
public void setChangeTraceabilityEnabled(boolean enabled) - Since:
- 3.22.1
-