public class UpdatePermission extends Object
Updates only the non-null fields, otherwise keep the ones of the old ACE.
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT_KEY |
static String |
ID |
static String |
NOTIFY_KEY |
protected CoreSession |
session |
protected String |
user |
Constructor and Description |
---|
UpdatePermission() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
run(DocumentModel doc) |
DocumentModel |
run(DocumentRef docRef) |
protected void |
updatePermission(DocumentModel doc) |
public static final String ID
public static final String NOTIFY_KEY
public static final String COMMENT_KEY
protected CoreSession session
public UpdatePermission()
public DocumentModel run(DocumentModel doc) throws ClientException
ClientException
public DocumentModel run(DocumentRef docRef) throws ClientException
ClientException
protected void updatePermission(DocumentModel doc) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.