Class ContextParameter

    • Constructor Detail

      • ContextParameter

        public ContextParameter()
      • ContextParameter

        public ContextParameter​(InputType type,
                                String name,
                                Date targetDate,
                                PersistedObjectService objService)
      • ContextParameter

        public ContextParameter​(LookupTable lt,
                                Date targetDate)
      • ContextParameter

        public ContextParameter​(LookupTable lt,
                                Date targetDate,
                                String defaultValue)
      • ContextParameter

        public ContextParameter​(String name,
                                DMFieldCollection fc,
                                String field,
                                String defaultValue)
    • Method Detail

      • updateFromFormulaInputDescriptor

        public void updateFromFormulaInputDescriptor​(FormulaInputDescriptor fid)
      • addParameterConfigEntry

        public void addParameterConfigEntry​(String key,
                                            Object value)
      • 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)
      • setValueOptions

        public void setValueOptions​(List<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)
      • setParameterConfig

        public void setParameterConfig​(Map<String,​Object> parameterConfig)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getObjectService

        public PersistedObjectService getObjectService()
        Specified by:
        getObjectService in interface InjectablePOS