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 Summary
Fields Modifier and Type Field Description static String
MODEL_FILE
Model file.
-
Constructor Summary
Constructors Constructor Description ModelParser(File nodeDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getCloudManagerTarget()
Collects all assigned "cloudManager.target" values (lists or single values) to any role from the node.List<InstallableFile>
getInstallableFilesForNode()
Returns all content packages and OSGi bundles referenced in this model file.boolean
hasRole(String roleName)
Checks if the node has the given node role assigned.
-
-
-
Field Detail
-
MODEL_FILE
public static final String MODEL_FILE
Model file.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ModelParser
public ModelParser(File nodeDir)
- Parameters:
nodeDir
- Node directory
-
-
Method Detail
-
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
-
-