01: /*
02: * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.deployment;
06:
07: import java.util.zip.ZipEntry;
08:
09: import org.w3c.dom.Document;
10:
11: /**
12: * The DPDocDomPPF is a ProviderPackageFile which handles the display
13: * profile documents in the par file. It is different from the
14: * ParEntryDomPPF based on the usage of the par file. This is to
15: * support the backup/restore archive where the dp entry is not served
16: * as the entry name, in fact, there will be more then one dp
17: * documents inside one entry in the manifest file. The <code>getDPZip()</code> method
18: * in <code>ParManifest.java</code> has the assumption of only one dp
19: * in a par entry, where as in the backup/restore archive there could
20: * be more then one.
21: */
22: public class DPDocDomPPF extends ParEntryDomPPF {
23: public DPDocDomPPF(Document doc, String name) {
24: super (doc, name);
25: }
26:
27: public ZipEntry getZipEntry(ParManifest man)
28: throws ParFileException {
29: return man.getDPDocZip(m_Name);
30: }
31:
32: }
|