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:
13: /**
14: * The interface used by the extraction process. It's purpose is to encapsulate the use
15: * of the administration interface for populated the portal server. It uses the information
16: * in an extraction operation to set relevent status for the other methods which deploy
17: * stream information, usually obtained form a .par file.
18: *
19: * You COULD construct input streams and use this class to deploy stuff to the portal server
20: * from other sources, but that's not the intent.
21: *
22: * @author yabob
23: * @version
24: */
25: public interface ParExtractionContext {
26:
27: // We have an initialize and terminate in case the extraction context wants to be smart enough
28: // to back out the partial results of failed operation, or implement commit semantics. All of
29: // the other calls should occur between an init ... terminate pair.
30:
31: // Note - putParEntryXMLFile will be the first "put" call made - implementation may make use of
32: // this fact to set up status for the other operations.
33:
34: public void initializeForOperation(ExtractOp op)
35: throws ParFileException;
36:
37: public void terminateOperation(boolean success)
38: throws ParFileException;
39:
40: public void putClassFile(String fullname, InputStream in)
41: throws ParFileException;
42:
43: public void putParEntryXMLFile(InputStream in, int types)
44: throws ParFileException;
45:
46: public void putPropLocFile(String rootproperty, String path,
47: InputStream in) throws ParFileException;
48:
49: public void putStaticFile(String path, InputStream in)
50: throws ParFileException;
51:
52: public void putWarFile(String path, InputStream in)
53: throws ParFileException;
54:
55: public void putConfigFile(String path, InputStream in)
56: throws ParFileException;
57:
58: public void delDirectory(String prop, String subdir,
59: String dfilter, boolean removeTopChildren)
60: throws ParFileException;
61:
62: public void setChannelPath(InputStream in, int types)
63: throws ParFileException;
64:
65: }
|