@Setup(mode=SINGLETON, priority=2000) public class BlobAppLinksJsonEnricher extends AbstractJsonEnricher<BlobProperty>
Blob
json with list of AppLink
.
Enabled when parameter enrichers-blob=appLinks is present.
Blob format is:
{
"name": "...",
"mime-type": "...",
...
"appLinks": [
{
"appName": "...",
"icon": "...",
"link": "..."
},
...
]
}
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ENTITY_ENRICHER_NAME
ctx, registry
Constructor and Description |
---|
BlobAppLinksJsonEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
BlobProperty blobProperty)
When implementing this method, the provided
JsonGenerator expect you write a field name and a field value
(or many). |
accept, write
getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
public static final String NAME
public BlobAppLinksJsonEnricher()
public void write(com.fasterxml.jackson.core.JsonGenerator jg, BlobProperty blobProperty) throws IOException
AbstractJsonEnricher
JsonGenerator
expect you write a field name and a field value
(or many).write
in class AbstractJsonEnricher<BlobProperty>
jg
- The JsonGenerator
to use.blobProperty
- The enriched entity.IOException
Copyright © 2019 Nuxeo. All rights reserved.