Nuxeo Enterprise Platform 5.3

org.nuxeo.ecm.shell.commands.repository
Class AddLocalAceCommand

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.repository.AbstractCommand
      extended by 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)

Field Summary
static Log log
           
 
Fields inherited from class org.nuxeo.ecm.shell.commands.repository.AbstractCommand
client, cmdService, context
 
Constructor Summary
AddLocalAceCommand()
           
 
Method Summary
protected  void addLocalAce(CoreSession session, DocumentModel doc, String user, String permission, boolean grant)
          Add to the document a new local ace (on top, index 0).
 void run(CommandLine cmdLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Log log
Constructor Detail

AddLocalAceCommand

public AddLocalAceCommand()
Method Detail

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

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.