Package io.wcm.devops.conga.model.role
Class Role
java.lang.Object
io.wcm.devops.conga.model.shared.AbstractModel
io.wcm.devops.conga.model.shared.AbstractConfigurable
io.wcm.devops.conga.model.role.Role
- All Implemented Interfaces:
Configurable,Serializable
Defines a role with a set of configuration files to generate.
The filename of the role YAML file is the role name, it's not included in the model.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()Defines the files that should be generated for this role.Defines inheritance relations for this role.List of configuration parameter names that contain sensitive data (like passwords) that should be encrypted on serialization e.g. in model export files.Defines the directory where the role template files are located.Defines the role variants available for this role.voidvoidsetInherits(List<RoleInherit> inherits) voidsetSensitiveConfigParameters(List<String> sensitiveProperties) voidsetTemplateDir(String templateDirectory) voidsetVariants(List<RoleVariant> variants) Methods inherited from class io.wcm.devops.conga.model.shared.AbstractConfigurable
getConfig, setConfigMethods inherited from class io.wcm.devops.conga.model.shared.AbstractModel
toString
-
Constructor Details
-
Role
public Role()
-
-
Method Details
-
getInherits
Defines inheritance relations for this role.- Returns:
- List of inheritance relations
-
setInherits
-
getVariants
Defines the role variants available for this role. Role variants can be used to apply a slightly different set of configuration templates or values to a node based on a variant.- Returns:
- List of role variant definitions
-
setVariants
-
getTemplateDir
Defines the directory where the role template files are located. The path is relative to the tempaltes root directory. If missing the files are searched within the templates root directory.- Returns:
- Relative path to template files
-
setTemplateDir
-
getFiles
Defines the files that should be generated for this role.- Returns:
- List of file definitions.
-
setFiles
-
getSensitiveConfigParameters
List of configuration parameter names that contain sensitive data (like passwords) that should be encrypted on serialization e.g. in model export files.- Returns:
- List of configuration parameter names (with "." as hierarchy separator)
-
setSensitiveConfigParameters
-