Class ContextParameter
- Object
-
- ContextParameter
-
- All Implemented Interfaces:
Serializable
,InjectablePOS
public class ContextParameter extends Object implements InjectablePOS, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextParameter()
ContextParameter(String name, DMFieldCollection fc, String field, String defaultValue)
ContextParameter(InputType type, String name, Date targetDate, PersistedObjectService objService)
ContextParameter(LookupTable lt, Date targetDate)
ContextParameter(LookupTable lt, Date targetDate, String defaultValue)
-
Method Summary
-
-
-
Method Detail
-
updateFromFormulaInputDescriptor
public void updateFromFormulaInputDescriptor(FormulaInputDescriptor fid)
-
updateWithLookupTable
public void updateWithLookupTable(LookupTable lt)
This is a convenience method to update a ContextParameter with a new version of the same lookup table This can happen e.g. if a quote is worked on a while and passes a validity date border or an old quote is copied- Parameters:
lt
-
-
isLookupType
public boolean isLookupType()
-
isCustomerParam
public final boolean isCustomerParam()
-
isProductParam
public final boolean isProductParam()
-
isProductGroupParam
public final boolean isProductGroupParam()
-
isMatrixParam
public final boolean isMatrixParam()
-
isOptionParam
public final boolean isOptionParam()
-
isOptionsParam
public final boolean isOptionsParam()
-
isHiddenParam
public final boolean isHiddenParam()
-
isRequired
public Boolean isRequired()
-
setRequired
public void setRequired(Boolean required)
-
getName
public String getName()
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getLabelTranslations
public String getLabelTranslations()
-
setLabelTranslations
public void setLabelTranslations(String labelTranslations)
-
setFilters
public void setFilters(Filter... filters)
-
getParameterGroup
public String getParameterGroup()
-
setParameterGroup
public void setParameterGroup(String parameterGroup)
-
getURL
public String getURL()
-
setURL
public void setURL(String url)
-
getType
public String getType()
-
getInputType
public InputType getInputType()
-
applyType
public void applyType(InputType inputType)
-
getValueHint
public String getValueHint()
-
setValueHint
public void setValueHint(String hint)
-
getValueOptions
public String[] getValueOptions()
-
setValueOptions
public void setValueOptions(String[] valueOptions)
-
getLookupTableId
public String getLookupTableId()
-
getValue
public Object getValue()
-
setValue
public void setValue(Object value)
-
getReadOnly
public Boolean getReadOnly()
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
setConfigParameter
public ContextParameter setConfigParameter(String paramName, Object value)
-
clearConfigParameter
public ContextParameter clearConfigParameter(String paramName)
-
getAddUnknownValues
public Boolean getAddUnknownValues()
-
setAddUnknownValues
public void setAddUnknownValues(Boolean addUnknownValues)
-
getTypedId
public String getTypedId()
-
setTypedId
public void setTypedId(String typedId)
-
getAlwaysEditable
public Boolean getAlwaysEditable()
-
setAlwaysEditable
public void setAlwaysEditable(Boolean alwaysEditable)
-
copyWithoutValue
public ContextParameter copyWithoutValue()
-
update
public void update(ContextParameter cp)
-
getObjectService
public PersistedObjectService getObjectService()
- Specified by:
getObjectService
in interfaceInjectablePOS
-
-