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
Fields Modifier and Type Field Description static String
COMPATIBILITY_CONFIGURATION_PARAM
protected ConfigurationService
configurationService
protected DownloadService
downloadService
static String
NAME
protected SchemaManager
schemaManager
protected UserProfileService
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
Constructors Constructor Description UserProfileEnricher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
COMPATIBILITY_CONFIGURATION_PARAM
public static final String COMPATIBILITY_CONFIGURATION_PARAM
- Since:
- 9.3
- See Also:
- Constant Field Values
-
schemaManager
@Inject protected SchemaManager schemaManager
-
userProfileService
@Inject protected UserProfileService userProfileService
-
configurationService
@Inject protected ConfigurationService configurationService
-
downloadService
@Inject protected DownloadService downloadService
-
-
Method Detail
-
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
-
-