Class AbstractExportViewToFile
- java.lang.Object
 - 
- org.apache.jackrabbit.standalone.cli.xml.AbstractExportViewToFile
 
 
- 
- All Implemented Interfaces:
 org.apache.commons.chain.Command
- Direct Known Subclasses:
 ExportDocViewToFile,ExportSysViewToFile
public abstract class AbstractExportViewToFile extends Object implements org.apache.commons.chain.Command
Export the xml view to a file 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected StringdesFsPathKeytarget file keyprotected StringnoRecurseKeyno recurse flag keyprotected StringoverwriteKeyoverwrite flag keyprotected StringskipBinaryKeyskip binary flag keyprotected StringsrcAbsPathKeyfrom literal 
- 
Constructor Summary
Constructors Constructor Description AbstractExportViewToFile() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanexecute(org.apache.commons.chain.Context ctx)protected abstract voidexportView(Node node, OutputStream out, boolean skipBinary, boolean noRecurse)Export the view to the given OutputStreamStringgetDesFsPathKey()StringgetNoRecurseKey()protected OutputStreamgetOutputStream(org.apache.commons.chain.Context ctx)StringgetOverwriteKey()StringgetSkipBinaryKey()StringgetSrcAbsPathKey()voidsetDesFsPathKey(String toKey)voidsetNoRecurseKey(String noRecurseKey)voidsetOverwriteKey(String overwriteKey)voidsetSkipBinaryKey(String skipBinaryKey)voidsetSrcAbsPathKey(String fromKey) 
 - 
 
- 
- 
Field Detail
- 
srcAbsPathKey
protected String srcAbsPathKey
from literal 
- 
desFsPathKey
protected String desFsPathKey
target file key 
- 
overwriteKey
protected String overwriteKey
overwrite flag key 
- 
skipBinaryKey
protected String skipBinaryKey
skip binary flag key 
- 
noRecurseKey
protected String noRecurseKey
no recurse flag key 
 - 
 
- 
Method Detail
- 
getOutputStream
protected OutputStream getOutputStream(org.apache.commons.chain.Context ctx) throws CommandException, IOException
- Returns:
 - the OutputStream for the given file
 - Throws:
 CommandExceptionIOException
 
- 
getNoRecurseKey
public String getNoRecurseKey()
- Returns:
 - the no recurse key
 
 
- 
setNoRecurseKey
public void setNoRecurseKey(String noRecurseKey)
- Parameters:
 noRecurseKey- the no recurse key to set
 
- 
getOverwriteKey
public String getOverwriteKey()
- Returns:
 - the overwrite key
 
 
- 
setOverwriteKey
public void setOverwriteKey(String overwriteKey)
- Parameters:
 overwriteKey- the overwrite key to set
 
- 
getSkipBinaryKey
public String getSkipBinaryKey()
- Returns:
 - the skip binary key
 
 
- 
setSkipBinaryKey
public void setSkipBinaryKey(String skipBinaryKey)
- Parameters:
 skipBinaryKey- the skip binary key to set
 
- 
getSrcAbsPathKey
public String getSrcAbsPathKey()
- Returns:
 - the from key
 
 
- 
setSrcAbsPathKey
public void setSrcAbsPathKey(String fromKey)
- Parameters:
 fromKey- the from key to set
 
- 
getDesFsPathKey
public String getDesFsPathKey()
- Returns:
 - the to key
 
 
- 
setDesFsPathKey
public void setDesFsPathKey(String toKey)
- Parameters:
 toKey- the to key to set
 
- 
execute
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception- Specified by:
 executein interfaceorg.apache.commons.chain.Command- Throws:
 Exception
 
- 
exportView
protected abstract void exportView(Node node, OutputStream out, boolean skipBinary, boolean noRecurse) throws PathNotFoundException, IOException, RepositoryException
Export the view to the given OutputStream- Parameters:
 node- theNodeout- theOutputStreamskipBinary-noRecurse-- Throws:
 RepositoryExceptionIOExceptionPathNotFoundException
 
 - 
 
 -