com.orchestranetworks.service
Class Archive

java.lang.Object
  extended bycom.orchestranetworks.service.Archive

public abstract class Archive
extends Object

An instance of this class references an EBX.Platform archive.

An archive represents a set of contents that are in a repository. It is used for propagating contents of one repository to another.

The implementations of this class are light-weight references to their underlying resource. For example, they do not open themselves a file stream if a file is provided.

The EBX.Platform archive must have been generated by an internal export procedure.

See Also:
ProcedureContext.doExportArchive(Archive), ProcedureContext.doImportArchive(Archive)

Field Summary
static String DIFF_HEADERS_ZIP_ENTRY
          Name of the zip entry for headers' differences.
static String DIFF_RIGHTS_ZIP_ENTRY
          Name of the zip entry for rights' differences.
static String DIFF_VALUES_ZIP_ENTRY
          Name of the zip entry for values' differences.
static String HEADER_DOCUMENT_NAME
          Usual name of run header XML document.
static String HEADER_TEMP_DOCUMENT_NAME
          Deprecated.  
static String TABLE_VALUES_ZIP_ENTRY
           
 
Constructor Summary
Archive()
           
 
Method Summary
abstract  InputStream computeInputStream()
           
static Archive forDirectory(File baseDirectory)
          Returns a reference to an archive in its expanded directory tree structure form.
static Archive forFile(File archiveFile)
          Returns a reference to an archive zip file.
static Archive forStream(String locationInfoOrNull, InputStream aStream)
          Returns a reference to an archive zip stream.
abstract  String getLocationInfo()
          Returns a user-readable information about the location of the archive
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_DOCUMENT_NAME

public static final String HEADER_DOCUMENT_NAME
Usual name of run header XML document.

See Also:
Constant Field Values

HEADER_TEMP_DOCUMENT_NAME

public static final String HEADER_TEMP_DOCUMENT_NAME
Deprecated.  

See Also:
Constant Field Values

DIFF_HEADERS_ZIP_ENTRY

public static final String DIFF_HEADERS_ZIP_ENTRY
Name of the zip entry for headers' differences.

See Also:
Constant Field Values

DIFF_RIGHTS_ZIP_ENTRY

public static final String DIFF_RIGHTS_ZIP_ENTRY
Name of the zip entry for rights' differences.

See Also:
Constant Field Values

DIFF_VALUES_ZIP_ENTRY

public static final String DIFF_VALUES_ZIP_ENTRY
Name of the zip entry for values' differences.

See Also:
Constant Field Values

TABLE_VALUES_ZIP_ENTRY

public static final String TABLE_VALUES_ZIP_ENTRY
See Also:
Constant Field Values
Constructor Detail

Archive

public Archive()
Method Detail

forFile

public static Archive forFile(File archiveFile)
Returns a reference to an archive zip file.


forStream

public static Archive forStream(String locationInfoOrNull,
                                InputStream aStream)
Returns a reference to an archive zip stream.


forDirectory

public static Archive forDirectory(File baseDirectory)
Returns a reference to an archive in its expanded directory tree structure form.


toString

public String toString()

computeInputStream

public abstract InputStream computeInputStream()
                                        throws FileNotFoundException
Throws:
FileNotFoundException

getLocationInfo

public abstract String getLocationInfo()
Returns a user-readable information about the location of the archive



(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.