Class PropertyUtil
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.configuration.PropertyUtil
-
public class PropertyUtil extends java.lang.ObjectPropertyUtil factory for specific property types
-
-
Constructor Summary
Constructors Constructor Description PropertyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyautogenInstanceId(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean blankIfUnexpandable)static Propertybool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)static com.dtolabs.rundeck.core.plugins.configuration.PropertyUtil.BooleanPropertybool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyScope scope)static com.dtolabs.rundeck.core.plugins.configuration.PropertyUtil.BooleanPropertybool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator, PropertyScope scope)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues)static PropertyforType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues, boolean blankIfUnexpandable)static PropertyfreeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues)static PropertyfreeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator)static PropertyfreeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator, PropertyScope scope)static PropertyfreeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static PropertyfreeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyinteger(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)static Propertyinteger(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)static Propertyinteger(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)static Propertyinteger(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static PropertylongProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)static PropertylongProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)static PropertylongProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)static PropertylongProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyoptions(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyoptions(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.Collection<? extends java.lang.Enum<?>> selectValues, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.Collection<? extends java.lang.Enum<?>> selectValues, java.util.Map<java.lang.String,java.lang.String> selectLabels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyScope scope)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertyselect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> selectLabels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues)static Propertystring(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)static Propertystring(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)static Propertystring(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)static Propertystring(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)static Propertystring(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean blankIfUnexpandable)
-
-
-
Method Detail
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values list- Returns:
- a property instance for a particular simple type
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values listvalidator- validator- Returns:
- a property instance for a particular simple type
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator, PropertyScope scope)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values listvalidator- validatorscope- resolution scope- Returns:
- a property instance for a particular simple type
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values listvalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a property instance for a particular simple type
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values listvalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a property instance for a particular simple type
-
forType
public static Property forType(Property.Type type, java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> values, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues, boolean blankIfUnexpandable)
- Parameters:
type- typename- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalues- optional values listvalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a property instance for a particular simple type
-
string
public static Property string(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default value- Returns:
- a string property
-
autogenInstanceId
public static Property autogenInstanceId(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean blankIfUnexpandable)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- Return an autogenerated instance id string property
-
string
public static Property string(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validator- Returns:
- a string property
-
string
public static Property string(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scope- Returns:
- Return a string property
-
string
public static Property string(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- Return a string property
-
string
public static Property string(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean blankIfUnexpandable)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- Return a string property
-
bool
public static Property bool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default value- Returns:
- Return a boolean property
-
bool
public static com.dtolabs.rundeck.core.plugins.configuration.PropertyUtil.BooleanProperty bool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyScope scope)- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuescope- resolution scope- Returns:
- Return a boolean property
-
bool
public static com.dtolabs.rundeck.core.plugins.configuration.PropertyUtil.BooleanProperty bool(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuescope- resolution scoperenderingOptions- options- Returns:
- a boolean property
-
integer
public static Property integer(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default value- Returns:
- an integer property
-
integer
public static Property integer(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validator- Returns:
- an integer property with additional validator
-
integer
public static Property integer(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scope- Returns:
- an integer property with additional validator
-
integer
public static Property integer(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- an integer property with additional validator
-
longProp
public static Property longProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default value- Returns:
- a long property
-
longProp
public static Property longProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validator- Returns:
- a long property
-
longProp
public static Property longProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scope- Returns:
- a long property
-
longProp
public static Property longProp(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valuevalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a long property
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values list- Returns:
- a Select property with a list of values
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyScope scope)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scope- Returns:
- a Select property with a list of values
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Select property with a list of values
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> selectLabels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions, boolean dynamicValues)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Select property with a list of values
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.Collection<? extends java.lang.Enum<?>> selectValues, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Select property with a list of values
-
select
public static Property select(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.Collection<? extends java.lang.Enum<?>> selectValues, java.util.Map<java.lang.String,java.lang.String> selectLabels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Select property with a list of values
-
freeSelect
public static Property freeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values list- Returns:
- a Free Select property with a list of values
-
freeSelect
public static Property freeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listvalidator- validator- Returns:
- a Free Select property with a list of values
-
freeSelect
public static Property freeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator, PropertyScope scope)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listvalidator- validatorscope- resolution scope- Returns:
- a Free Select property with a list of values
-
freeSelect
public static Property freeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listvalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a Free Select property with a list of values
-
freeSelect
public static Property freeSelect(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listvalidator- validatorscope- resolution scoperenderingOptions- options- Returns:
- a Free Select property with a list of values
-
options
public static Property options(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Free Select property with a list of values
-
options
public static Property options(java.lang.String name, java.lang.String title, java.lang.String description, boolean required, java.lang.String defaultValue, java.util.List<java.lang.String> selectValues, java.util.Map<java.lang.String,java.lang.String> labels, PropertyValidator validator, PropertyScope scope, java.util.Map<java.lang.String,java.lang.Object> renderingOptions)
- Parameters:
name- nametitle- optional titledescription- optional descriptionrequired- true if requireddefaultValue- optional default valueselectValues- optional values listscope- resolution scoperenderingOptions- options- Returns:
- a Free Select property with a list of values
-
-