Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 16767 fixes onpersonaendpoint (#16854)
* #16252 format source. Introduce format checker on build. Alter style … (#16288) * #16252 format source. Introduce format checker on build. Alter style files * #16252 remove unwanted file * #16252 remove unwanted file * Updating commit reference for src/main/enterprise * try different location for checkstyle.xml * Revert "#16252 format source. Introduce format checker on build. Alter style … (#16288)" (#16291) This reverts commit 05f9082. * Updating commit reference for src/main/enterprise * #16767 changes requested from fox * #16767 Formatting the page persona * #16767 implementing the filter on the pagination for personas per page * #16767 now the persona contentlet is being retrive as hydrated * language key * #16767 fixing the persona output on the page render * #16767 removing merge stuff
- Loading branch information
1 parent
84f7f8d
commit 41cc4e4
Showing
7 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...java/com/dotcms/rest/api/v1/personalization/PersonalizationPersonaPageViewSerializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.dotcms.rest.api.v1.personalization; | ||
|
||
import com.fasterxml.jackson.core.JsonGenerator; | ||
import com.fasterxml.jackson.databind.JsonSerializer; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.databind.SerializerProvider; | ||
|
||
import java.io.IOException; | ||
|
||
public class PersonalizationPersonaPageViewSerializer extends JsonSerializer<PersonalizationPersonaPageView> { | ||
@Override | ||
public void serialize(final PersonalizationPersonaPageView personaPageView, | ||
final JsonGenerator jsonGenerator, | ||
final SerializerProvider serializers) throws IOException { | ||
|
||
jsonGenerator.writeRawValue(new ObjectMapper().writer().withDefaultPrettyPrinter() | ||
.writeValueAsString(personaPageView.getPersona())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters