KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > store > RevisionDescriptorsStore


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/RevisionDescriptorsStore.java,v 1.7 2004/07/28 09:34:40 ib Exp $
3  * $Revision: 1.7 $
4  * $Date: 2004/07/28 09:34:40 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.slide.store;
25
26 import org.apache.slide.common.Service;
27 import org.apache.slide.common.ServiceAccessException;
28 import org.apache.slide.common.Uri;
29 import org.apache.slide.content.NodeRevisionDescriptors;
30 import org.apache.slide.content.RevisionDescriptorNotFoundException;
31
32 /**
33  * Store for RevisionDescriptors objects.
34  *
35  * @version $Revision: 1.7 $
36  */

37 public interface RevisionDescriptorsStore extends Service {
38     
39     
40     // ------------------------------------------------------ Interface Methods
41

42     
43     /**
44      * Retrieve the revisions informations of an object.
45      *
46      * @param uri Uri
47      * @exception ServiceAccessException Service access error
48      * @exception RevisionDescriptorNotFoundException Revision descriptor
49      * was not found
50      */

51     NodeRevisionDescriptors retrieveRevisionDescriptors(Uri uri)
52         throws ServiceAccessException, RevisionDescriptorNotFoundException;
53     
54     
55     /**
56      * Create a new revision information object.
57      *
58      * @param uri Uri
59      * @param revisionDescriptors Node revision descriptors
60      * @exception ServiceAccessException Service access error
61      */

62     void createRevisionDescriptors(Uri uri,
63                                    NodeRevisionDescriptors revisionDescriptors)
64         throws ServiceAccessException;
65     
66     
67     /**
68      * Update revision information.
69      *
70      * @param uri Uri
71      * @param revisionDescriptors Node revision descriptors
72      * @exception ServiceAccessException Service access error
73      * @exception RevisionDescriptorNotFoundException Revision descriptor
74      * was not found
75      */

76     void storeRevisionDescriptors(Uri uri,
77                                   NodeRevisionDescriptors revisionDescriptors)
78         throws ServiceAccessException, RevisionDescriptorNotFoundException;
79     
80     
81     /**
82      * Remove revision information.
83      *
84      * @param uri Uri
85      * @exception ServiceAccessException Service access error
86      */

87     void removeRevisionDescriptors(Uri uri)
88         throws ServiceAccessException;
89     
90     
91 }
92
Popular Tags