站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ContentCreateNewVersionCommand - JBOSS Portal 2.6 API 英文版文档


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

java.lang.Object
  extended byorg.jboss.portal.common.invocation.Invocation
      extended byorg.jboss.portal.cms.Command
          extended byorg.jboss.portal.cms.impl.jcr.JCRCommand
              extended byorg.jboss.portal.cms.impl.jcr.command.ContentCreateNewVersionCommand
All Implemented Interfaces:
java.io.Serializable

public class ContentCreateNewVersionCommand
extends JCRCommand

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

Author:
Roy Russo, Thomas Heute
See Also:
Serialized Form

Field Summary
(package private)  boolean bMakeLive
           
(package private)  java.util.List mContents
           
private static long serialVersionUID
          The serialVersionUID
 
Fields inherited from class org.jboss.portal.cms.impl.jcr.JCRCommand
context, JCR_COMMANDFATORY_ATTRIBUTE, JCR_LOCALE_ATTRIBUTE, JCR_SESSION_ATTRIBUTE
 
Fields inherited from class org.jboss.portal.common.invocation.Invocation
EMPTY_STACK
 
Constructor Summary
ContentCreateNewVersionCommand(Content content, boolean bMakeLive)
           
ContentCreateNewVersionCommand(java.util.List contents, boolean bMakeLive)
           
 
Method Summary
 java.lang.Object execute()
           
 
Methods inherited from class org.jboss.portal.cms.impl.jcr.JCRCommand
getContext, setContext
 
Methods inherited from class org.jboss.portal.common.invocation.Invocation
getAttribute, getHandler, invoke, invokeNext, removeAttribute, setAttribute, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

mContents

java.util.List mContents

bMakeLive

boolean bMakeLive
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()
Specified by:
execute in class JCRCommand