Interface IExternalRepositoryProvider
public interface IExternalRepositoryProvider
Provides support for linking of revisions from one type of external repositories
(e.g. Subversion repositories). Implementations must be contributed to HiveMind
configuration point
com.polarion.platform.repository.externalRepositoryProviders
.
Example:
<contribution configuration-id="com.polarion.platform.repository.externalRepositoryProviders"> <provider id="PROVIDER_ID" service="PROVIDER_IMPL"/> </contribution>
- Since:
- 3.5.1
- Author:
- Stepan Roh
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Used by external repositories to notify the system about new revisions, and to save their state. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRepository
(IContextId contextId, IExternalRepositoryConfiguration configuration, IExternalRepositoryProvider.IExternalRepositoryCallback callback) Creates a repository for the configuration.
-
Field Details
-
REVISION_CONSTANT
- Since:
- 3.5.2
- See Also:
-
HEAD_REVISION_CONSTANT
- Since:
- 3.5.2
- See Also:
-
ACTION_CONSTANT
- Since:
- 3.5.2
- See Also:
-
LOCATION_CONSTANT
- Since:
- 3.5.2
- See Also:
-
LOCATION_ESCAPED_CONSTANT
- Since:
- 3.5.2
- See Also:
-
POSITION
- Since:
- 3.17.0
- See Also:
-
BRANCH
- Since:
- 3.17.0
- See Also:
-
-
Method Details
-
getProviderId
String getProviderId()- Returns:
- unique id of this provider
-
createEmptyConfiguration
IExternalRepositoryConfiguration createEmptyConfiguration()- Returns:
- new empty configuration
- See Also:
-
getRepository
IExternalRepositoryProvider.IExternalRepository getRepository(IContextId contextId, IExternalRepositoryConfiguration configuration, IExternalRepositoryProvider.IExternalRepositoryCallback callback) Creates a repository for the configuration.- Parameters:
contextId
-configuration
- filled configurationcallback
-- Returns:
- configured repository
-