当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
ContentGetCommand - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.cms.impl.jcr
Class ContentGetCommand
java.lang.Object
org.jboss.portal.cms.impl.jcr.JCRCommand
org.jboss.portal.cms.impl.jcr.ContentGetCommand
- All Implemented Interfaces:
- Command
- public class ContentGetCommand
- extends JCRCommand
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
execute
public java.lang.Object execute(JCRCommandContext context)
- Specified by:
execute
in class JCRCommand