01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. The ASF licenses this file to You
04: * under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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. For additional information regarding
15: * copyright in this work, please see the NOTICE file in the top level
16: * directory of this distribution.
17: */
18: /*
19: * PropertiesManager.java
20: *
21: * Created on April 21, 2005, 10:34 AM
22: */
23:
24: package org.apache.roller.business;
25:
26: import java.util.Map;
27: import org.apache.roller.RollerException;
28: import org.apache.roller.pojos.RollerPropertyData;
29:
30: /**
31: * Manages global properties for Roller.
32: */
33: public interface PropertiesManager {
34:
35: /**
36: * Release all resources associated with Roller session.
37: */
38: public void release();
39:
40: /**
41: * Save a single property
42: */
43: public void saveProperty(RollerPropertyData property)
44: throws RollerException;
45:
46: /**
47: * Save a list of properties
48: */
49: public void saveProperties(Map properties) throws RollerException;
50:
51: /**
52: * Retrieve a single property by name
53: */
54: public RollerPropertyData getProperty(String name)
55: throws RollerException;
56:
57: /**
58: * Retrieve a list of all properties
59: */
60: public Map getProperties() throws RollerException;
61:
62: }
|