Class ModelParser

java.lang.Object
io.wcm.devops.conga.plugins.aem.maven.model.ModelParser

public final class ModelParser extends Object
Parsers model.yaml files generated by CONGA.
  • Field Details

  • Constructor Details

    • ModelParser

      public ModelParser(File nodeDir)
      Parameters:
      nodeDir - Node directory
  • Method Details

    • getInstallableFilesForNode

      public List<InstallableFile> getInstallableFilesForNode()
      Returns all content packages and OSGi bundles referenced in this model file.
      Returns:
      List of content packages and OSGi bundles.
    • hasRole

      public boolean hasRole(String roleName)
      Checks if the node has the given node role assigned.
      Parameters:
      roleName - Node role name
      Returns:
      true if role is assigned
    • getCloudManagerTarget

      public Set<String> getCloudManagerTarget()
      Collects all assigned "cloudManager.target" values (lists or single values) to any role from the node.
      Returns:
      List of cloud manager environment names or "none"