@Setup(mode=SINGLETON, priority=2000) public class UserProfileEnricher extends AbstractJsonEnricher<NuxeoPrincipal>
Modifier and Type | Field and Description |
---|---|
static String |
COMPATIBILITY_CONFIGURATION_PARAM |
protected ConfigurationService |
configurationService |
protected DownloadService |
downloadService |
static String |
NAME |
protected SchemaManager |
schemaManager |
protected UserProfileService |
userProfileService |
ENTITY_ENRICHER_NAME
ctx, registry
Constructor and Description |
---|
UserProfileEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
NuxeoPrincipal nuxeoPrincipal)
When implementing this method, the provided
JsonGenerator 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) |
accept, write
getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
public static final String NAME
public static final String COMPATIBILITY_CONFIGURATION_PARAM
@Inject protected SchemaManager schemaManager
@Inject protected UserProfileService userProfileService
@Inject protected ConfigurationService configurationService
@Inject protected DownloadService downloadService
public UserProfileEnricher()
public void write(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoPrincipal nuxeoPrincipal) throws IOException
AbstractJsonEnricher
JsonGenerator
expect you write a field name and a field value
(or many).write
in class AbstractJsonEnricher<NuxeoPrincipal>
jg
- The JsonGenerator
to use.nuxeoPrincipal
- The enriched entity.IOException
protected void writeCompatibilityUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException
IOException
protected void writeUserProfile(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel up) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.