Class Profile.ParameterFactory
- Enclosing class:
- Profile
Profile.Parameter
.
Those methods are meant to be only used by parameters.groovy scripts.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanParameter
(String variableName) Creates and returns a new boolean parameter.dnParameter
(String variableName) Creates and returns a new DN parameter.domainParameter
(String variableName) Creates and returns a new domain parameter.doubleParameter
(String variableName) Creates and returns a newDouble
parameter.enumStringParameter
(String variableName, Map<String, String> allowedValues) Creates and returns a new enum string parameter.floatParameter
(String variableName) Creates and returns a newFloat
parameter.hostPortParameter
(String variableName) Creates and returns a new remote server host and port parameter.integerParameter
(String variableName) Creates and returns a newInteger
parameter.longParameter
(String variableName) Creates and returns a newLong
parameter.passwordParameter
(String variableName) Creates and returns a new password parameter.pathParameter
(String variableName) Creates and returns a newPath
parameter.stringParameter
(String variableName) Creates and returns a newString
parameter.
-
Method Details
-
booleanParameter
Creates and returns a new boolean parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new boolean
profile parameter
-
domainParameter
Creates and returns a new domain parameter.This method is only meant to be used in parameters.groovy scripts. Values associated to this parameter will be converted into
Dn
with domains attribute types:- example will be converted into dc=example
- company.example.com will be converted into dc=company,dc=example,dc=com
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
domain profile parameter
-
doubleParameter
Creates and returns a newDouble
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
Double
profile parameter
-
dnParameter
Creates and returns a new DN parameter.- Parameters:
variableName
- The parameter variable name- Returns:
- A new
profile parameter
-
enumStringParameter
public Profile.EnumParameter<String> enumStringParameter(String variableName, Map<String, String> allowedValues) Creates and returns a new enum string parameter.- Parameters:
variableName
- The parameter variable nameallowedValues
- Allowed values for this parameter.- Returns:
- A new
String
enum profile parameter
-
floatParameter
Creates and returns a newFloat
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
Float
profile parameter
-
integerParameter
Creates and returns a newInteger
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
Integer
profile parameter
-
longParameter
Creates and returns a newLong
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
Long
profile parameter
-
passwordParameter
Creates and returns a new password parameter.String value retrieved from the
Profile.ParameterValuesProvider
passed as argument ofProfile.resolveParameterValues(ExecutionContext, SetupConfiguration, ParameterValuesProvider)
will be encoded so that parameter value will never appear in clear-text.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
password profile parameter
-
pathParameter
Creates and returns a newPath
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
path profile parameter
-
stringParameter
Creates and returns a newString
parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
string profile parameter
-
hostPortParameter
Creates and returns a new remote server host and port parameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName
- The parameter variable name- Returns:
- A new
remote server profile parameter
-