1 7 package org.mmbase.applications.packaging.packagehandlers; 8 9 import java.io.BufferedInputStream ; 10 import java.util.Iterator ; 11 import java.util.List ; 12 import java.util.jar.JarFile ; 13 14 import org.mmbase.applications.packaging.bundlehandlers.BundleInterface; 15 import org.mmbase.applications.packaging.installhandlers.installStep; 16 import org.mmbase.applications.packaging.providerhandlers.ProviderInterface; 17 18 23 public interface PackageInterface { 24 36 public void init(org.w3c.dom.Node n, ProviderInterface provider, String name, String type, String maintainer, String version, String date, String path); 37 38 39 44 public String getId(); 45 46 47 52 public String getName(); 53 54 55 60 public String getType(); 61 62 63 68 public String getVersion(); 69 70 71 76 public String getCreationDate(); 77 78 79 84 public String getMaintainer(); 85 86 87 92 public String getState(); 93 94 95 100 public String getDescription(); 101 102 103 108 public String getInstallationNotes(); 109 110 111 116 public String getReleaseNotes(); 117 118 119 124 public String getLicenseType(); 125 126 127 132 public String getLicenseName(); 133 134 135 140 public String getLicenseVersion(); 141 142 143 148 public String getLicenseBody(); 149 150 151 157 public List getRelatedPeople(String type); 158 159 160 165 public BundleInterface getParentBundle(); 166 167 168 173 public void setParentBundle(BundleInterface parent); 174 175 176 182 public boolean setState(String state); 183 184 185 190 public boolean install(); 191 192 193 198 public boolean uninstall(); 199 200 201 207 public boolean install(installStep step); 208 209 210 216 public boolean uninstall(installStep step); 217 218 219 224 public ProviderInterface getProvider(); 225 226 227 232 public Iterator getInstallSteps(); 233 234 235 241 public Iterator getInstallSteps(int logid); 242 243 244 247 public void clearInstallSteps(); 248 249 250 255 public JarFile getJarFile(); 256 257 258 263 public BufferedInputStream getJarStream(); 264 265 266 271 public String getPath(); 272 273 274 279 public boolean getDependsFailed(); 280 281 282 287 public int getProgressBarValue(); 288 289 290 295 public void setProgressBar(int stepcount); 296 297 298 301 public void increaseProgressBar(); 302 303 304 309 public void increaseProgressBar(int stepcount); 310 311 } 312 313 | Popular Tags |