01: /*
02: * ProviderPackageContext.java
03: *
04: * Created on October 10, 2001, 11:46 AM
05: */
06:
07: package com.sun.portal.desktop.deployment;
08:
09: import java.io.InputStream;
10:
11: import java.util.Vector;
12: import java.util.Properties;
13: import java.util.logging.Logger;
14:
15: import org.w3c.dom.Document;
16:
17: /**
18: * Context used by a provider to obtain ProviderPackageFile's. Also provides the Document
19: * for the .par entry.
20: *
21: * @author yabob
22: * @version
23: */
24: public interface ProviderPackageContext {
25:
26: public static String DTPROPFILE = "desktop.propertiesFile";
27: public static String STATICDIR = "ps.staticDir";
28: public static String PSWARDIR = "ps.warDir";
29: public static String PSWARFILE = "ps.warFile";
30: public static String PSDATADIR = "ps.dataDir";
31: public static String WAR = "war";
32: public static String CONFIG = "config";
33: public static String PORTAL_WAR = "portal.war";
34:
35: // setObject establishes context for the other calls (what part of the DP we are looking at).
36:
37: public void setLogger(Logger logger);
38:
39: public void setObject(String objname, int types)
40: throws ParFileException;
41:
42: public Document getParEntry(String entryname, String desc)
43: throws ParFileException;
44:
45: public String getContainerName(String channel)
46: throws ParFileException;
47:
48: public ProviderPackageFile getClassFile(String classname, int types)
49: throws ParFileException;
50:
51: public ProviderPackageFile getPropLocFile(String rootproperty,
52: String path, int types) throws ParFileException;
53:
54: public ProviderPackageFile getStaticFile(String path, int types)
55: throws ParFileException;
56:
57: public void addBasicFiles(Vector v) throws ParFileException;
58:
59: public String getPropertyString(String prop)
60: throws ParFileException;
61:
62: // prop = null indicates adding a directory of static content.
63:
64: public void addDirectory(String prop, String subdir,
65: boolean recurse, boolean addFiles, String dfilter,
66: int types, String excludedDir, Vector v)
67: throws ParFileException;
68:
69: public void setDTProps(Properties prop);
70:
71: }
|