KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > packaging > projects > creators > CreatorInterface


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

7 package org.mmbase.applications.packaging.projects.creators;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.Iterator JavaDoc;
11
12 import org.mmbase.applications.packaging.projects.Target;
13
14 /**
15  * Interface for all the creators
16  *
17  * @author danielockeloen
18  */

19 public interface CreatorInterface {
20     /**
21      * Gets the type attribute of the CreatorInterface object
22      *
23      * @return The type value
24      */

25     public String JavaDoc getType();
26
27     public String JavaDoc getState();
28
29     /**
30      * Sets the type attribute of the CreatorInterface object
31      *
32      * @param type The new type value
33      */

34     public void setType(String JavaDoc type);
35
36
37     /**
38      * Gets the lastVersion attribute of the CreatorInterface object
39      *
40      * @param target Description of the Parameter
41      * @return The lastVersion value
42      */

43     public int getLastVersion(Target target);
44
45
46     /**
47      * Gets the nextVersion attribute of the CreatorInterface object
48      *
49      * @param target Description of the Parameter
50      * @return The nextVersion value
51      */

52     public int getNextVersion(Target target);
53
54
55     /**
56      * Gets the lastDate attribute of the CreatorInterface object
57      *
58      * @param target Description of the Parameter
59      * @return The lastDate value
60      */

61     public String JavaDoc getLastDate(Target target);
62
63
64     /**
65      * Description of the Method
66      *
67      * @param target Description of the Parameter
68      * @param newversion Description of the Parameter
69      * @return Description of the Return Value
70      */

71     public boolean createPackage(Target target, int newversion);
72
73     public void createPackageThreaded(Target target, int newversion);
74
75     /**
76      * Gets the packageSteps attribute of the CreatorInterface object
77      *
78      * @return The packageSteps value
79      */

80     public Iterator JavaDoc getPackageSteps();
81
82
83     /**
84      * Gets the packageSteps attribute of the CreatorInterface object
85      *
86      * @param logid Description of the Parameter
87      * @return The packageSteps value
88      */

89     public Iterator JavaDoc getPackageSteps(int logid);
90
91
92     /**
93      * Description of the Method
94      */

95     public void clearPackageSteps();
96
97
98     /**
99      * Gets the maintainer attribute of the CreatorInterface object
100      *
101      * @param target Description of the Parameter
102      * @return The maintainer value
103      */

104     public String JavaDoc getMaintainer(Target target);
105
106
107     /**
108      * Gets the description attribute of the CreatorInterface object
109      *
110      * @param target Description of the Parameter
111      * @return The description value
112      */

113     public String JavaDoc getDescription(Target target);
114
115
116     /**
117      * Gets the name attribute of the CreatorInterface object
118      *
119      * @param target Description of the Parameter
120      * @return The name value
121      */

122     public String JavaDoc getName(Target target);
123
124
125     /**
126      * Gets the licenseType attribute of the CreatorInterface object
127      *
128      * @param target Description of the Parameter
129      * @return The licenseType value
130      */

131     public String JavaDoc getLicenseType(Target target);
132
133
134     /**
135      * Gets the licenseVersion attribute of the CreatorInterface object
136      *
137      * @param target Description of the Parameter
138      * @return The licenseVersion value
139      */

140     public String JavaDoc getLicenseVersion(Target target);
141
142
143     /**
144      * Gets the licenseName attribute of the CreatorInterface object
145      *
146      * @param target Description of the Parameter
147      * @return The licenseName value
148      */

149     public String JavaDoc getLicenseName(Target target);
150
151
152     /**
153      * Sets the description attribute of the CreatorInterface object
154      *
155      * @param target The new description value
156      * @param newdescription The new description value
157      * @return Description of the Return Value
158      */

159     public boolean setDescription(Target target, String JavaDoc newdescription);
160
161
162     /**
163      * Sets the licenseType attribute of the CreatorInterface object
164      *
165      * @param target The new licenseType value
166      * @param newlicensetype The new licenseType value
167      * @return Description of the Return Value
168      */

169     public boolean setLicenseType(Target target, String JavaDoc newlicensetype);
170
171
172     /**
173      * Sets the licenseName attribute of the CreatorInterface object
174      *
175      * @param target The new licenseName value
176      * @param newlicensename The new licenseName value
177      * @return Description of the Return Value
178      */

179     public boolean setLicenseName(Target target, String JavaDoc newlicensename);
180
181
182     /**
183      * Sets the name attribute of the CreatorInterface object
184      *
185      * @param target The new name value
186      * @param newname The new name value
187      * @return Description of the Return Value
188      */

189     public boolean setName(Target target, String JavaDoc newname);
190
191
192     /**
193      * Sets the maintainer attribute of the CreatorInterface object
194      *
195      * @param target The new maintainer value
196      * @param newmaintainer The new maintainer value
197      * @return Description of the Return Value
198      */

199     public boolean setMaintainer(Target target, String JavaDoc newmaintainer);
200
201
202     /**
203      * Sets the licenseVersion attribute of the CreatorInterface object
204      *
205      * @param target The new licenseVersion value
206      * @param newlicenseversion The new licenseVersion value
207      * @return Description of the Return Value
208      */

209     public boolean setLicenseVersion(Target target, String JavaDoc newlicenseversion);
210
211
212     /**
213      * Gets the relatedPeople attribute of the CreatorInterface object
214      *
215      * @param type Description of the Parameter
216      * @param target Description of the Parameter
217      * @return The relatedPeople value
218      */

219     public ArrayList JavaDoc getRelatedPeople(String JavaDoc type, Target target);
220
221
222     /**
223      * Gets the releaseNotes attribute of the CreatorInterface object
224      *
225      * @param target Description of the Parameter
226      * @return The releaseNotes value
227      */

228     public String JavaDoc getReleaseNotes(Target target);
229
230
231     /**
232      * Gets the installationNotes attribute of the CreatorInterface object
233      *
234      * @param target Description of the Parameter
235      * @return The installationNotes value
236      */

237     public String JavaDoc getInstallationNotes(Target target);
238
239
240     /**
241      * Gets the xMLFile attribute of the CreatorInterface object
242      *
243      * @param target Description of the Parameter
244      * @return The xMLFile value
245      */

246     public String JavaDoc getXMLFile(Target target);
247
248
249     /**
250      * Gets the includedPackages attribute of the CreatorInterface object
251      *
252      * @param target Description of the Parameter
253      * @return The includedPackages value
254      */

255     public ArrayList JavaDoc getIncludedPackages(Target target);
256
257
258     /**
259      * Sets the includedVersion attribute of the CreatorInterface object
260      *
261      * @param target The new includedVersion value
262      * @param id The new includedVersion value
263      * @param newversion The new includedVersion value
264      * @return Description of the Return Value
265      */

266     public boolean setIncludedVersion(Target target, String JavaDoc id, String JavaDoc newversion);
267
268
269     /**
270      * Description of the Method
271      *
272      * @param target Description of the Parameter
273      * @param id Description of the Parameter
274      * @return Description of the Return Value
275      */

276     public boolean delIncludedPackage(Target target, String JavaDoc id);
277
278
279     /**
280      * Description of the Method
281      *
282      * @param target Description of the Parameter
283      * @return Description of the Return Value
284      */

285     public boolean decodeItems(Target target);
286
287
288     /**
289      * Adds a feature to the Package attribute of the CreatorInterface object
290      *
291      * @param target The feature to be added to the Package attribute
292      * @param newpackage The feature to be added to the Package attribute
293      * @return Description of the Return Value
294      */

295     public boolean addPackage(Target target, String JavaDoc newpackage);
296
297
298     /**
299      * Adds a feature to the PackageInitiator attribute of the CreatorInterface object
300      *
301      * @param target The feature to be added to the PackageInitiator attribute
302      * @param newname The feature to be added to the PackageInitiator attribute
303      * @param newcompany The feature to be added to the PackageInitiator attribute
304      * @return Description of the Return Value
305      */

306     public boolean addPackageInitiator(Target target, String JavaDoc newname, String JavaDoc newcompany);
307
308
309     /**
310      * Description of the Method
311      *
312      * @param target Description of the Parameter
313      * @param oldname Description of the Parameter
314      * @param oldcompany Description of the Parameter
315      * @return Description of the Return Value
316      */

317     public boolean delPackageInitiator(Target target, String JavaDoc oldname, String JavaDoc oldcompany);
318
319
320     /**
321      * Sets the packageInitiator attribute of the CreatorInterface object
322      *
323      * @param target The new packageInitiator value
324      * @param oldname The new packageInitiator value
325      * @param newname The new packageInitiator value
326      * @param oldcompany The new packageInitiator value
327      * @param newcompany The new packageInitiator value
328      * @return Description of the Return Value
329      */

330     public boolean setPackageInitiator(Target target, String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldcompany, String JavaDoc newcompany);
331
332
333     /**
334      * Adds a feature to the PackageDeveloper attribute of the CreatorInterface object
335      *
336      * @param target The feature to be added to the PackageDeveloper attribute
337      * @param newname The feature to be added to the PackageDeveloper attribute
338      * @param newcompany The feature to be added to the PackageDeveloper attribute
339      * @return Description of the Return Value
340      */

341     public boolean addPackageDeveloper(Target target, String JavaDoc newname, String JavaDoc newcompany);
342
343
344     /**
345      * Description of the Method
346      *
347      * @param target Description of the Parameter
348      * @param oldname Description of the Parameter
349      * @param oldcompany Description of the Parameter
350      * @return Description of the Return Value
351      */

352     public boolean delPackageDeveloper(Target target, String JavaDoc oldname, String JavaDoc oldcompany);
353
354
355     /**
356      * Sets the packageDeveloper attribute of the CreatorInterface object
357      *
358      * @param target The new packageDeveloper value
359      * @param oldname The new packageDeveloper value
360      * @param newname The new packageDeveloper value
361      * @param oldcompany The new packageDeveloper value
362      * @param newcompany The new packageDeveloper value
363      * @return Description of the Return Value
364      */

365     public boolean setPackageDeveloper(Target target, String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldcompany, String JavaDoc newcompany);
366
367
368     /**
369      * Adds a feature to the PackageSupporter attribute of the CreatorInterface object
370      *
371      * @param target The feature to be added to the PackageSupporter attribute
372      * @param newcompany The feature to be added to the PackageSupporter attribute
373      * @return Description of the Return Value
374      */

375     public boolean addPackageSupporter(Target target, String JavaDoc newcompany);
376
377
378     /**
379      * Description of the Method
380      *
381      * @param target Description of the Parameter
382      * @param oldcompany Description of the Parameter
383      * @return Description of the Return Value
384      */

385     public boolean delPackageSupporter(Target target, String JavaDoc oldcompany);
386
387
388     /**
389      * Sets the packageSupporter attribute of the CreatorInterface object
390      *
391      * @param target The new packageSupporter value
392      * @param oldcompany The new packageSupporter value
393      * @param newcompany The new packageSupporter value
394      * @return Description of the Return Value
395      */

396     public boolean setPackageSupporter(Target target, String JavaDoc oldcompany, String JavaDoc newcompany);
397
398
399     /**
400      * Adds a feature to the PackageContact attribute of the CreatorInterface object
401      *
402      * @param target The feature to be added to the PackageContact attribute
403      * @param newreason The feature to be added to the PackageContact attribute
404      * @param newname The feature to be added to the PackageContact attribute
405      * @param newemail The feature to be added to the PackageContact attribute
406      * @return Description of the Return Value
407      */

408     public boolean addPackageContact(Target target, String JavaDoc newreason, String JavaDoc newname, String JavaDoc newemail);
409
410
411     /**
412      * Description of the Method
413      *
414      * @param target Description of the Parameter
415      * @param oldreason Description of the Parameter
416      * @param oldname Description of the Parameter
417      * @param oldemail Description of the Parameter
418      * @return Description of the Return Value
419      */

420     public boolean delPackageContact(Target target, String JavaDoc oldreason, String JavaDoc oldname, String JavaDoc oldemail);
421
422
423     /**
424      * Sets the packageContact attribute of the CreatorInterface object
425      *
426      * @param target The new packageContact value
427      * @param oldreason The new packageContact value
428      * @param newreason The new packageContact value
429      * @param oldname The new packageContact value
430      * @param newname The new packageContact value
431      * @param oldemail The new packageContact value
432      * @param newemail The new packageContact value
433      * @return Description of the Return Value
434      */

435     public boolean setPackageContact(Target target, String JavaDoc oldreason, String JavaDoc newreason, String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldemail, String JavaDoc newemail);
436
437
438     /**
439      * Adds a feature to the PackageDepends attribute of the CreatorInterface object
440      *
441      * @param target The feature to be added to the PackageDepends attribute
442      * @param packageid The feature to be added to the PackageDepends attribute
443      * @param version The feature to be added to the PackageDepends attribute
444      * @return Description of the Return Value
445      */

446     public boolean addPackageDepends(Target target, String JavaDoc packageid, String JavaDoc version);
447
448
449     /**
450      * Description of the Method
451      *
452      * @param target Description of the Parameter
453      * @param packageid Description of the Parameter
454      * @param version Description of the Parameter
455      * @param versionmode Description of the Parameter
456      * @return Description of the Return Value
457      */

458     public boolean delPackageDepends(Target target, String JavaDoc packageid, String JavaDoc version, String JavaDoc versionmode);
459
460
461     /**
462      * Sets the packageDepends attribute of the CreatorInterface object
463      *
464      * @param target The new packageDepends value
465      * @param packageid The new packageDepends value
466      * @param oldversion The new packageDepends value
467      * @param oldversionmode The new packageDepends value
468      * @param newversion The new packageDepends value
469      * @param newversionmode The new packageDepends value
470      * @return Description of the Return Value
471      */

472     public boolean setPackageDepends(Target target, String JavaDoc packageid, String JavaDoc oldversion, String JavaDoc oldversionmode, String JavaDoc newversion, String JavaDoc newversionmode);
473
474
475     /**
476      * Gets the packageDepends attribute of the CreatorInterface object
477      *
478      * @param target Description of the Parameter
479      * @return The packageDepends value
480      */

481     public ArrayList JavaDoc getPackageDepends(Target target);
482
483
484     /**
485      * Sets the defaults attribute of the CreatorInterface object
486      *
487      * @param target The new defaults value
488      */

489     public void setDefaults(Target target);
490
491     public String JavaDoc getDefaultTargetName();
492
493     public void addRelatedTargetsCreate(Target t);
494
495     public int getProgressBarValue();
496
497     public int getSubProgressBarValue();
498 }
499
500
Popular Tags