Nuxeo Enterprise Platform 5.3

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

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.repository.AbstractCommand
      extended by org.nuxeo.ecm.shell.commands.repository.RmLocalAceCommand
All Implemented Interfaces:
Command

public class RmLocalAceCommand
extends AbstractCommand

Command for removing 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
RmLocalAceCommand()
           
 
Method Summary
protected  void removeLocalAce(CoreSession session, DocumentModel doc, int aceindex)
          Remove to the document the specified ace
 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

RmLocalAceCommand

public RmLocalAceCommand()
Method Detail

run

public void run(CommandLine cmdLine)
         throws Exception
Specified by:
run in interface Command
Specified by:
run in class AbstractCommand
Throws:
Exception

removeLocalAce

protected void removeLocalAce(CoreSession session,
                              DocumentModel doc,
                              int aceindex)
                       throws Exception
Remove to the document the specified ace

Parameters:
session -
doc -
user -
permission -
grant -
Throws:
Exception

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.