Revision 43126 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/execution/InstallPackageService.java

View differences:

InstallPackageService.java
31 31
import java.io.File;
32 32
import java.net.URL;
33 33
import java.util.List;
34
import java.util.Properties;
34 35

  
35 36
import org.gvsig.installer.lib.api.InstallerManager;
36 37
import org.gvsig.installer.lib.api.PackageInfo;
......
62 63
	 * bundle is a compressed zip file with a structure defined in the
63 64
	 * {@link InstallerManager} class.
64 65
	 * 
65
	 * @param bundleURI
66
	 *            the URI of a bundle.
66
         * @param bundleFile
67
         * @param taskStatus
67 68
	 * @throws InstallPackageServiceException
68 69
	 *             it is thrown if there is an exception reading the URI.
69 70
	 */
70
	public void addBundle(File bundleFile)
71
	public void addBundle(File bundleFile, SimpleTaskStatus taskStatus)
71 72
			throws InstallPackageServiceException;
72 73

  
73 74
	/**
......
77 78
	 * 
78 79
	 * @param bundleURL
79 80
	 *            the {@link URL} of a bundle.
81
         * @param taskStatus
80 82
	 * @throws InstallPackageServiceException
81 83
	 *             it is thrown if there is an exception reading the {@link URL}
82 84
	 *             .
83 85
	 */
84
	public void addBundle(URL bundleURL) throws InstallPackageServiceException;
86
	public void addBundle(URL bundleURL, SimpleTaskStatus taskStatus) throws InstallPackageServiceException;
85 87

  
86 88
	/**
87 89
	 * In reads a directory and reads all the bundles. This method retrieve all
......
90 92
	 * 
91 93
	 * @param bundlesDirectory
92 94
	 *            a directory that contains bundles.
95
         * @param taskStatus
93 96
	 * @throws InstallPackageServiceException
94 97
	 *             If there is any problem reading the directory of bundles.
95 98
	 */
96
	public void addBundlesFromDirectory(File bundlesDirectory)
99
	public void addBundlesFromDirectory(File bundlesDirectory, SimpleTaskStatus taskStatus)
97 100
			throws InstallPackageServiceException;
98 101

  
99 102
	/**
......
172 175
			SimpleTaskStatus taskStatus) throws InstallPackageServiceException;
173 176

  
174 177
	/**
175
     * 
176
     */
177
	// public void resetPackages();
178

  
179
	/**
180 178
	 * @return
181 179
	 */
182 180
	public List<String> getDefaultSelectedPackagesIDs();
181
        
182
        /**
183
         * Get the proprties associates to this bundle.
184
         * Return an empty Propertis if the bundle dont have a properties.
185
         * 
186
         * @return 
187
         */
188
        public Properties getProperties();
183 189

  
184 190
	/**
185 191
	 * Gets the list of all the categories of *all* the packages.
......
194 200
	 * @return a list with the types of packages.
195 201
	 */
196 202
	public List<String> getTypes();
203
        
204
        public boolean needInstallPackageProviders();
205
        
206
        public void installPackageProviders(SimpleTaskStatus taskStatus);
197 207
}

Also available in: Unified diff