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.voidSets files.voidsetInherits(List<RoleInherit> inherits) Sets inheritance relations.voidsetSensitiveConfigParameters(List<String> sensitiveProperties) Sets sensitive configuration parameters.voidsetTemplateDir(String templateDirectory) Sets template directory.voidsetVariants(List<RoleVariant> variants) Sets role 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
Sets inheritance relations.- Parameters:
inherits- List of inheritance relations
-
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
Sets role variants.- Parameters:
variants- List of role variant definitions
-
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
Sets template directory.- Parameters:
templateDirectory- Relative path to template files
-
getFiles
Defines the files that should be generated for this role.- Returns:
- List of file definitions.
-
setFiles
Sets files.- Parameters:
files- List of file definitions
-
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
Sets sensitive configuration parameters.- Parameters:
sensitiveProperties- List of configuration parameter names
-