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 newDoubleparameter.enumStringParameter(String variableName, Map<String, String> allowedValues) Creates and returns a new enum string parameter.floatParameter(String variableName) Creates and returns a newFloatparameter.hostPortParameter(String variableName) Creates and returns a new remote server host and port parameter.integerParameter(String variableName) Creates and returns a newIntegerparameter.longParameter(String variableName) Creates and returns a newLongparameter.passwordParameter(String variableName) Creates and returns a new password parameter.pathParameter(String variableName) Creates and returns a newPathparameter.stringParameter(String variableName) Creates and returns a newStringparameter.
-
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
Dnwith 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 newDoubleparameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName- The parameter variable name- Returns:
- A new
Doubleprofile 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
Stringenum profile parameter
-
floatParameter
Creates and returns a newFloatparameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName- The parameter variable name- Returns:
- A new
Floatprofile parameter
-
integerParameter
Creates and returns a newIntegerparameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName- The parameter variable name- Returns:
- A new
Integerprofile parameter
-
longParameter
Creates and returns a newLongparameter.This method is only meant to be used in parameters.groovy scripts.
- Parameters:
variableName- The parameter variable name- Returns:
- A new
Longprofile parameter
-
passwordParameter
Creates and returns a new password parameter.String value retrieved from the
Profile.ParameterValuesProviderpassed 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 newPathparameter.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 newStringparameter.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
-