org.nuxeo.ecm.shell.commands.repository
Class AddLocalAceCommand
java.lang.Object
org.nuxeo.ecm.shell.commands.repository.AbstractCommand
org.nuxeo.ecm.shell.commands.repository.AddLocalAceCommand
- All Implemented Interfaces:
- Command
public class AddLocalAceCommand
- extends AbstractCommand
Command for adding local ace to the current document.
- Author:
- Sun Seng David TAN (a.k.a. sunix)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final Log log
AddLocalAceCommand
public AddLocalAceCommand()
run
public void run(CommandLine cmdLine)
throws Exception
- Specified by:
run
in interface Command
- Specified by:
run
in class AbstractCommand
- Throws:
Exception
addLocalAce
protected void addLocalAce(CoreSession session,
DocumentModel doc,
String user,
String permission,
boolean grant)
throws Exception
- Add to the document a new local ace (on top, index 0).
- Parameters:
session
- doc
- user
- permission
- grant
-
- Throws:
Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.