Class JSONBusinessDataAttributeDTO

All Implemented Interfaces:
JSONBusinessAttributeDTO<BusinessDataAttribute,Object>

public class JSONBusinessDataAttributeDTO extends BusinessDataAttributeDTO implements JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
The Class JSONBusinessDataAttributeDTO. A wrapper class for the BusinessDataAttributeDTO to create JSON object for the ui side.
  • Constructor Details

    • JSONBusinessDataAttributeDTO

      public JSONBusinessDataAttributeDTO()
    • JSONBusinessDataAttributeDTO

      public JSONBusinessDataAttributeDTO(BusinessDataAttributeDTO bdaDTO)
      Instantiates a new JSON business data attribute dto.
      Parameters:
      bdaDTO - the bda dto
  • Method Details

    • create

      public static JSONBusinessDataAttributeDTO create(Map<String,URI> attribute)
      JSON creator.
      Parameters:
      attribute - the attribute
      Returns:
      the JSON business data attribute dto
    • getAcceptedFileTypes

      public String getAcceptedFileTypes()
    • getAttribute

      public BusinessDataAttribute getAttribute()
      Gets the attribute.
      Specified by:
      getAttribute in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Overrides:
      getAttribute in class BusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the attribute
    • getDecimalPlace

      public Integer getDecimalPlace()
      Gets the decimal place.
      Returns:
      the decimalPlace
    • getDynamicAttributeName

      public String getDynamicAttributeName()
      Description copied from interface: JSONBusinessAttributeDTO
      Get Dynamic Attribute Name ${tags}
      Specified by:
      getDynamicAttributeName in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
    • getFileUpload

      public Boolean getFileUpload()
    • getGroup

      public List<String> getGroup()
      Description copied from interface: JSONBusinessAttributeDTO
      Gets the group.
      Specified by:
      getGroup in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the group
    • getInterval

      public BigDecimal getInterval()
      Gets the interval.
      Returns:
      the interval
    • getMaxValue

      public BigDecimal getMaxValue()
      Gets the upper boundary.
      Returns:
      the max value
    • getMinValue

      public BigDecimal getMinValue()
      Gets the lower boundary.
      Returns:
      the min value
    • getPosition

      public Integer getPosition()
      Gets the position.
      Specified by:
      getPosition in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the position
    • getPrecision

      public Integer getPrecision()
      Gets the precision.
      Returns:
      the precision
    • getRange

      public List<Object> getRange()
      Gets the range.
      Returns:
      the range
    • getRoundingMode

      public String getRoundingMode()
      Gets the rounding mode.
      Returns:
      the roundingMode
    • getSearchExpressionMetaAttribute

      public String getSearchExpressionMetaAttribute()
    • getSubGroup

      public List<String> getSubGroup()
      Description copied from interface: JSONBusinessAttributeDTO
      Gets the sub group.
      Specified by:
      getSubGroup in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the group
    • getUploadFolder

      public String getUploadFolder()
    • getValue

      public List<Object> getValue()
      Gets the value.
      Specified by:
      getValue in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Overrides:
      getValue in class BusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the value
    • getValuetype

      public Type getValuetype()
      Gets the valuetype.
      Returns:
      the valuetype
    • isCalculation

      public boolean isCalculation()
      Overrides:
      isCalculation in class BusinessAttributeDTO<BusinessDataAttribute,Object>
    • isCustomAttribute

      public Boolean isCustomAttribute()
      Description copied from interface: JSONBusinessAttributeDTO
      Checks if attribute is custom attribute.
      Specified by:
      isCustomAttribute in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if attribute is custom attribute
    • isDynamicAttribute

      public boolean isDynamicAttribute()
      Description copied from interface: JSONBusinessAttributeDTO
      Is attribute a DA
      Specified by:
      isDynamicAttribute in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Overrides:
      isDynamicAttribute in class BusinessAttributeDTO<BusinessDataAttribute,Object>
    • isEnumerable

      public boolean isEnumerable()
      Specified by:
      isEnumerable in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
    • isHidden

      public boolean isHidden()
      Checks if is hidden.
      Specified by:
      isHidden in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if is hidden
    • isHiddenBySchemaExtensibility

      public Boolean isHiddenBySchemaExtensibility()
      Specified by:
      isHiddenBySchemaExtensibility in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
    • isHiddenInUICustomization

      public Boolean isHiddenInUICustomization()
      Specified by:
      isHiddenInUICustomization in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
    • isLink

      public Boolean isLink()
      Checks if is link.
      Specified by:
      isLink in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if is link
    • isMandatory

      public boolean isMandatory()
      Checks if is mandatory.
      Specified by:
      isMandatory in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if is mandatory
    • isMultiValued

      public boolean isMultiValued()
      Checks if is multi valued.
      Specified by:
      isMultiValued in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if is multi valued
    • isReadOnly

      public boolean isReadOnly()
      Checks if is read only.
      Specified by:
      isReadOnly in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true, if is read only
    • isReadOnlyInUICustomization

      public Boolean isReadOnlyInUICustomization()
      Specified by:
      isReadOnlyInUICustomization in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
    • isSynchronizeAllowed

      public boolean isSynchronizeAllowed()
      Description copied from interface: JSONBusinessAttributeDTO
      Check if it is needed to update immediately.
      Specified by:
      isSynchronizeAllowed in interface JSONBusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      true if the bda/bra is needed to update immediately
    • setAttribute

      public void setAttribute(BusinessDataAttribute attribute)
      Sets the attribute.
      Parameters:
      attribute - the new attribute
    • setEnumerable

      public void setEnumerable(boolean enumerable)
    • setGroup

      public void setGroup(List<String> group)
      Sets the group.
      Parameters:
      group - the new group
    • setHidden

      public void setHidden(boolean hidden)
      Sets the hidden.
      Parameters:
      hidden - the new hidden
    • setInterval

      public void setInterval(BigDecimal interval)
      Sets the interval.
      Parameters:
      interval - the new interval
    • setLink

      public void setLink(boolean isLink)
      Sets the link.
      Parameters:
      isLink -
    • setMandatory

      public void setMandatory(boolean mandatory)
      Sets the mandatory.
      Parameters:
      mandatory - the new mandatory
    • setMultiValued

      public void setMultiValued(boolean multiValued)
      Sets the multi valued.
      Parameters:
      multiValued - the new multi valued
    • setPosition

      public void setPosition(Integer position)
      Sets the position.
      Parameters:
      position - the new position
    • setPrecision

      public void setPrecision(Integer precision)
      Sets the precision.
      Parameters:
      precision - the new precision
    • setRange

      public void setRange(List<Object> range)
      Sets the range.
      Parameters:
      range - the new range
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Sets the read only.
      Parameters:
      readOnly - the new read only
    • setSubGroup

      public void setSubGroup(List<String> subGroup)
      Set the sub group.
      Parameters:
      subGroup -
    • setValue

      public void setValue(List<Object> value)
      Sets the value.
      Parameters:
      value - the new value
    • setValuetype

      public void setValuetype(Type valuetype)
      Sets the valuetype.
      Parameters:
      valuetype - the new valuetype
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class BusinessAttributeDTO<BusinessDataAttribute,Object>
      Returns:
      the string