mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
129808 gjames: SEARCH-112: Adding SearchContext to the response git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -61,7 +61,8 @@ public class SerializerOfCollectionWithPaging extends SerializerBase<Serializabl
|
||||
jgen.writeFieldName("list");
|
||||
jgen.writeStartObject();
|
||||
serializePagination(pagedCol, jgen);
|
||||
jgen.writeObjectField("entries", pagedCol.getCollection());
|
||||
serializeContext(pagedCol, jgen);
|
||||
jgen.writeObjectField("entries", pagedCol.getCollection());
|
||||
serializeIncludedSource(pagedCol, jgen);
|
||||
jgen.writeEndObject();
|
||||
jgen.writeEndObject();
|
||||
@@ -77,6 +78,15 @@ public class SerializerOfCollectionWithPaging extends SerializerBase<Serializabl
|
||||
}
|
||||
}
|
||||
|
||||
private void serializeContext(SerializablePagedCollection pagedCol, JsonGenerator jgen) throws IOException,
|
||||
JsonProcessingException
|
||||
{
|
||||
if (pagedCol.getContext() != null)
|
||||
{
|
||||
jgen.writeObjectField("context",pagedCol.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
private void serializePagination(SerializablePagedCollection pagedCol, JsonGenerator jgen) throws IOException,
|
||||
JsonProcessingException
|
||||
{
|
||||
|
Reference in New Issue
Block a user