Class UserProfileEnricher
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<Enriched<NuxeoPrincipal>>
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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected ConfigurationServiceprotected DownloadServicestatic final Stringprotected SchemaManagerprotected UserProfileServiceFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher
ENTITY_ENRICHER_NAME, MAPPERFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractJsonEnricher
accept, safeReadBuffer, writeMethods 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:AbstractJsonEnricherWhen implementing this method, the providedJsonGeneratorexpect you write a field name and a field value (or many).- Specified by:
writein classAbstractJsonEnricher<NuxeoPrincipal>- Parameters:
jg- TheJsonGeneratorto 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
-