Skip to content

Commit

Permalink
LPD-3300 autogenerated code (gw buildService)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-ale-sbarra authored and brianchandotcom committed Jan 26, 2024
1 parent 433f82c commit c18b589
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1205,13 +1205,53 @@ public CPDefinitionLocalization updateImpl(
}

try {
cpDefinitionLocalization.setName(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL, cpDefinitionLocalization.getName(),
null));

cpDefinitionLocalization.setShortDescription(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL,
cpDefinitionLocalization.getShortDescription(), null));

cpDefinitionLocalization.setDescription(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL,
cpDefinitionLocalization.getDescription(), null));

cpDefinitionLocalization.setMetaTitle(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL,
cpDefinitionLocalization.getMetaTitle(), null));

cpDefinitionLocalization.setMetaDescription(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL,
cpDefinitionLocalization.getMetaDescription(), null));

cpDefinitionLocalization.setMetaKeywords(
SanitizerUtil.sanitize(
companyId, groupId, userId,
CPDefinitionLocalization.class.getName(),
cpDefinitionLocalizationId, ContentTypes.TEXT_HTML,
Sanitizer.MODE_ALL,
cpDefinitionLocalization.getMetaKeywords(), null));
}
catch (SanitizerException sanitizerException) {
throw new SystemException(sanitizerException);
Expand Down

0 comments on commit c18b589

Please sign in to comment.