Package com.imc.iss.web.dto
Class JSONBusinessDataAttributeDTO
java.lang.Object
Localized
com.imc.datamodel.transferobjects.BusinessAttributeDTO<BusinessDataAttribute,Object>
com.imc.datamodel.transferobjects.BusinessDataAttributeDTO
com.imc.iss.web.dto.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.-
Field Summary
Fields inherited from class com.imc.datamodel.transferobjects.BusinessDataAttributeDTO
acceptedFileTypes, decimalPlace, fileUpload, interval, maxValue, minValue, precision, range, roundingMode, searchExpressionMetaAttribute, uploadFolder, valuetypeFields inherited from class com.imc.datamodel.transferobjects.BusinessAttributeDTO
attribute, calculation, costingRelevant, delayedUpdate, dimensionPossibeValueHeight, dimensionPossibleValueWidth, dimensionSelectionHeight, dimensionSelectionWidth, dynamicAttribute, dynamicAttributeMatrixColumnNumber, dynamicAttributeMatrixRowNumber, dynamicAttributeName, enumerable, error, getAttribute, getPosition, getValue, group, hasUIControl, hidden, ignoreValidationCheck, isCustomAttribute, isHidden, isHiddenBySchemaExtensibility, isHiddenInUICustomization, isLink, isReadOnlyInUICustomization, length, mandatory, multiValued, orderRelevant, position, pricingRelevant, quoteRelevant, readOnly, subGroup, synchronizeAllowed, value, valueImageUrls -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new JSON business data attribute dto. -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONBusinessDataAttributeDTOJSON creator.BusinessDataAttributeGets the attribute.Gets the decimal place.Get Dynamic Attribute Name ${tags}getGroup()Gets the group.Gets the interval.Gets the upper boundary.Gets the lower boundary.Gets the position.Gets the precision.getRange()Gets the range.Gets the rounding mode.Gets the sub group.getValue()Gets the value.Gets the valuetype.booleanChecks if attribute is custom attribute.booleanIs attribute a DAbooleanbooleanisHidden()Checks if is hidden.isLink()Checks if is link.booleanChecks if is mandatory.booleanChecks if is multi valued.booleanChecks if is read only.booleanCheck if it is needed to update immediately.voidsetAttribute(BusinessDataAttribute attribute) Sets the attribute.voidsetEnumerable(boolean enumerable) voidSets the group.voidsetHidden(boolean hidden) Sets the hidden.voidsetInterval(BigDecimal interval) Sets the interval.voidsetLink(boolean isLink) Sets the link.voidsetMandatory(boolean mandatory) Sets the mandatory.voidsetMultiValued(boolean multiValued) Sets the multi valued.voidsetPosition(Integer position) Sets the position.voidsetPrecision(Integer precision) Sets the precision.voidSets the range.voidsetReadOnly(boolean readOnly) Sets the read only.voidsetSubGroup(List<String> subGroup) Set the sub group.voidSets the value.voidsetValuetype(Type valuetype) Sets the valuetype.toString()To string.Methods inherited from class com.imc.datamodel.transferobjects.BusinessDataAttributeDTO
equals, hashCodeMethods inherited from class com.imc.datamodel.transferobjects.BusinessAttributeDTO
dynamicAttributeName, getDynamicAttributeMatrixColumnNumber, getDynamicAttributeMatrixRowNumber, getError, getHasUIControl, getLength, isCostingRelevant, isDelayedUpdate, isOrderRelevant, isPricingRelevant, isQuoteRelevantMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.imc.iss.web.dto.JSONBusinessAttributeDTO
getError, getL10nKey, getRichTextDescription
-
Constructor Details
-
JSONBusinessDataAttributeDTO
public JSONBusinessDataAttributeDTO() -
JSONBusinessDataAttributeDTO
Instantiates a new JSON business data attribute dto.- Parameters:
bdaDTO- the bda dto
-
-
Method Details
-
create
JSON creator.- Parameters:
attribute- the attribute- Returns:
- the JSON business data attribute dto
-
getAcceptedFileTypes
-
getAttribute
public BusinessDataAttribute getAttribute()Gets the attribute.- Specified by:
getAttributein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Overrides:
getAttributein classBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the attribute
-
getDecimalPlace
Gets the decimal place.- Returns:
- the decimalPlace
-
getDynamicAttributeName
Description copied from interface:JSONBusinessAttributeDTOGet Dynamic Attribute Name ${tags}- Specified by:
getDynamicAttributeNamein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object>
-
getFileUpload
-
getGroup
Description copied from interface:JSONBusinessAttributeDTOGets the group.- Specified by:
getGroupin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the group
-
getInterval
Gets the interval.- Returns:
- the interval
-
getMaxValue
Gets the upper boundary.- Returns:
- the max value
-
getMinValue
Gets the lower boundary.- Returns:
- the min value
-
getPosition
Gets the position.- Specified by:
getPositionin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the position
-
getPrecision
Gets the precision.- Returns:
- the precision
-
getRange
Gets the range.- Returns:
- the range
-
getRoundingMode
Gets the rounding mode.- Returns:
- the roundingMode
-
getSearchExpressionMetaAttribute
-
getSubGroup
Description copied from interface:JSONBusinessAttributeDTOGets the sub group.- Specified by:
getSubGroupin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the group
-
getUploadFolder
-
getValue
Gets the value.- Specified by:
getValuein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Overrides:
getValuein classBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the value
-
getValuetype
Gets the valuetype.- Returns:
- the valuetype
-
isCalculation
public boolean isCalculation()- Overrides:
isCalculationin classBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isCustomAttribute
Description copied from interface:JSONBusinessAttributeDTOChecks if attribute is custom attribute.- Specified by:
isCustomAttributein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if attribute is custom attribute
-
isDynamicAttribute
public boolean isDynamicAttribute()Description copied from interface:JSONBusinessAttributeDTOIs attribute a DA- Specified by:
isDynamicAttributein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Overrides:
isDynamicAttributein classBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isEnumerable
public boolean isEnumerable()- Specified by:
isEnumerablein interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isHidden
public boolean isHidden()Checks if is hidden.- Specified by:
isHiddenin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if is hidden
-
isHiddenBySchemaExtensibility
- Specified by:
isHiddenBySchemaExtensibilityin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isHiddenInUICustomization
- Specified by:
isHiddenInUICustomizationin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isLink
Checks if is link.- Specified by:
isLinkin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if is link
-
isMandatory
public boolean isMandatory()Checks if is mandatory.- Specified by:
isMandatoryin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if is mandatory
-
isMultiValued
public boolean isMultiValued()Checks if is multi valued.- Specified by:
isMultiValuedin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if is multi valued
-
isReadOnly
public boolean isReadOnly()Checks if is read only.- Specified by:
isReadOnlyin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- true, if is read only
-
isReadOnlyInUICustomization
- Specified by:
isReadOnlyInUICustomizationin interfaceJSONBusinessAttributeDTO<BusinessDataAttribute,Object>
-
isSynchronizeAllowed
public boolean isSynchronizeAllowed()Description copied from interface:JSONBusinessAttributeDTOCheck if it is needed to update immediately.- Specified by:
isSynchronizeAllowedin interfaceJSONBusinessAttributeDTO<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
Sets the group.- Parameters:
group- the new group
-
setHidden
public void setHidden(boolean hidden) Sets the hidden.- Parameters:
hidden- the new hidden
-
setInterval
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
Sets the position.- Parameters:
position- the new position
-
setPrecision
Sets the precision.- Parameters:
precision- the new precision
-
setRange
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
Set the sub group.- Parameters:
subGroup-
-
setValue
Sets the value.- Parameters:
value- the new value
-
setValuetype
Sets the valuetype.- Parameters:
valuetype- the new valuetype
-
toString
To string.- Overrides:
toStringin classBusinessAttributeDTO<BusinessDataAttribute,Object> - Returns:
- the string
-