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

ContentGetCommand - JBOSS Portal 2.6 API 英文版文档


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

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.ContentGetCommand
All Implemented Interfaces:
java.io.Serializable

public class ContentGetCommand
extends JCRCommand

Author:
Roy Russo
See Also:
Serialized Form

Field Summary
private static org.apache.log4j.Logger log
           
(package private)  java.util.Locale mlocale
           
(package private)  java.lang.String msPath
           
(package private)  java.lang.String msVersionNumber
           
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
ContentGetCommand(java.lang.String sPath, java.util.Locale locale)
          Retrieves the "LIVE" version of the content.
ContentGetCommand(java.lang.String sPath, java.lang.String sVersionNumber, java.util.Locale locale)
          Use this constructor for retrieveing a specific version of the content with a specific locale.
 
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

msPath

java.lang.String msPath

msVersionNumber

java.lang.String msVersionNumber

mlocale

java.util.Locale mlocale

log

private static org.apache.log4j.Logger log
Constructor Detail

ContentGetCommand

public ContentGetCommand(java.lang.String sPath,
                         java.util.Locale locale)
Retrieves the "LIVE" version of the content.

Parameters:
sPath - Path of parent File.
locale - content locale to retrieve

ContentGetCommand

public ContentGetCommand(java.lang.String sPath,
                         java.lang.String sVersionNumber,
                         java.util.Locale locale)
Use this constructor for retrieveing a specific version of the content with a specific locale.

Parameters:
sPath - Path of parent File.
sVersionNumber - Identifier used to retrieve the specific version.
locale - Locale of content to be retrieved.
Method Detail

execute

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