1 /*2 * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/RevisionDescriptorStore.java,v 1.7 2004/07/28 09:34:41 ib Exp $3 * $Revision: 1.7 $4 * $Date: 2004/07/28 09:34:41 $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 at13 *14 * http://www.apache.org/licenses/LICENSE-2.015 *16 * Unless required by applicable law or agreed to in writing, software17 * 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 and20 * 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.NodeRevisionDescriptor;30 import org.apache.slide.content.NodeRevisionNumber;31 import org.apache.slide.content.RevisionDescriptorNotFoundException;32 33 /**34 * Store for RevisionDescriptor objects.35 * 36 * @version $Revision: 1.7 $37 */38 public interface RevisionDescriptorStore extends Service {39 40 41 // ------------------------------------------------------ Interface Methods42 43 44 /**45 * Retrieve an individual object's revision descriptor.46 * 47 * @param uri uri48 * @param revisionNumber Node revision number49 */50 NodeRevisionDescriptor retrieveRevisionDescriptor51 (Uri uri, NodeRevisionNumber revisionNumber)52 throws ServiceAccessException, RevisionDescriptorNotFoundException;53 54 55 /**56 * Create a new revision descriptor.57 * 58 * @param uri Uri59 * @param revisionDescriptor Node revision descriptor60 * @exception ServiceAccessException Service access error61 */62 void createRevisionDescriptor(Uri uri, 63 NodeRevisionDescriptor revisionDescriptor)64 throws ServiceAccessException;65 66 67 /**68 * Update a revision descriptor.69 * 70 * @param uri Uri71 * @param revisionDescriptor Node revision descriptor72 * @exception ServiceAccessException Service access error73 * @exception RevisionDescriptorNotFoundException Revision descriptor 74 * was not found75 */76 void storeRevisionDescriptor(Uri uri, 77 NodeRevisionDescriptor revisionDescriptor)78 throws ServiceAccessException, RevisionDescriptorNotFoundException;79 80 81 /**82 * Remove a revision descriptor.83 * 84 * @param uri Uri85 * @param revisionNumber Revision number86 * @exception ServiceAccessException Service access error87 */88 void removeRevisionDescriptor(Uri uri, NodeRevisionNumber revisionNumber)89 throws ServiceAccessException;90 91 }92