Class UserProfileEnricher
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<Enriched<EntityType>>
org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher<NuxeoPrincipal>
org.nuxeo.ecm.user.center.profile.rest.UserProfileEnricher
- All Implemented Interfaces:
Marshaller<Enriched<NuxeoPrincipal>>
,Writer<Enriched<NuxeoPrincipal>>
@Setup(mode=SINGLETON,
priority=2000)
public class UserProfileEnricher
extends AbstractJsonEnricher<NuxeoPrincipal>
- Since:
- 8.1
- Author:
- Arnaud Kervern
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected ConfigurationService
protected DownloadService
static final String
protected SchemaManager
protected UserProfileService
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher
ENTITY_ENRICHER_NAME, MAPPER
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoPrincipal nuxeoPrincipal) When implementing this method, the providedJsonGenerator
expect you write a field name and a field value (or many).protected void
writeCompatibilityUserProfile
(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) protected void
writeUserProfile
(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher
accept, safeReadBuffer, write
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Field Details
-
NAME
- See Also:
-
COMPATIBILITY_CONFIGURATION_PARAM
- Since:
- 9.3
- See Also:
-
schemaManager
-
userProfileService
-
configurationService
-
downloadService
-
-
Constructor Details
-
UserProfileEnricher
public UserProfileEnricher()
-
-
Method Details
-
write
public void write(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoPrincipal nuxeoPrincipal) throws IOException Description copied from class:AbstractJsonEnricher
When implementing this method, the providedJsonGenerator
expect you write a field name and a field value (or many).- Specified by:
write
in classAbstractJsonEnricher<NuxeoPrincipal>
- Parameters:
jg
- TheJsonGenerator
to use.nuxeoPrincipal
- The enriched entity.- Throws:
IOException
-
writeCompatibilityUserProfile
protected void writeCompatibilityUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException - Throws:
IOException
-
writeUserProfile
protected void writeUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException - Throws:
IOException
-