KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > model > SiteWithTimestamp


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.update.internal.model;
13
14 import java.util.Date JavaDoc;
15
16 import org.eclipse.update.core.Site;
17
18 /**
19  * This is a wrapper class for Site class that adds timestamp
20  *
21  *
22  */

23 public class SiteWithTimestamp extends Site implements ITimestamp {
24
25     private Date JavaDoc timestamp;
26     
27     /*private Site site;
28     
29     public SiteWithTimestamp( Site site) {
30         this.site = site;
31     }*/

32     
33     public Date JavaDoc getTimestamp() {
34         return timestamp;
35     }
36
37     public void setTimestamp(Date JavaDoc timestamp) {
38         this.timestamp = timestamp;
39         
40     }
41 /*
42     public boolean isReadOnly() {
43         return site.isReadOnly();
44     }
45
46     public Object getAdapter(Class adapter) {
47         return site.getAdapter(adapter);
48     }
49
50     public void addPluginEntry(IPluginEntry pluginEntry) {
51         site.addPluginEntry(pluginEntry);
52     }
53
54     public IFeature createFeature(String type, URL url) throws CoreException {
55         return site.createFeature(type, url);
56     }
57
58     public IFeature createFeature(String type, URL url, IProgressMonitor monitor) throws CoreException {
59         return site.createFeature(type, url, monitor);
60     }
61
62     public IArchiveReference[] getArchives() {
63         return site.getArchives();
64     }
65
66     public ICategory[] getCategories() {
67         return site.getCategories();
68     }
69
70     public ICategory getCategory(String key) {
71         return site.getCategory(key);
72     }
73
74     public IConfiguredSite getCurrentConfiguredSite() {
75         return site.getCurrentConfiguredSite();
76     }
77
78     public String getDefaultPackagedFeatureType() {
79         return site.getDefaultPackagedFeatureType();
80     }
81
82     public IURLEntry getDescription() {
83         return site.getDescription();
84     }
85
86     public long getDownloadSizeFor(IFeature feature) {
87         return site.getDownloadSizeFor(feature);
88     }
89
90     public ISiteFeatureReference getFeatureReference(IFeature feature) {
91         return site.getFeatureReference(feature);
92     }
93
94     public ISiteFeatureReference[] getFeatureReferences() {
95         return site.getFeatureReferences();
96     }
97
98     public long getInstallSizeFor(IFeature feature) {
99         return site.getInstallSizeFor(feature);
100     }
101
102     public IURLEntry[] getMirrorSiteEntries() {
103         return site.getMirrorSiteEntries();
104     }
105
106     public IPluginEntry[] getPluginEntries() {
107         return site.getPluginEntries();
108     }
109
110     public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature) throws CoreException {
111         return site.getPluginEntriesOnlyReferencedBy(feature);
112     }
113
114     public int getPluginEntryCount() {
115         return site.getPluginEntryCount();
116     }
117
118     public ISiteFeatureReference[] getRawFeatureReferences() {
119         return site.getRawFeatureReferences();
120     }
121
122     public ISiteContentProvider getSiteContentProvider() throws CoreException {
123         return site.getSiteContentProvider();
124     }
125
126     public URL getURL() {
127         return site.getURL();
128     }
129
130     public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalFeatures, IFeatureContentConsumer parentContentConsumer, IVerifier parentVerifier, IVerificationListener verificationListener, IProgressMonitor progress) throws CoreException {
131         return site.install(sourceFeature, optionalFeatures, parentContentConsumer,
132                 parentVerifier, verificationListener, progress);
133     }
134
135     public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalFeatures, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {
136         return site.install(sourceFeature, optionalFeatures, verificationListener,
137                 progress);
138     }
139
140     public IFeatureReference install(IFeature sourceFeature, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {
141         return site.install(sourceFeature, verificationListener, progress);
142     }
143
144     public void remove(IFeature feature, IProgressMonitor progress) throws CoreException {
145         site.remove(feature, progress);
146     }
147
148     public void setSiteContentProvider(ISiteContentProvider siteContentProvider) {
149         site.setSiteContentProvider(siteContentProvider);
150     }
151
152     public void addArchiveReferenceModel(ArchiveReferenceModel archiveReference) {
153         site.addArchiveReferenceModel(archiveReference);
154     }
155
156     public void addCategoryModel(CategoryModel category) {
157         site.addCategoryModel(category);
158     }
159
160     public void addFeatureReferenceModel(SiteFeatureReferenceModel featureReference) {
161         site.addFeatureReferenceModel(featureReference);
162     }
163
164     public void addMirrorModel(URLEntryModel mirror) {
165         site.addMirrorModel(mirror);
166     }
167
168     public ArchiveReferenceModel[] getArchiveReferenceModels() {
169         return site.getArchiveReferenceModels();
170     }
171
172     public CategoryModel[] getCategoryModels() {
173         return site.getCategoryModels();
174     }
175
176     public ConfiguredSiteModel getConfiguredSiteModel() {
177         return site.getConfiguredSiteModel();
178     }
179
180     public URLEntryModel getDescriptionModel() {
181         return site.getDescriptionModel();
182     }
183
184     public SiteFeatureReferenceModel[] getFeatureReferenceModels() {
185         return site.getFeatureReferenceModels();
186     }
187
188     public URL getLocationURL() {
189         return site.getLocationURL();
190     }
191
192     public String getLocationURLString() {
193         return site.getLocationURLString();
194     }
195
196     public URLEntryModel[] getMirrorSiteEntryModels() {
197         return site.getMirrorSiteEntryModels();
198     }
199
200     public String getType() {
201         return site.getType();
202     }
203
204     public void markReadOnly() {
205         site.markReadOnly();
206     }
207
208     public void removeArchiveReferenceModel(ArchiveReferenceModel archiveReference) {
209         site.removeArchiveReferenceModel(archiveReference);
210     }
211
212     public void removeCategoryModel(CategoryModel category) {
213         site.removeCategoryModel(category);
214     }
215
216     public void removeFeatureReferenceModel(FeatureReferenceModel featureReference) {
217         site.removeFeatureReferenceModel(featureReference);
218     }
219
220     public void removeMirror(URLEntryModel mirror) {
221         site.removeMirror(mirror);
222     }
223
224     public void resolve(URL base, URL bundleURL) throws MalformedURLException {
225         site.resolve(base, bundleURL);
226     }
227
228     public void setArchiveReferenceModels(ArchiveReferenceModel[] archiveReferences) {
229         site.setArchiveReferenceModels(archiveReferences);
230     }
231
232     public void setCategoryModels(CategoryModel[] categories) {
233         site.setCategoryModels(categories);
234     }
235
236     public void setConfiguredSiteModel(ConfiguredSiteModel configuredSiteModel) {
237         site.setConfiguredSiteModel(configuredSiteModel);
238     }
239
240     public void setDescriptionModel(URLEntryModel description) {
241         site.setDescriptionModel(description);
242     }
243
244     public void setFeatureReferenceModels(FeatureReferenceModel[] featureReferences) {
245         site.setFeatureReferenceModels(featureReferences);
246     }
247
248     public void setLocationURLString(String locationURLString) {
249         site.setLocationURLString(locationURLString);
250     }
251
252     public void setMirrorSiteEntryModels(URLEntryModel[] mirrors) {
253         site.setMirrorSiteEntryModels(mirrors);
254     }
255
256     public void setMirrorsURLString(String mirrorsURL) {
257         site.setMirrorsURLString(mirrorsURL);
258     }
259
260     public void setType(String type) {
261         site.setType(type);
262     }
263 */

264 }
265
Popular Tags