1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.registry.base;
1819import org.apache.jetspeed.om.registry.RegistryEntry;
20import org.apache.jetspeed.om.registry.Registry;
21import org.apache.jetspeed.om.registry.InvalidEntryException;
2223/***24 * Provides base functionality within a Database Registry.25 *26 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>27 * @version $Id: DatabaseRegistry.java,v 1.3 2004/02/23 03:08:26 jford Exp $28 */29publicclassDatabaseRegistryextendsBaseRegistry implements Registry30 {
3132/***33 @see Registry#setEntry34 */35publicvoid setEntry( RegistryEntry entry ) throws InvalidEntryException
36 {
37// TODO: save it to the database here3839super.setEntry(entry);
4041// TODO: notify other servers via jcs42 }
4344/***45 @see Registry#addEntry46 */47publicvoid addEntry( RegistryEntry entry ) throws InvalidEntryException
48 {
49// TODO: add it to the database here5051super.addEntry(entry);
5253// TODO: notify other servers via jcs54 }
5556/***57 @see Registry#removeEntry58 */59publicvoid removeEntry( String name )
60 {
61// TODO: add it to the database here6263super.removeEntry(name);
6465// TODO: notify other servers via jcs66 }
6768/***69 @see Registry#removeEntry70 */7172publicvoid removeEntry( RegistryEntry entry )
73 {
74// TODO: add it to the database here7576super.removeEntry(entry);
7778// TODO: notify other servers via jcs79 }
8081 }