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 
Installer()31     public Installer() {
32     }
33 
preInstall(PackageDescription packageData)34     public void preInstall(PackageDescription packageData) {
35     }
36 
postInstall(PackageDescription packageData)37     public void postInstall(PackageDescription packageData) {
38     }
39 
preUninstall(PackageDescription packageData)40     public void preUninstall(PackageDescription packageData) {
41     }
42 
postUninstall(PackageDescription packageData)43     public void postUninstall(PackageDescription packageData) {
44     }
45 
preInstallationOngoing()46     public void preInstallationOngoing () {
47     }
48 
postInstallationOngoing()49     public void postInstallationOngoing () {
50     }
51 
postUninstallationOngoing()52     public void postUninstallationOngoing () {
53     }
54 
defineDatabasePath()55     public void defineDatabasePath() {
56     }
57 
getChangeInstallDir(PackageDescription packageData)58     public String getChangeInstallDir(PackageDescription packageData) {
59         return null;
60     }
61 
isPackageNameInstalled(String packageName, InstallData installData)62     public boolean isPackageNameInstalled(String packageName, InstallData installData) {
63     	return false;
64     }
65 
installPackage(PackageDescription packageData)66     public abstract void installPackage(PackageDescription packageData);
67 
uninstallPackage(PackageDescription packageData)68     public abstract void uninstallPackage(PackageDescription packageData);
69 
isPackageInstalled(PackageDescription packageData, InstallData installData)70     public abstract boolean isPackageInstalled(PackageDescription packageData, InstallData installData);
71 
isInstalledPackageOlder(PackageDescription packageData, InstallData installData)72     public abstract boolean isInstalledPackageOlder(PackageDescription packageData, InstallData installData);
73 
isInstallSetPackageOlder(PackageDescription packageData, InstallData installData)74     public abstract boolean isInstallSetPackageOlder(PackageDescription packageData, InstallData installData);
75 }
76