Revision 41706 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.api/src/main/java/org/gvsig/installer/lib/api/InstallerManager.java
InstallerManager.java | ||
---|---|---|
98 | 98 |
public static final String PACKAGE_SET_EXTENSION = ".gvspks"; |
99 | 99 |
public static final String PACKAGE_EXTENSION = ".gvspkg"; |
100 | 100 |
|
101 |
public static final String PACKAGE_INFO_FILE_NAME = "package.info"; |
|
101 | 102 |
/** |
102 | 103 |
* Package state default values. |
103 | 104 |
*/ |
... | ... | |
209 | 210 |
* @throws MakePluginPackageServiceException |
210 | 211 |
* if there is an error loading the information of the installed |
211 | 212 |
* plugins |
213 |
* @deprecated use getInstalledPackages() without parameters |
|
212 | 214 |
*/ |
213 | 215 |
public PackageInfo[] getInstalledPackages(File pluginsDirectory) |
214 | 216 |
throws MakePluginPackageServiceException; |
... | ... | |
492 | 494 |
* @deprecated use {@link #getDefaultLocalAddonRepository(java.lang.String) } |
493 | 495 |
*/ |
494 | 496 |
public File getDefaultLocalAddonRepository(); |
497 |
|
|
498 |
public static final int ACCESS_READ = 0; |
|
499 |
public static final int ACCESS_WRITE = 1; |
|
500 |
/** |
|
501 |
* Get the path to the default local repository for a type of package. |
|
502 |
* Grant that the path has the access required, can be: |
|
503 |
* |
|
504 |
* ACCESS_READ |
|
505 |
* ACCESS_WRITE |
|
506 |
* |
|
507 |
* If don't has a repository for this type of package or don't has the |
|
508 |
* requiered access mode return null. |
|
509 |
* |
|
510 |
* @param packageType type of package for that ask the default path |
|
511 |
* @param access type of access to the repository. |
|
512 |
* @return the path to the repository |
|
513 |
*/ |
|
514 |
public File getDefaultLocalAddonRepository(String packageType, int access); |
|
495 | 515 |
|
496 | 516 |
/** |
497 |
* Get the path to the default local repository for a type of package |
|
517 |
* Get the path to the default local repository for a type of package. |
|
518 |
* This is a utility method using by default ACCESS_READ to the reppository. |
|
519 |
* |
|
498 | 520 |
* @param packageType type of package for that ask the default path |
499 | 521 |
* @return the path to the repository |
500 | 522 |
*/ |
501 | 523 |
public File getDefaultLocalAddonRepository(String packageType); |
502 | 524 |
|
525 |
|
|
503 | 526 |
/** |
504 | 527 |
* Set the path to the default local repository for a type of package |
505 | 528 |
* @param defaultAddonsRepository path to the repository |
Also available in: Unified diff