@Setup(mode=SINGLETON, priority=2000) public class ACPJsonWriter extends ExtensibleEntityJsonWriter<ACP>
ACP
to Json.
This marshaller is enrichable: register class implementing AbstractJsonEnricher
and managing ACP
.
This marshaller is also extensible: extend it and simply override
ExtensibleEntityJsonWriter#extend(ACP, JsonGenerator)
.
Format is:
{ "entity-type":"acls", "acl": [ { "name":"inherited", "ace":[ { "username":"administrators", "permission":"Everything", "granted":true }, ... ] }, ... ] <-- contextParameters if there are enrichers activated <-- additional property provided by extend() method }
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
Constructor and Description |
---|
ACPJsonWriter() |
write
accept, write
public static final String ENTITY_TYPE
Copyright © 2015 Nuxeo SA. All rights reserved.