KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > jcr > impl > core > version > VersionHistoryImpl


1 package org.exoplatform.services.jcr.impl.core.version;
2
3 import javax.jcr.version.Version;
4 import javax.jcr.version.VersionIterator;
5 import javax.jcr.RepositoryException;
6 import java.util.Calendar JavaDoc;
7 import javax.jcr.version.VersionHistory;
8
9 public class VersionHistoryImpl implements VersionHistory {
10
11   /**
12    * Returns the root version of this version history.
13    *
14    * @return a <code>Version</code> object.
15    * @throws RepositoryException if an error occurs.
16    */

17   public Version getRootVersion() throws RepositoryException {
18     throw new RepositoryException("Version is not supported yet!");
19   }
20
21   /**
22    * Returns an iterator over all the versions within this version history.
23    * The order of the returned objects will not necessarily correspond to the
24    * order of versions in terms of the successor relation. To traverse the
25    * version graph one must traverse the <code>jcr:successor REFERENCE</code>
26    * properties starting with the root version.
27    *
28    * @return a <code>VersionIterator</code> object.
29    * @throws RepositoryException if an error occurs.
30    */

31   public VersionIterator getAllVersions() throws RepositoryException {
32     throw new RepositoryException("Version is not supported yet!");
33   }
34
35   /**
36    * Retrieves a particular version from this version history by version name.
37    *
38    * @param versionName a version name
39    * @return a <code>Version</code> object.
40    * @throws RepositoryException if an error occurs.
41    */

42   public Version getVersion(String JavaDoc versionName) throws RepositoryException {
43     throw new RepositoryException("Version is not supported yet!");
44   }
45
46   /**
47    * Retrieves a particular version from this version history by version date.
48    *
49    * @param date a <code>Calendar</code> object
50    * @return a <code>Version</code> object.
51    * @throws RepositoryException if an error occurs.
52    */

53   public Version getVersion(Calendar JavaDoc date) throws RepositoryException {
54     throw new RepositoryException("Version is not supported yet!");
55   }
56
57
58   /**
59    * Retrieves a particular version from this version history by version label.
60    *
61    * @param label a version label
62    * @return a <code>Version</code> object.
63    * @throws RepositoryException if an error occurs.
64    */

65   public Version getVersionByLabel(String JavaDoc label) throws RepositoryException {
66     throw new RepositoryException("Version is not supported yet!");
67   }
68 }
69
Popular Tags