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.DnParameter
dnParameter(String variableName)
Creates and returns a new DN parameter.Profile.DomainParameter
domainParameter(String variableName)
Creates and returns a new domain parameter.Profile.NumberParameter<Double>
doubleParameter(String variableName)
Creates and returns a newDouble
parameter.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 newFloat
parameter.Profile.HostPortParameter
hostPortParameter(String variableName)
Creates and returns a new remote server host and port parameter.Profile.NumberParameter<Integer>
integerParameter(String variableName)
Creates and returns a newInteger
parameter.Profile.NumberParameter<Long>
longParameter(String variableName)
Creates and returns a newLong
parameter.Profile.PasswordParameter
passwordParameter(String variableName)
Creates and returns a new password parameter.Profile.PathParameter
pathParameter(String variableName)
Creates and returns a newPath
parameter.Profile.StringParameter
stringParameter(String variableName)
Creates and returns a newString
parameter.
-
-
-
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
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
public Profile.NumberParameter<Double> doubleParameter(String variableName)
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
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
String
enum profile parameter
-
floatParameter
public Profile.NumberParameter<Float> floatParameter(String variableName)
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
public Profile.NumberParameter<Integer> integerParameter(String variableName)
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
public Profile.NumberParameter<Long> longParameter(String variableName)
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
public Profile.PasswordParameter passwordParameter(String variableName)
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
public Profile.PathParameter pathParameter(String variableName)
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
public Profile.StringParameter stringParameter(String variableName)
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
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
-
-