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 at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * 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 and
14 * limitations under the License.
15 */
16
17 package org.apache.jetspeed.om.registry.base;
18
19 import org.apache.jetspeed.om.registry.RegistryEntry;
20 import org.apache.jetspeed.om.registry.Registry;
21 import org.apache.jetspeed.om.registry.InvalidEntryException;
22
23 /***
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 */
29 public class DatabaseRegistry extends BaseRegistry implements Registry
30 {
31
32 /***
33 @see Registry#setEntry
34 */
35 public void setEntry( RegistryEntry entry ) throws InvalidEntryException
36 {
37 // TODO: save it to the database here
38
39 super.setEntry(entry);
40
41 // TODO: notify other servers via jcs
42 }
43
44 /***
45 @see Registry#addEntry
46 */
47 public void addEntry( RegistryEntry entry ) throws InvalidEntryException
48 {
49 // TODO: add it to the database here
50
51 super.addEntry(entry);
52
53 // TODO: notify other servers via jcs
54 }
55
56 /***
57 @see Registry#removeEntry
58 */
59 public void removeEntry( String name )
60 {
61 // TODO: add it to the database here
62
63 super.removeEntry(name);
64
65 // TODO: notify other servers via jcs
66 }
67
68 /***
69 @see Registry#removeEntry
70 */
71
72 public void removeEntry( RegistryEntry entry )
73 {
74 // TODO: add it to the database here
75
76 super.removeEntry(entry);
77
78 // TODO: notify other servers via jcs
79 }
80
81 }