1 11 package org.eclipse.update.configurator; 12 13 import java.io.IOException ; 14 import java.net.URL ; 15 16 34 public interface IPlatformConfiguration { 35 36 41 public interface ISiteEntry { 42 43 49 public URL getURL(); 50 51 57 public ISitePolicy getSitePolicy(); 58 59 65 public void setSitePolicy(ISitePolicy policy); 66 67 75 public String [] getFeatures(); 76 77 87 public String [] getPlugins(); 88 89 97 public long getChangeStamp(); 98 99 108 public long getFeaturesChangeStamp(); 109 110 119 public long getPluginsChangeStamp(); 120 121 127 public boolean isUpdateable(); 128 129 137 public boolean isNativelyLinked(); 138 } 139 140 162 public interface ISitePolicy { 163 164 167 168 173 public static final int USER_INCLUDE = 0; 174 175 180 public static final int USER_EXCLUDE = 1; 181 182 187 public static final int MANAGED_ONLY = 2; 188 189 195 public int getType(); 196 197 203 public String [] getList(); 204 205 215 public void setList(String [] list); 216 } 217 218 230 public interface IFeatureEntry { 231 232 237 public String getFeatureIdentifier(); 238 239 244 public String getFeatureVersion(); 245 246 258 public String getFeaturePluginIdentifier(); 259 260 272 public String getFeaturePluginVersion(); 273 274 280 public String getFeatureApplication(); 281 282 290 public URL [] getFeatureRootURLs(); 291 292 299 public boolean canBePrimary(); 300 } 301 302 310 public ISiteEntry createSiteEntry(URL url, ISitePolicy policy); 311 312 322 public ISitePolicy createSitePolicy(int type, String [] list); 323 324 343 public IFeatureEntry createFeatureEntry(String id, String version, String pluginVersion, boolean primary, String application, URL [] root); 344 345 366 public IFeatureEntry createFeatureEntry(String id, String version, String pluginIdentifier, String pluginVersion, boolean primary, String application, URL [] root); 367 368 375 public void configureSite(ISiteEntry entry); 376 377 387 public void configureSite(ISiteEntry entry, boolean replace); 388 389 396 public void unconfigureSite(ISiteEntry entry); 397 398 405 public ISiteEntry[] getConfiguredSites(); 406 407 414 public ISiteEntry findConfiguredSite(URL url); 415 416 423 public void configureFeatureEntry(IFeatureEntry entry); 424 425 430 public void unconfigureFeatureEntry(IFeatureEntry entry); 431 432 438 public IFeatureEntry[] getConfiguredFeatureEntries(); 439 440 446 public IFeatureEntry findConfiguredFeatureEntry(String id); 447 448 455 public URL getConfigurationLocation(); 456 457 465 public long getChangeStamp(); 466 467 476 public long getFeaturesChangeStamp(); 477 478 487 public long getPluginsChangeStamp(); 488 489 497 public String getPrimaryFeatureIdentifier(); 498 499 506 public URL [] getPluginPath(); 507 508 518 public String [] getBootstrapPluginIdentifiers(); 519 520 531 public void setBootstrapPluginLocation(String id, URL location); 532 533 540 public boolean isUpdateable(); 541 542 552 public boolean isTransient(); 553 554 565 public void isTransient(boolean value); 566 567 573 public void refresh(); 574 575 579 public void save() throws IOException ; 580 581 588 public void save(URL url) throws IOException ; 589 590 } 591 | Popular Tags |