@Setup(mode=SINGLETON, priority=2000) public class DriveEditEnricher extends AbstractJsonEnricher<DocumentModel>
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
NEW_DRIVE_EDIT_URL_PROP_KEY |
static String |
NXDRIVE_PROTOCOL |
static String |
PROTOCOL_COMMAND_EDIT |
ENTITY_ENRICHER_NAME
ctx, registry
Constructor and Description |
---|
DriveEditEnricher() |
Modifier and Type | Method and Description |
---|---|
protected String |
doGetDriveEditURL(DocumentModel currentDocument) |
void |
write(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc)
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
public static final String NXDRIVE_PROTOCOL
public static final String PROTOCOL_COMMAND_EDIT
public static final String NEW_DRIVE_EDIT_URL_PROP_KEY
public static final String NAME
public DriveEditEnricher()
public void write(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc) 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.doc
- The enriched entity.IOException
protected String doGetDriveEditURL(DocumentModel currentDocument) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.