@Setup(mode=SINGLETON, priority=2000) public class ACLJsonEnricher extends AbstractJsonEnricher<DocumentModel>
DocumentModel
Json.
Add DocumentModel
's ACP as json attachment.
Enable if parameter enrichers.document=acls is present.
Format is:
{ "entity-type":"document", ... "contextParameters": { "acls": [ { "name":"inherited", "ace":[ { "username":"administrators", "permission":"Everything", "granted":true }, ... ] }, ... ] } }
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ENTITY_ENRICHER_NAME
Constructor and Description |
---|
ACLJsonEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
write(org.codehaus.jackson.JsonGenerator jg,
DocumentModel document)
When implementing this method, the provided
JsonGenerator expect you write a field name and a field value
(or many). |
accept, write
write
public static final String NAME
public void write(org.codehaus.jackson.JsonGenerator jg, DocumentModel document) throws IOException
AbstractJsonEnricher
JsonGenerator
expect you write a field name and a field value
(or many).write
in class AbstractJsonEnricher<DocumentModel>
jg
- The JsonGenerator
to use.document
- The enriched entity.IOException
Copyright © 2015 Nuxeo SA. All rights reserved.