org.jboss.portal.cms.impl.jcr
Class ContentCreateNewVersionCommand

java.lang.Object
  extended byorg.jboss.portal.cms.impl.jcr.JCRCommand
      extended byorg.jboss.portal.cms.impl.jcr.ContentCreateNewVersionCommand
All Implemented Interfaces:
Command

public class ContentCreateNewVersionCommand
extends JCRCommand

Creates a new version of the content and labels it "LIVE".


Constructor Summary
ContentCreateNewVersionCommand(Content content, boolean bMakeLive)
           
ContentCreateNewVersionCommand(java.util.List contents, boolean bMakeLive)
           
 
Method Summary
 java.lang.Object execute(JCRCommandContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentCreateNewVersionCommand

public ContentCreateNewVersionCommand(Content content,
                                      boolean bMakeLive)
Parameters:
content -
bMakeLive - Whether this updated version should be made "LIVE"

ContentCreateNewVersionCommand

public ContentCreateNewVersionCommand(java.util.List contents,
                                      boolean bMakeLive)
Method Detail

execute

public java.lang.Object execute(JCRCommandContext context)
Specified by:
execute in class JCRCommand