|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectokapi.util.OkapiPackage
public class OkapiPackage
A class for importing and exporting nexuses or parts of nexuses. The export format conists of a single xml manifest file at the root of a directory containing all of the files. An OkapiPackage is created and documents added to it, and then exported as a zip file. The static addPackageToNexus() method imports these packages.
Field Summary | |
---|---|
protected java.util.HashMap |
stores
|
Constructor Summary | |
---|---|
OkapiPackage(OkapiNexus source)
Create a new OkapiExport which represents the nexus source |
Method Summary | |
---|---|
void |
add(java.lang.String path)
Add an arc or document to the package |
void |
addAll()
Add all arcs and documents to the package |
void |
addGroups()
Add all the groups and their members that are associated with the nexus |
void |
addPackageToNexus(java.io.InputStream formatFile,
OkapiNexus nexus)
Add this package to nexus. |
static void |
addPackageToNexus(java.lang.String pathToPackage,
java.lang.String pathToFormatFile,
OkapiNexus nexus)
Add the package at pathToPackage to nexus. |
void |
addWithChildren(java.lang.String path)
Add an arc to the package along with all of its arc and document children |
void |
export(java.io.OutputStream out,
java.lang.String dirName)
Export the package to the given OutputStream in a zipped directory called dirName |
void |
export(java.io.OutputStream out,
java.lang.String dirName,
java.io.InputStream stylesheet)
Export the package to the given OutputStream in a zipped directory called dirName with the manifest transformed by the xslt stylylesheet that can be read from stylesheet |
void |
export(java.io.OutputStream out,
java.lang.String dirName,
java.io.InputStream stylesheet,
java.io.InputStream htmlStylesheet)
Export the package to the given OutputStream in a zipped directory called dirName with the manifest transformed by the xslt stylylesheet that can be read from stylesheet, and with an html index page generated using the htmlStylesheet |
void |
export(java.lang.String path)
Export the package as a zipped file at path |
void |
export(java.lang.String path,
java.lang.String pathToStylesheet)
Export the package as a zipped file at path with the manifest transformed by the xslt stylesheet at pathToStylesheet |
void |
export(java.lang.String path,
java.lang.String pathToStylesheet,
java.lang.String pathToIndexHtmlStylesheet)
Export the package as a zipped file at path with the manifest transformed by the xslt stylesheet at pathToStylesheet, with the index.html file generated by the xslt stylesheet at pathToStylesheet, |
org.jdom.Document |
getManifest()
Return the manifest as a JDOM document. |
void |
setFixNames()
Set the package so that file names are rewritten for CDIF |
void |
setSkipFiles()
Set the package so that only the manifest will exported, for testing |
void |
setUser(OkapiUser user)
Set the user for whom we're exporting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap stores
Constructor Detail |
---|
public OkapiPackage(OkapiNexus source)
Method Detail |
---|
public void addAll() throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void add(java.lang.String path) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void addWithChildren(java.lang.String path) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void addGroups()
public void setSkipFiles()
public void setFixNames()
public void setUser(OkapiUser user)
public void export(java.lang.String path) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void export(java.lang.String path, java.lang.String pathToStylesheet) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void export(java.lang.String path, java.lang.String pathToStylesheet, java.lang.String pathToIndexHtmlStylesheet) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void export(java.io.OutputStream out, java.lang.String dirName) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void export(java.io.OutputStream out, java.lang.String dirName, java.io.InputStream stylesheet) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public void export(java.io.OutputStream out, java.lang.String dirName, java.io.InputStream stylesheet, java.io.InputStream htmlStylesheet) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public org.jdom.Document getManifest()
public void addPackageToNexus(java.io.InputStream formatFile, OkapiNexus nexus) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
public static void addPackageToNexus(java.lang.String pathToPackage, java.lang.String pathToFormatFile, OkapiNexus nexus) throws okapi.util.OkapiPackageException
okapi.util.OkapiPackageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |