Interface ManifestOperations


  • public interface ManifestOperations
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<org.wildfly.installationmanager.ArtifactChange> diff​(org.wildfly.channel.ChannelManifest manifestOne, org.wildfly.channel.ChannelManifest manifestTwo)
      Performs a diff of manifestOne and manifestTwo.
      org.wildfly.channel.ChannelManifest merge​(org.wildfly.channel.ChannelManifest manifestOne, org.wildfly.channel.ChannelManifest manifestTwo, VersionMergeStrategy.Strategies mergeStrategy, String mergedManifestName, String mergedManifestId)
      Merges streams from two manifests.
      org.wildfly.channel.ChannelManifest subtract​(org.wildfly.channel.ChannelManifest manifestOne, org.wildfly.channel.ChannelManifest manifestTwo, List<String> exclusions)
      Subtracts streams of two manifests.
    • Method Detail

      • merge

        org.wildfly.channel.ChannelManifest merge​(org.wildfly.channel.ChannelManifest manifestOne,
                                                  org.wildfly.channel.ChannelManifest manifestTwo,
                                                  VersionMergeStrategy.Strategies mergeStrategy,
                                                  String mergedManifestName,
                                                  String mergedManifestId)
        Merges streams from two manifests. Creates a manifest containing streams from both input manifests. If the same stream is available in both input manifests, the conflict is resolved using a merge strategy.
        • The LATEST merge strategy compares the versions and picks the latest stream.
        • The FIRST merge strategy chooses the stream from manifestOne.
        Parameters:
        manifestOne - - first manifest to merge
        manifestTwo - - second manifest to merge
        mergeStrategy - - merging strategy used if the stream is found in both manifests
        mergedManifestName - - optional name of the generated manifest
        mergedManifestId - - optional id of the generated manifest
        Returns:
        - merged manifest
      • subtract

        org.wildfly.channel.ChannelManifest subtract​(org.wildfly.channel.ChannelManifest manifestOne,
                                                     org.wildfly.channel.ChannelManifest manifestTwo,
                                                     List<String> exclusions)
        Subtracts streams of two manifests. Returns a manifest containing only streams from the first manifest that are The versions of artifacts in streams are ignored. The excluded streams are always included in the output manifest even if they are present in the second manifest.
        Parameters:
        manifestOne - - Initial manifest that the streams will be removed from.
        manifestTwo - - Manifest containing streams to be removed.
        exclusions - - list of excluded streams. To include all streams matching a group a wildcard syntax.
        Returns:
      • diff

        List<org.wildfly.installationmanager.ArtifactChange> diff​(org.wildfly.channel.ChannelManifest manifestOne,
                                                                  org.wildfly.channel.ChannelManifest manifestTwo)
        Performs a diff of manifestOne and manifestTwo.
        Parameters:
        manifestOne - - first manifest to diff
        manifestTwo - - second manifest to diff
        Returns:
        - list of changed streams representes as ArtifactChanges