KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > webdav > Workspace


1 /*
2  * (C) Copyright IBM Corp. 2000 All rights reserved.
3  *
4  * The program is provided "AS IS" without any warranty express or
5  * implied, including the warranty of non-infringement and the implied
6  * warranties of merchantibility and fitness for a particular purpose.
7  * IBM will not be liable for any damages suffered by you as a result
8  * of using the Program. In no event will IBM be liable for any
9  * special, indirect or consequential damages or lost profits even if
10  * IBM has been advised of the possibility of their occurrence. IBM
11  * will not be liable for any third party claims against you.
12  */

13
14 package com.ibm.webdav;
15
16 import java.util.*;
17
18 /**
19  * A workspace is a resource that provides a means to map
20  * versioned resources to particular versions. The members
21  * of a workspace are version selectors and unversioned
22  * resources. The targets of the version selectors identifies
23  * the version contained in the workspace. A workspace
24  * may contain a set of activitys that encapsulate changes
25  * made to resources in that workspace.
26  */

27 public class Workspace extends Collection {
28 /**
29  * Baseline this Workspace to save the selected revisions.
30  *
31  * @return a Baseline containing all the revisions selectable through
32  * this workspace
33  * @exception com.ibm.webdav.WebDAVException
34  */

35 public void baseline() throws WebDAVException {
36 }
37 /**
38  * Create a Workspace at the given location. Servers may require workspaces
39  * to be created in a designated portion of the URL namespace.
40  *
41  * @return the newly created Workspace
42  * @exception com.ibm.webdav.WebDAVException
43  */

44 public static Workspace create(java.net.URL JavaDoc url) throws WebDAVException {
45     return null;
46 }
47 /**
48  * Return a list of differences in activities between this
49  * workspace and the given workspace. The differences
50  * in activities between a workspace and a baseline gives a high level
51  * view of their differences.
52  *
53  * @param target the baseline to compare with
54  * this workspace
55  * @return an Enumeration of the Activities that are different
56  * between the given baseline and this workspace
57  * @exception com.ibm.webdav.WebDAVException
58  */

59 public Enumeration differencesWith(Baseline target) throws WebDAVException {
60     return null;
61 }
62 /**
63  * Get the activities for revisions that were changed in this workspace.
64  * These activities are candidates for merging into some integration
65  * Workspace.
66  *
67  * @return an Enumeration ofthe Activities for revisions modified in this workspace
68  * @exception com.ibm.webdav.WebDAVException
69  */

70 public Enumeration getActivities() throws WebDAVException {
71     return null;
72 }
73 /**
74  * Get the current activity for this workspace. Checkouts are
75  * done in the context of the current activity if any. A workspace
76  * can only have one current activity at a time. If this activity
77  * is in the revision selection rule of the workspace used to
78  * create the revision, the updates to the revision will remain
79  * visible after the working resource is checked in. The current
80  * label may also be used to perform this function if activities
81  * are not supported or used.
82  *
83  * @return the current Activity associated with changes made in
84  * this workspace
85  * @exception com.ibm.webdav.WebDAVException
86  */

87 public Activity getCurrentActivity() throws WebDAVException {
88     return null;
89 }
90 /**
91  * Return an XML document containing the merge conflicts that would
92  * result if the mergeSource was merged into this Workspace.
93  * Merge conflicts arrise when a revision selected by one revision
94  * selector is on a different line of descent than that selected
95  * by some other revision selector in the workspace. Merge conflicts
96  * can be resolved by merging the mergeSource into the workspace and
97  * updating any working resources that result from merge conflicts.
98  *
99  * @return an Enumeration of the Resources that would be in conflict
100  * resulting from merging the mergeSource into this Workspace
101  * @exception com.ibm.webdav.WebDAVException
102  */

103 public Enumeration getMergeConflicts(Activity mergeSource) throws WebDAVException {
104     return null;
105 }
106 /**
107  * Return an XML document containing the merge conflicts that would
108  * result if the mergeSource was merged into this Workspace.
109  * Merge conflicts arrise when a revision selected by one revision
110  * selector is on a different line of descent than that selected
111  * by some other revision selector in the workspace. Merge conflicts
112  * can be resolved by merging the mergeSource into the workspace and
113  * updating any working resources that result from merge conflicts.
114  *
115  * @return an Enumeration of the Resources that would be in conflict
116  * resulting from merging the mergeSource into this Workspace
117  * @exception com.ibm.webdav.WebDAVException
118  */

119 public Enumeration getMergeConflicts(Baseline mergeSource) throws WebDAVException {
120     return null;
121 }
122 /**
123  * Return an XML document containing the merge conflicts that would
124  * result if the mergeSource was merged into this Workspace.
125  * Merge conflicts arrise when a revision selected by one revision
126  * selector is on a different line of descent than that selected
127  * by some other revision selector in the workspace. Merge conflicts
128  * can be resolved by merging the mergeSource into the workspace and
129  * updating any working resources that result from merge conflicts.
130  *
131  * @return an Enumeration of the Resources that would be in conflict
132  * resulting from merging the mergeSource into this Workspace
133  * @exception com.ibm.webdav.WebDAVException
134  */

135 public Enumeration getMergeConflicts(Workspace mergeSource) throws WebDAVException {
136     return null;
137 }
138 /**
139  * Merge the mergeSource with this workspace.
140  * This results in potentially selecting different revisions,
141  * and the creation of working resources resulting from merge conflicts.
142  *
143  * If the mergeSource includes mutable revisions, the merge conflicts are not reliable.
144  *
145  * @param mergeSource the Workspace to merge into this workspace
146  * @return an Enumeration of the Resources that were in conflict as a result of the merge.
147  * @exception com.ibm.webdav.WebDAVException
148  * @see com.ibm.webdav.Resource#mergeWith
149  */

150 public Enumeration mergeWith(Activity mergeSource) throws WebDAVException {
151     return null;
152 }
153 /**
154  * Merge the mergeSource with this workspace.
155  * This results in potentially selecting different revisions,
156  * and the creation of working resources resulting from merge conflicts.
157  *
158  * If the mergeSource includes mutable revisions, the merge conflicts are not reliable.
159  *
160  * @param mergeSource the Workspace to merge into this workspace
161  * @return an Enumeration of the Resources that were in conflict as a result of the merge.
162  * @exception com.ibm.webdav.WebDAVException
163  * @see com.ibm.webdav.Resource#mergeWith
164  */

165 public Enumeration mergeWith(Baseline mergeSource) throws WebDAVException {
166     return null;
167 }
168 /**
169  * Merge the mergeSource with this workspace.
170  * This results in potentially selecting different revisions,
171  * and the creation of working resources resulting from merge conflicts.
172  *
173  * If the mergeSource includes mutable revisions, the merge conflicts are not reliable.
174  *
175  * @param mergeSource the Workspace to merge into this workspace
176  * @return an Enumeration of the Resources that were in conflict as a result of the merge.
177  * @exception com.ibm.webdav.WebDAVException
178  * @see com.ibm.webdav.Resource#mergeWith
179  */

180 public Enumeration mergeWith(Resource mergeSource) throws WebDAVException {
181     return null;
182 }
183 /**
184  * Merge the mergeSource with this workspace.
185  * This results in potentially selecting different revisions,
186  * and the creation of working resources resulting from merge conflicts.
187  *
188  * If the mergeSource includes mutable revisions, the merge conflicts are not reliable.
189  *
190  * @param mergeSource the Workspace to merge into this workspace
191  * @return an Enumeration of the Resources that were in conflict as a result of the merge.
192  * @exception com.ibm.webdav.WebDAVException
193  * @see com.ibm.webdav.Resource#mergeWith
194  */

195 public Enumeration mergeWith(Workspace mergeSource) throws WebDAVException {
196     return null;
197 }
198 /**
199  * Set the current activity for this workspace. Checkouts are
200  * done in the context of the current activity if any. A workspace
201  * can only have one current activity at a time. If this activity
202  * is in the revision selection rule of the workspace used to
203  * create the revision, the updates to the revision will remain
204  * visible after the working resource is checked in. The current
205  * label may also be used to perform this function if activities
206  * are not supported or used.
207  *
208  * @param value the current Activity associated with changes made in
209  * this workspace
210  * @exception com.ibm.webdav.WebDAVException
211  */

212 public void setCurrentActivity(Activity currentActivity) throws WebDAVException {
213 }
214 }
215
Popular Tags