xref: /AOO41X/main/javainstaller2/src/JavaSetup/org/openoffice/setup/Installer/Installer.java (revision 477794c15c6b4ddeee1d73cab1de4160cfe6efef)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package org.openoffice.setup.Installer;
25 
26 import org.openoffice.setup.InstallData;
27 import org.openoffice.setup.SetupData.PackageDescription;
28 
29 public abstract class Installer {
30 
31     public Installer() {
32     }
33 
34     public void preInstall(PackageDescription packageData) {
35     }
36 
37     public void postInstall(PackageDescription packageData) {
38     }
39 
40     public void preUninstall(PackageDescription packageData) {
41     }
42 
43     public void postUninstall(PackageDescription packageData) {
44     }
45 
46     public void preInstallationOngoing () {
47     }
48 
49     public void postInstallationOngoing () {
50     }
51 
52     public void postUninstallationOngoing () {
53     }
54 
55     public void defineDatabasePath() {
56     }
57 
58     public String getChangeInstallDir(PackageDescription packageData) {
59         return null;
60     }
61 
62     public boolean isPackageNameInstalled(String packageName, InstallData installData) {
63     	return false;
64     }
65 
66     public abstract void installPackage(PackageDescription packageData);
67 
68     public abstract void uninstallPackage(PackageDescription packageData);
69 
70     public abstract boolean isPackageInstalled(PackageDescription packageData, InstallData installData);
71 
72     public abstract boolean isInstalledPackageOlder(PackageDescription packageData, InstallData installData);
73 
74     public abstract boolean isInstallSetPackageOlder(PackageDescription packageData, InstallData installData);
75 }
76