org.alfresco.filesys.repo.rules.commands
Class CompoundCommand

java.lang.Object
  extended by org.alfresco.filesys.repo.rules.commands.CompoundCommand
All Implemented Interfaces:
Command

public class CompoundCommand
extends java.lang.Object
implements Command

A compound operation contains one or more other commands.


Constructor Summary
CompoundCommand(java.util.List commands)
          New Compound Command containing the specified commands.
CompoundCommand(java.util.List commands, java.util.List postCommitCommands)
          New Compound Command containing the specified commands.
CompoundCommand(java.util.List commands, java.util.List postCommitCommands, java.util.List postErrorCommands)
           
 
Method Summary
 java.util.List getCommands()
           
 java.util.List getPostCommitCommands()
           
 java.util.List getPostErrorCommands()
           
 AlfrescoTransactionSupport.TxnReadState getTransactionRequired()
          Is a transaction required to run this command?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundCommand

public CompoundCommand(java.util.List commands)
New Compound Command containing the specified commands.

Parameters:
commands -

CompoundCommand

public CompoundCommand(java.util.List commands,
                       java.util.List postCommitCommands)
New Compound Command containing the specified commands.

Parameters:
commands -

CompoundCommand

public CompoundCommand(java.util.List commands,
                       java.util.List postCommitCommands,
                       java.util.List postErrorCommands)
Method Detail

getCommands

public java.util.List getCommands()

getPostCommitCommands

public java.util.List getPostCommitCommands()

getPostErrorCommands

public java.util.List getPostErrorCommands()

getTransactionRequired

public AlfrescoTransactionSupport.TxnReadState getTransactionRequired()
Description copied from interface: Command
Is a transaction required to run this command?

Specified by:
getTransactionRequired in interface Command


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.