Class ScimResourceWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<com.unboundid.scim2.common.ScimResource>
org.nuxeo.scim.v2.rest.marshalling.ScimResourceWriter
- All Implemented Interfaces:
Marshaller<com.unboundid.scim2.common.ScimResource>
,Writer<com.unboundid.scim2.common.ScimResource>
@Setup(mode=SINGLETON,
priority=2000)
public class ScimResourceWriter
extends AbstractJsonWriter<com.unboundid.scim2.common.ScimResource>
SCIM 2.0
ScimResource
JSON writer.- Since:
- 2023.15
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(com.unboundid.scim2.common.ScimResource entity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to writes the entity in the providedJsonGenerator
.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
ScimResourceWriter
public ScimResourceWriter()
-
-
Method Details
-
write
public void write(com.unboundid.scim2.common.ScimResource entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:AbstractJsonWriter
Implement this method to writes the entity in the providedJsonGenerator
.This method implementation can use injected properties.
The
JsonGenerator
's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the providedJsonGenerator
. It may be used is another marshaller calling this one.- Specified by:
write
in classAbstractJsonWriter<com.unboundid.scim2.common.ScimResource>
- Parameters:
entity
- The entity to marshall as Json.jg
- TheJsonGenerator
used to produce Json output.- Throws:
IOException
-