Class BusinessAdapterListWriter
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.EntityWriter<List<T>>
-
- org.nuxeo.ecm.automation.jaxrs.io.EntityListWriter<BusinessAdapter>
-
- org.nuxeo.ecm.automation.jaxrs.io.documents.BusinessAdapterListWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<List<BusinessAdapter>>
public class BusinessAdapterListWriter extends EntityListWriter<BusinessAdapter>
- Since:
- 5.8
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityWriter
factory
-
-
Constructor Summary
Constructors Constructor Description BusinessAdapterListWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEntityType()
Returns the entity-type value of the list (ie: users, groups....)protected void
writeItem(com.fasterxml.jackson.core.JsonGenerator jg, BusinessAdapter item)
Writes the item in a JsonGenerator.-
Methods inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityListWriter
isWriteable, writeEntityBody, writeHeader, writePaginableHeader
-
Methods inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityWriter
getSize, writeEntity, writeTo
-
-
-
-
Method Detail
-
getEntityType
protected String getEntityType()
Description copied from class:EntityListWriter
Returns the entity-type value of the list (ie: users, groups....)- Specified by:
getEntityType
in classEntityListWriter<BusinessAdapter>
- Returns:
- the string representing the entity-type.
-
writeItem
protected void writeItem(com.fasterxml.jackson.core.JsonGenerator jg, BusinessAdapter item) throws IOException
Description copied from class:EntityListWriter
Writes the item in a JsonGenerator.- Specified by:
writeItem
in classEntityListWriter<BusinessAdapter>
- Throws:
IOException
-
-