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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected ConfigurationServiceprotected DownloadServicestatic final Stringprotected SchemaManagerprotected UserProfileServiceFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricherENTITY_ENRICHER_NAME, MAPPERFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriterctx, registry
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidwrite(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoPrincipal nuxeoPrincipal) When implementing this method, the providedJsonGeneratorexpect you write a field name and a field value (or many).protected voidwriteCompatibilityUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) protected voidwriteUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricheraccept, safeReadBuffer, writeMethods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWritergetGenerator, 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- 
UserProfileEnricherpublic UserProfileEnricher()
 
- 
- 
Method Details- 
writepublic void write(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoPrincipal nuxeoPrincipal) throws IOException Description copied from class:AbstractJsonEnricherWhen implementing this method, the providedJsonGeneratorexpect you write a field name and a field value (or many).- Specified by:
- writein class- AbstractJsonEnricher<NuxeoPrincipal>
- Parameters:
- jg- The- JsonGeneratorto use.
- nuxeoPrincipal- The enriched entity.
- Throws:
- IOException
 
- 
writeCompatibilityUserProfileprotected void writeCompatibilityUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException - Throws:
- IOException
 
- 
writeUserProfileprotected void writeUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException - Throws:
- IOException
 
 
-