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

GetArchiveCommand - JBOSS Portal 2.6 API 英文版文档


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

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

public class GetArchiveCommand
extends JCRCommand

Retrieves a folder tree as a zip for export.

Author:
Roy Russo
See Also:
Serialized Form

Field Summary
private static int BUFFER_SIZE
           
(package private)  JCRCommandContext mContext
           
(package private)  java.lang.String msLanguage
           
(package private)  java.lang.String msRootPath
           
private  java.lang.String rootFolderName
          Root folder in finished zip file that contains all nodes.
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
GetArchiveCommand(java.lang.String sRootPath, java.lang.String sLanguage)
           
 
Method Summary
 java.lang.Object execute()
           
private  java.util.zip.ZipOutputStream zipFiles(java.lang.String sPath, java.util.zip.ZipOutputStream zos)
          Recursive method for folder/file zipping.
 
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

msRootPath

java.lang.String msRootPath

msLanguage

java.lang.String msLanguage

mContext

JCRCommandContext mContext

BUFFER_SIZE

private static final int BUFFER_SIZE
See Also:
Constant Field Values

rootFolderName

private java.lang.String rootFolderName
Root folder in finished zip file that contains all nodes.

Constructor Detail

GetArchiveCommand

public GetArchiveCommand(java.lang.String sRootPath,
                         java.lang.String sLanguage)
Method Detail

execute

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

zipFiles

private java.util.zip.ZipOutputStream zipFiles(java.lang.String sPath,
                                               java.util.zip.ZipOutputStream zos)
Recursive method for folder/file zipping.

Parameters:
sPath -
zos -
Returns:
zos