public class RepositoryMetadataMerge extends Object
Constructor and Description |
---|
RepositoryMetadataMerge() |
Modifier and Type | Method and Description |
---|---|
private static List<Plugin> |
clonePlugins(List<Plugin> plugins)
Clones a list of plugins.
|
private static long |
convertTimestampToLong(String timestamp) |
private static boolean |
empty(String val) |
private static long |
getLongFromTimestampSafely(String timestampString) |
static ArchivaRepositoryMetadata |
merge(ArchivaRepositoryMetadata mainMetadata,
ArchivaRepositoryMetadata sourceMetadata) |
private static SnapshotVersion |
merge(SnapshotVersion mainSnapshotVersion,
SnapshotVersion sourceSnapshotVersion) |
private static String |
merge(String main,
String source) |
private static List<String> |
mergeAvailableVersions(List<String> mainAvailableVersions,
List<String> sourceAvailableVersions) |
private static List<Plugin> |
mergePlugins(List<Plugin> mainPlugins,
List<Plugin> sourcePlugins) |
private static long |
mergeTimestamp(long mainTimestamp,
long sourceTimestamp) |
private static long |
mergeTimestamp(String mainTimestamp,
String sourceTimestamp) |
public RepositoryMetadataMerge()
public static ArchivaRepositoryMetadata merge(ArchivaRepositoryMetadata mainMetadata, ArchivaRepositoryMetadata sourceMetadata) throws RepositoryMetadataException
RepositoryMetadataException
private static long mergeTimestamp(String mainTimestamp, String sourceTimestamp)
private static long mergeTimestamp(long mainTimestamp, long sourceTimestamp)
private static SnapshotVersion merge(SnapshotVersion mainSnapshotVersion, SnapshotVersion sourceSnapshotVersion)
private static long convertTimestampToLong(String timestamp)
private static long getLongFromTimestampSafely(String timestampString)
private static List<Plugin> mergePlugins(List<Plugin> mainPlugins, List<Plugin> sourcePlugins)
private static List<Plugin> clonePlugins(List<Plugin> plugins)
plugins
- Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.