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 StringgetEntityType()Returns the entity-type value of the list (ie: users, groups....)protected voidwriteItem(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:EntityListWriterReturns the entity-type value of the list (ie: users, groups....)- Specified by:
getEntityTypein classEntityListWriter<BusinessAdapter>- Returns:
- the string representing the entity-type.
-
writeItem
protected void writeItem(com.fasterxml.jackson.core.JsonGenerator jg, BusinessAdapter item) throws IOExceptionDescription copied from class:EntityListWriterWrites the item in a JsonGenerator.- Specified by:
writeItemin classEntityListWriter<BusinessAdapter>- Throws:
IOException
-
-