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 SummaryFields Modifier and Type Field Description protected StringdesFsPathKeytarget file keyprotected StringnoRecurseKeyno recurse flag keyprotected StringoverwriteKeyoverwrite flag keyprotected StringskipBinaryKeyskip binary flag keyprotected StringsrcAbsPathKeyfrom literal
 - 
Constructor SummaryConstructors Constructor Description AbstractExportViewToFile()
 - 
Method SummaryAll 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- 
srcAbsPathKeyprotected String srcAbsPathKey from literal
 - 
desFsPathKeyprotected String desFsPathKey target file key
 - 
overwriteKeyprotected String overwriteKey overwrite flag key
 - 
skipBinaryKeyprotected String skipBinaryKey skip binary flag key
 - 
noRecurseKeyprotected String noRecurseKey no recurse flag key
 
- 
 - 
Method Detail- 
getOutputStreamprotected OutputStream getOutputStream(org.apache.commons.chain.Context ctx) throws CommandException, IOException - Returns:
- the OutputStream for the given file
- Throws:
- CommandException
- IOException
 
 - 
getNoRecurseKeypublic String getNoRecurseKey() - Returns:
- the no recurse key
 
 - 
setNoRecurseKeypublic void setNoRecurseKey(String noRecurseKey) - Parameters:
- noRecurseKey- the no recurse key to set
 
 - 
getOverwriteKeypublic String getOverwriteKey() - Returns:
- the overwrite key
 
 - 
setOverwriteKeypublic void setOverwriteKey(String overwriteKey) - Parameters:
- overwriteKey- the overwrite key to set
 
 - 
getSkipBinaryKeypublic String getSkipBinaryKey() - Returns:
- the skip binary key
 
 - 
setSkipBinaryKeypublic void setSkipBinaryKey(String skipBinaryKey) - Parameters:
- skipBinaryKey- the skip binary key to set
 
 - 
getSrcAbsPathKeypublic String getSrcAbsPathKey() - Returns:
- the from key
 
 - 
setSrcAbsPathKeypublic void setSrcAbsPathKey(String fromKey) - Parameters:
- fromKey- the from key to set
 
 - 
getDesFsPathKeypublic String getDesFsPathKey() - Returns:
- the to key
 
 - 
setDesFsPathKeypublic void setDesFsPathKey(String toKey) - Parameters:
- toKey- the to key to set
 
 - 
executepublic final boolean execute(org.apache.commons.chain.Context ctx) throws Exception- Specified by:
- executein interface- org.apache.commons.chain.Command
- Throws:
- Exception
 
 - 
exportViewprotected abstract void exportView(Node node, OutputStream out, boolean skipBinary, boolean noRecurse) throws PathNotFoundException, IOException, RepositoryException Export the view to the given OutputStream- Parameters:
- node- the- Node
- out- the- OutputStream
- skipBinary-
- noRecurse-
- Throws:
- RepositoryException
- IOException
- PathNotFoundException
 
 
- 
 
-