Skip to main content

REST Expanders 1.13.0

· 3 min read
Frédéric Hannes

Name qualifying

Some names of variables and method arguments were qualified with specific suffixes in order to avoid obvious collisions with DataElement names. This problem occurs because these variable are named with a clear collision risk, because they are named simply after the element or with an existing suffix which risks collision with other variable names. One such example is a DataElement with name Command, which could collide with a frequently used variable name command, as $dataElement.name.firstToLower$ is also used as a variable in the same scope.

A transient option jaxrs.transient.useQualifiedNames.disable has been supplied to revert the behavior of the expanders for backwards compatibility. But keep in mind that this option will be removed in the future and has only been supplied for short-term compatibility if needed, allowing for planning to upgrade the codebase.

caution

The transient option jaxrs.transient.useQualifiedNames.disable was removed in rest-expanders version 2.9.0.

The following expanders have been affected:

  • CreateElementCommandExtensionExpander
    • Local variable in execute(): DataRef $dataElement.name$DataRef $dataElement.name$DataRef
      • Example (Element City): DataRef cityDataRef cityDataRef
      • Affected anchors:
        • @after-create and custom-after-create
  • ModifyElementCommandExtensionExpander
    • Local variable in execute(): DataRef $dataElement.name$DataRef $dataElement.name$DataRef
      • Example (Element City): DataRef cityDataRef cityDataRef
      • Affected anchors:
        • @after-modify and custom-after-modify
  • UpdateElementCommandExtensionExpander
    • Local variable in execute(): SearchResult<> $dataElement.name$ResultSearchResult<> $dataElement.name$SearchResult
      • Example (Element City): SearchResult<> cityResultSearchResult<> citySearchResult
      • Affected anchors:
        • @before-update and custom-before-update
        • @after-update and custom-after-update
    • Local variable in execute(): DataRef $dataElement.name$DataRef $dataElement.name$DataRef
      • Example (Element City): DataRef cityDataRef cityDataRef
      • Affected anchors:
        • @after-update and custom-after-update
  • RemoveElementCommandExtensionExpander
    • Local variable in execute(): SearchResult<> $dataElement.name$ResultSearchResult<> $dataElement.name$SearchResult
      • Example (Element City): SearchResult<> cityResultSearchResult<> citySearchResult
      • Affected anchors:
        • @before-delete and custom-before-delete
        • @after-delete and custom-after-delete
    • Local variable in execute(): DataRef $dataElement.name$DataRef $dataElement.name$DataRef
      • Example (Element City): DataRef cityDataRef cityDataRef
      • Affected anchors:
        • @before-delete and custom-before-delete
        • @after-delete and custom-after-delete
  • ElementOutputListMapper
    • Local variable in toExternal(): $dataElement.name$OutputModel $dataElement.name$$dataElement.name$OutputModel $dataElement.name$OutputModel
      • Example (Element City): CityOutputModel cityCityOutputModel cityOutputModel
      • Affected anchors:
        • @list-mapping and custom-list-mapping
  • CreateDetailsFillerExpander
    • Method argument in fill(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill and custom-fill
    • Method argument in fill$field.name$(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill-$field.name$ and custom-fill-$field.name$
  • ModifyDetailsFillerExpander
    • Method argument in fill(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill and custom-fill
    • Method argument in fill$field.name$(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill-$field.name$ and custom-fill-$field.name$
  • UpdateDetailsFillerExpander
    • Method argument in fill(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill and custom-fill
    • Method argument in fill$field.name$(): $dataElement.name$Details $dataElement.name$$dataElement.name$Details $dataElement.name$Details
      • Example (Element City): CityDetails cityCityDetails cityDetails
      • Affected anchors:
        • @fill-$field.name$ and custom-fill-$field.name$