KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > packaging > bundlehandlers > BundleInterface


1 /*
2  
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5  
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8  
9  */

10
11 package org.mmbase.applications.packaging.bundlehandlers;
12
13 import java.io.BufferedInputStream JavaDoc;
14 import java.util.Iterator JavaDoc;
15 import java.util.List JavaDoc;
16 import java.util.jar.JarFile JavaDoc;
17
18 import org.mmbase.applications.packaging.providerhandlers.ProviderInterface;
19
20 /**
21  * Interface for all the bundle handlers
22  */

23 public interface BundleInterface {
24
25     public String JavaDoc getId();
26     public String JavaDoc getName();
27     public String JavaDoc getType();
28     public String JavaDoc getVersion();
29     public String JavaDoc getCreationDate();
30     public String JavaDoc getMaintainer();
31     public String JavaDoc getState();
32     public boolean setState(String JavaDoc state);
33
34     public boolean install();
35     public boolean uninstall();
36
37     public ProviderInterface getProvider();
38     public Iterator JavaDoc getInstallSteps();
39     public Iterator JavaDoc getInstallSteps(int logid);
40     public void clearInstallSteps();
41         public String JavaDoc getDescription();
42         public String JavaDoc getInstallationNotes();
43         public String JavaDoc getReleaseNotes();
44         public String JavaDoc getLicenseType();
45         public String JavaDoc getLicenseName();
46         public String JavaDoc getLicenseVersion();
47         public String JavaDoc getLicenseBody();
48         public List JavaDoc getRelatedPeople(String JavaDoc type);
49         public List JavaDoc getScreenshots();
50         public List JavaDoc getStarturls();
51
52     public JarFile JavaDoc getJarFile();
53     public JarFile JavaDoc getIncludedPackageJarFile(String JavaDoc packageid,String JavaDoc packageversion);
54
55     public BufferedInputStream JavaDoc getJarStream();
56
57         public Iterator JavaDoc getNeededPackages();
58
59     public String JavaDoc getPath();
60
61         public int getProgressBarValue();
62         public int getPackageProgressBarValue();
63         public void setProgressBar(int stepcount);
64         public void increaseProgressBar();
65         public void increaseProgressBar(int stepcount);
66
67 }
68
Popular Tags