Skip to content

Commit

Permalink
LPD-50348 Provide support for propsTransformer in custom data sets. T…
Browse files Browse the repository at this point in the history
…his does not enable DSM to manage it but import process from system data set will preserve all the information
  • Loading branch information
dsanz committed Mar 5, 2025
1 parent 635b199 commit 9acb750
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ protected void doTransactionalCommand(
"listOfItemsPerPage",
StringUtil.merge(
systemFDSEntry.getListOfItemsPerPage(), StringPool.COMMA)
).put(
"propsTransformer", systemFDSEntry.getPropsTransformer()
).put(
"restApplication", systemFDSEntry.getRESTApplication()
).put(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,10 @@ public JSONObject serializePagination(
public String serializePropsTransformer(
String fdsName, HttpServletRequest httpServletRequest) {

// TODO
Map<String, Object> properties = getDataSetObjectEntryProperties(
fdsName, httpServletRequest);

return null;
return String.valueOf(properties.get("propsTransformer"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,21 @@
"system": true,
"type": "String"
},
{
"DBType": "String",
"businessType": "Text",
"externalReferenceCode": "PROPS_TRANSFORMER",
"indexed": true,
"indexedAsKeyword": false,
"label": {
"en_US": "Props Transformer"
},
"name": "propsTransformer",
"required": false,
"state": false,
"system": true,
"type": "String"
},
{
"DBType": "String",
"businessType": "Text",
Expand Down

0 comments on commit 9acb750

Please sign in to comment.