Class Profile.ParameterFactory
- java.lang.Object
-
- org.forgerock.opendj.setup.model.Profile.ParameterFactory
-
- Enclosing class:
- Profile
public final class Profile.ParameterFactory extends Object
Factory class which groups methods used for creating newProfile.Parameter.Those methods are meant to be only used by parameters.groovy scripts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profile.EnumParameter<Boolean>booleanParameter(String variableName)Creates and returns a new boolean parameter.Profile.DnParameterdnParameter(String variableName)Creates and returns a new DN parameter.Profile.DomainParameterdomainParameter(String variableName)Creates and returns a new domain parameter.Profile.NumberParameter<Double>doubleParameter(String variableName)Creates and returns a newDoubleparameter.Profile.EnumParameter<String>enumStringParameter(String variableName, Map<String,String> allowedValues)Creates and returns a new enum string parameter.Profile.NumberParameter<Float>floatParameter(String variableName)Creates and returns a newFloatparameter.Profile.HostPortParameterhostPortParameter(String variableName)Creates and returns a new remote server host and port parameter.Profile.NumberParameter<Integer>integerParameter(String variableName)Creates and returns a newIntegerparameter.Profile.NumberParameter<Long>longParameter(String variableName)Creates and returns a newLongparameter.Profile.PasswordParameterpasswordParameter(String variableName)Creates and returns a new password parameter.Profile.PathParameterpathParameter(String variableName)Creates and returns a newPathparameter.Profile.StringParameterstringParameter(String variableName)Creates and returns a newStringparameter.
-
-
-
Method Detail
-
booleanParameter
public Profile.EnumParameter<Boolean> booleanParameter(String variableName)
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
public Profile.DomainParameter domainParameter(String variableName)
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
public Profile.NumberParameter<Double> doubleParameter(String variableName)
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
public Profile.DnParameter dnParameter(String variableName)
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
public Profile.NumberParameter<Float> floatParameter(String variableName)
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
public Profile.NumberParameter<Integer> integerParameter(String variableName)
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
public Profile.NumberParameter<Long> longParameter(String variableName)
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
public Profile.PasswordParameter passwordParameter(String variableName)
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
public Profile.PathParameter pathParameter(String variableName)
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
public Profile.StringParameter stringParameter(String variableName)
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
public Profile.HostPortParameter hostPortParameter(String variableName)
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
-
-