@Component public class BusinessObjectFormatHelper extends Object
| Constructor and Description |
|---|
BusinessObjectFormatHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
businessObjectFormatEntityAltKeyToString(BusinessObjectFormatEntity businessObjectFormatEntity)
Returns a string representation of the alternate key values for the business object format.
|
String |
businessObjectFormatKeyToString(BusinessObjectFormatKey businessObjectFormatKey)
Returns a string representation of the business object format key.
|
BusinessObjectFormat |
createBusinessObjectFormatFromEntity(BusinessObjectFormatEntity businessObjectFormatEntity)
Creates the business object format from the persisted entity.
|
BusinessObjectFormat |
createBusinessObjectFormatFromEntity(BusinessObjectFormatEntity businessObjectFormatEntity,
Boolean checkLatestVersion)
Creates the business object format from the persisted entity.
|
Map<String,BusinessObjectDataAttributeDefinitionEntity> |
getAttributeDefinitionEntities(BusinessObjectFormatEntity businessObjectFormatEntity)
Returns a map with attribute names in uppercase mapped to the relative attribute definition entities.
|
BusinessObjectFormatKey |
getBusinessObjectFormatKey(BusinessObjectDataKey businessObjectDataKey)
Gets business object format key from the specified business object data key.
|
BusinessObjectFormatKey |
getBusinessObjectFormatKey(BusinessObjectFormat businessObjectFormat)
Returns a business object format key for the business object format.
|
BusinessObjectFormatKey |
getBusinessObjectFormatKey(BusinessObjectFormatEntity businessObjectFormatEntity)
Creates a business object format key from specified business object format entity.
|
void |
validateBusinessObjectFormatKey(BusinessObjectFormatKey key)
Validates the business object format key.
|
void |
validateBusinessObjectFormatKey(BusinessObjectFormatKey key,
Boolean businessObjectFormatVersionRequired)
Validates the business object format key.
|
public String businessObjectFormatEntityAltKeyToString(BusinessObjectFormatEntity businessObjectFormatEntity)
businessObjectFormatEntity - the business object format entitypublic String businessObjectFormatKeyToString(BusinessObjectFormatKey businessObjectFormatKey)
businessObjectFormatKey - the business object format keypublic BusinessObjectFormat createBusinessObjectFormatFromEntity(BusinessObjectFormatEntity businessObjectFormatEntity, Boolean checkLatestVersion)
businessObjectFormatEntity - the newly persisted business object format entity.checkLatestVersion - need to check latest versionpublic BusinessObjectFormat createBusinessObjectFormatFromEntity(BusinessObjectFormatEntity businessObjectFormatEntity)
businessObjectFormatEntity - the newly persisted business object format entity.public Map<String,BusinessObjectDataAttributeDefinitionEntity> getAttributeDefinitionEntities(BusinessObjectFormatEntity businessObjectFormatEntity)
businessObjectFormatEntity - the business object format entitypublic BusinessObjectFormatKey getBusinessObjectFormatKey(BusinessObjectFormatEntity businessObjectFormatEntity)
businessObjectFormatEntity - the business object format entitypublic BusinessObjectFormatKey getBusinessObjectFormatKey(BusinessObjectFormat businessObjectFormat)
businessObjectFormat - the business object formatpublic BusinessObjectFormatKey getBusinessObjectFormatKey(BusinessObjectDataKey businessObjectDataKey)
businessObjectDataKey - the business object data keypublic void validateBusinessObjectFormatKey(BusinessObjectFormatKey key) throws IllegalArgumentException
key - the business object format keyIllegalArgumentException - if any validation errors were foundpublic void validateBusinessObjectFormatKey(BusinessObjectFormatKey key, Boolean businessObjectFormatVersionRequired) throws IllegalArgumentException
key - the business object format keybusinessObjectFormatVersionRequired - specifies if business object format version parameter is required or notIllegalArgumentException - if any validation errors were foundCopyright © 2021. All rights reserved.