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

FileGetCommand - JBOSS Portal 2.2 API 英文版文档


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

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

public class FileGetCommand
extends JCRCommand

Retrieves a file and its versioned, localized content.


Constructor Summary
FileGetCommand(java.lang.String sPath, java.util.Locale locale)
          Retrieves the "LIVE" version of the file.
FileGetCommand(java.lang.String sPath, java.lang.String sVersionNumber, java.util.Locale locale)
          Use this constructor for retrieveing a specific version of the file.
 
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

FileGetCommand

public FileGetCommand(java.lang.String sPath,
                      java.util.Locale locale)
Retrieves the "LIVE" version of the file. Useful for serving content.

Parameters:
sPath - Path of *original* file.

FileGetCommand

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

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

execute

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