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
-
Method Summary
Modifier and TypeMethodDescriptionIf value not set, it is an empty String.getId()
getName()
abstract String
Returns the secret that's used as the identifier for the webhook on the External Repository Aggregator Service.boolean
void
void
setBranchFilter
(String branchFilter) void
setChangeTraceabilityEnabled
(boolean enabled) void
setDefaultBranch
(String defaultBranch) void
void
void
void
setSecretKey
(String secretKey) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.polarion.platform.repository.external.IExternalRepositoryConfiguration
getFullUri
-
Constructor Details
-
AbstractExternalRepositoryConfiguration
public AbstractExternalRepositoryConfiguration()
-
-
Method Details
-
getProviderId
- Specified by:
getProviderId
in interfaceIExternalRepositoryConfiguration
-
getId
- Specified by:
getId
in interfaceIExternalRepositoryConfiguration
-
setId
- Specified by:
setId
in interfaceIExternalRepositoryConfiguration
-
getName
- Specified by:
getName
in interfaceIExternalRepositoryConfiguration
-
setName
- Specified by:
setName
in interfaceIExternalRepositoryConfiguration
-
getBranch
Description copied from interface:IExternalRepositoryConfiguration
If 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:
getBranch
in interfaceIExternalRepositoryConfiguration
- Since:
- 3.22.1
-
setBranch
- Specified by:
setBranch
in interfaceIExternalRepositoryConfiguration
-
getBranchFilter
- Specified by:
getBranchFilter
in 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:
getDefaultBranch
in 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:IExternalRepositoryConfiguration
Returns 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:
getSecret
in 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:
isChangeTraceabilityEnabled
in interfaceIExternalRepositoryConfiguration
- Returns:
- whether Change Traceability is enabled for this repository.
- Since:
- 3.22.1
-
setChangeTraceabilityEnabled
public void setChangeTraceabilityEnabled(boolean enabled) - Since:
- 3.22.1
-