REST Expanders 1.13.0
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.
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 city→DataRef cityDataRef - Affected anchors:
@after-createandcustom-after-create
- Example (Element
- Local variable in
ModifyElementCommandExtensionExpander- Local variable in
execute():DataRef $dataElement.name$→DataRef $dataElement.name$DataRef- Example (Element
City):DataRef city→DataRef cityDataRef - Affected anchors:
@after-modifyandcustom-after-modify
- Example (Element
- Local variable in
UpdateElementCommandExtensionExpander- Local variable in
execute():SearchResult<> $dataElement.name$Result→SearchResult<> $dataElement.name$SearchResult- Example (Element
City):SearchResult<> cityResult→SearchResult<> citySearchResult - Affected anchors:
@before-updateandcustom-before-update@after-updateandcustom-after-update
- Example (Element
- Local variable in
execute():DataRef $dataElement.name$→DataRef $dataElement.name$DataRef- Example (Element
City):DataRef city→DataRef cityDataRef - Affected anchors:
@after-updateandcustom-after-update
- Example (Element
- Local variable in
RemoveElementCommandExtensionExpander- Local variable in
execute():SearchResult<> $dataElement.name$Result→SearchResult<> $dataElement.name$SearchResult- Example (Element
City):SearchResult<> cityResult→SearchResult<> citySearchResult - Affected anchors:
@before-deleteandcustom-before-delete@after-deleteandcustom-after-delete
- Example (Element
- Local variable in
execute():DataRef $dataElement.name$→DataRef $dataElement.name$DataRef- Example (Element
City):DataRef city→DataRef cityDataRef - Affected anchors:
@before-deleteandcustom-before-delete@after-deleteandcustom-after-delete
- Example (Element
- Local variable in
ElementOutputListMapper- Local variable in
toExternal():$dataElement.name$OutputModel $dataElement.name$→$dataElement.name$OutputModel $dataElement.name$OutputModel- Example (Element
City):CityOutputModel city→CityOutputModel cityOutputModel - Affected anchors:
@list-mappingandcustom-list-mapping
- Example (Element
- Local variable in
CreateDetailsFillerExpander- Method argument in
fill():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fillandcustom-fill
- Example (Element
- Method argument in
fill$field.name$():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fill-$field.name$andcustom-fill-$field.name$
- Example (Element
- Method argument in
ModifyDetailsFillerExpander- Method argument in
fill():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fillandcustom-fill
- Example (Element
- Method argument in
fill$field.name$():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fill-$field.name$andcustom-fill-$field.name$
- Example (Element
- Method argument in
UpdateDetailsFillerExpander- Method argument in
fill():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fillandcustom-fill
- Example (Element
- Method argument in
fill$field.name$():$dataElement.name$Details $dataElement.name$→$dataElement.name$Details $dataElement.name$Details- Example (Element
City):CityDetails city→CityDetails cityDetails - Affected anchors:
@fill-$field.name$andcustom-fill-$field.name$
- Example (Element
- Method argument in
