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>>
- Since:
- 5.8
-
Field Summary
Fields inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityWriter
factory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
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
-
Constructor Details
-
BusinessAdapterListWriter
public BusinessAdapterListWriter()
-
-
Method Details
-
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
-