@Service(value="mergeRepositoriesService#rest") public class DefaultMergeRepositoriesService extends AbstractRestService implements MergeRepositoriesService
Modifier and Type | Field and Description |
---|---|
private Maven2RepositoryMerger |
repositoryMerger |
archivaAdministration, config, httpServletRequest, httpServletResponse, log, managedRepositoryAdmin, proxyConnectorAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultMergeRepositoriesService() |
Modifier and Type | Method and Description |
---|---|
protected void |
doMerge(String sourceRepositoryId,
String targetRepositoryId) |
List<Artifact> |
getMergeConflictedArtifacts(String sourceRepositoryId,
String targetRepositoryId)
permissions are checked in impl
|
void |
mergeBySkippingConflicts(String sourceRepositoryId,
String targetRepositoryId) |
void |
mergeRepositories(String sourceRepositoryId,
String targetRepositoryId,
boolean skipConflicts)
permissions are checked in impl
|
private void |
mergeWithOutSnapshots(MetadataRepository metadataRepository,
List<ArtifactMetadata> sourceArtifacts,
String sourceRepoId,
String repoid) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
@Inject @Named(value="repositoryMerger#maven2") private Maven2RepositoryMerger repositoryMerger
public DefaultMergeRepositoriesService()
public List<Artifact> getMergeConflictedArtifacts(String sourceRepositoryId, String targetRepositoryId) throws ArchivaRestServiceException
MergeRepositoriesService
getMergeConflictedArtifacts
in interface MergeRepositoriesService
ArchivaRestServiceException
public void mergeRepositories(String sourceRepositoryId, String targetRepositoryId, boolean skipConflicts) throws ArchivaRestServiceException
MergeRepositoriesService
mergeRepositories
in interface MergeRepositoriesService
ArchivaRestServiceException
protected void doMerge(String sourceRepositoryId, String targetRepositoryId) throws RepositoryMergerException, ArchivaRestServiceException
public void mergeBySkippingConflicts(String sourceRepositoryId, String targetRepositoryId) throws RepositoryMergerException, ArchivaRestServiceException
private void mergeWithOutSnapshots(MetadataRepository metadataRepository, List<ArtifactMetadata> sourceArtifacts, String sourceRepoId, String repoid) throws RepositoryMergerException
RepositoryMergerException
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.